on 09-03-2009 5:05 AM
Hi All,
I have to use RFC look up for a requirement. For this I need to create a Remote Function Module in SAP and have import in PI for RFC Look up.
My Logic will follows...
Parameter to be passed:
< PLNNR > = /LOIROU02/IDOC/E1MAPLL/PLNNR : multiplicity 1
< VORNR > = /LOIROU02/IDOC/E1MAPLL/E1MAPAL/E1PLKOL/E1PLFLL/E1PLPOL/VORNR: multiplicity n
Logic in FM:
Read table PLPO where
Task List type PLNTY = N
Group PLNNR = < PLNNR >
Valid From DATUV = latest Date for same Operation Number < VORNR >
-
>This should give you a record of type like table PLPO for each < VORNR >
After getting all values into one table, I need to get some other information (from table CRHD & CRTX) for every VORNR.
Logic for this is: Read table CRHD where OBJTY = A and OBJID = PLPO-ARBID.
Get KTEXT from CRHD.
Return table: (one record for each < VORNR >), to be passed back to PI
< VORNR >
PLPO-KTSCH
PLPO-LTXA1
KTEXT
So could you please help me to build a remote function module...and how do I pass values to PI as a internal table...
Regards,
Ramesh.
developed code by myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for lookups in 7.1 - /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
in case you require help regarding building a RFC/BAPI, i suggest you take the help of the ABAP forum or read through this
http://help.sap.com/saphelp_46C/helpdata/EN/22/0424ce488911d189490000e829fbbd/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.