01-11-2007 5:16 AM
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
01-11-2007 5:24 AM
01-11-2007 5:31 AM
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
01-11-2007 5:37 AM
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.
01-11-2007 5:46 AM
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
01-11-2007 5:25 AM
Dinakar,
You have to export the parameters to that program and have to use them.
Regards,
Sujatha.
01-11-2007 5:30 AM
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
01-11-2007 5:35 AM
Hi,
You will get this by looping on the screen table of that screen.
Regards,
Sunmit.
01-11-2007 5:45 AM