‎2009 Oct 28 6:24 AM
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?
‎2009 Oct 28 6:47 AM
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.