Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing Screen fields at runtime

Former Member
0 Kudos

Hi SAP Gurus,

Could you please let me know how to capture the screen fields ( which are input enabled ) at runtime for a particular Program name and screen number??

Thanks in advance.

Best Regards,

Dinakaran.R

8 REPLIES 8

Former Member
0 Kudos

If it is Module pool then you will automatically get it in PAI.

0 Kudos

Hi sanjay,

Thanks for your reply.

It is not a module pool program.

Actually i am trying to write a program which creates or changes the Condition type records using VK11 or VK12 for a selected condition type and key combination.

The user can select any condition type and key combination.

My program should run for all the Condition types and selected key combination.

For each selected Condition type and key combination the Program name and the screen number varies. Also the screen fields.

I have to capture the Program name, Screen number and the fields at runtime for every condition type and key combination.

After this i will be able to pass the values from the input file to the fields.

Please help.

Best Regards,

Dinakaran.R

0 Kudos

I think you are trying to create BDC, correct? That means, you want upload records using transaction VK11 & VK12. In that case, do recording of transactions using SHDB.

0 Kudos

Hi,

There are around 15 condition types and each can have 6 to 10 key combinations.

If i do recording for each then it will be a tedious job and the program too will become a big one.

hence i have planned to create a program more dynamic which can work for all the combinations.

This needs to capture the screen fields at runtime.

I have a FM called IMPORT_DYNPRO which can give all the screen fields.

But i am unable to get the exact input enabled fields from this FM-Table.

I am able to capture the Program name and the Scree number.

I tried with RV13A098 --1000 and SAPMV13A -- 1098.....

Thanks in advance..

best Regards,

Dinakaran.R

Former Member
0 Kudos

Dinakar,

You have to export the parameters to that program and have to use them.

Regards,

Sujatha.

Former Member
0 Kudos

hi it is in PBO if it is a module pool prog.

loop at screen.

if screen-input = '1'.

Vname = screen-name.

endloop.

in PBO you can get the field name by looping at screen.

regards

shiba dutta

Former Member
0 Kudos

Hi,

You will get this by looping on the screen table of that screen.

Regards,

Sunmit.

Former Member
0 Kudos

try the fm

IAC_GET_DYNPRO_INFO

it may be useful.

regards

shiba dutta