Application Development and Automation 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: 
Read only

Dynamically calling?

Former Member
0 Likes
320

Hi,

Iam working on inbound interface to update the infotype.

Here Iam getting the PERNR based on ICNUM from PA0002 infotpe.

select pernr from

pa0185

into table t_pa0185

FOR ALL ENTRIES IN t_file

WHERE icnum = t_file-payrollid.

This Interface is will work only spain country.

Now the requriement was changed.Now it will work for some othere countries also.

For that I have Created one custom table.There I have maintained PINFY(i.e for spain it is P0185) and USRID(i.e for spain it is ICNUM).

For other countries they will maintain differnt infotype(P0105) and filed(USRID)

When user select the particular country dynamically this will work particular infotype and for particular filed.

How we will call dynamically?

1 REPLY 1
Read only

Former Member
0 Likes
291

You can use dynamic select condition..

TCODE ABAPDOCU->BC-ABAP Programming->ABAP Database access->Open SQL->Read Data->Dynamic Conditions.

This is an example in SAP itself.

Or directly you can check report: DEMO_SELECT_DYNAMIC_CONDITIONS.

Hope it helps you.