‎2009 May 29 6:25 AM
hi experts.
i have to submit report in bapi-FM and i need to read Inernal table data from that report into the table of my FM. means whenever this bapi will be executed the report will be executed and the internal table will be populated which in turns reflected in the table of BAPI.
i have written this syntax no doubt the internal table is populated in the report but the same internal table is not getting reflected in the table of bapi how will i solve this probelm...
SUBMIT ZHRR_9777ESS AND RETURN.
move:itab_final[] to itab_finalbapi[]..
‎2009 May 29 8:38 AM
‎2009 May 29 6:31 AM
why dont u use perform in the BAPI to a form in that other program.
Perform {subr|(sname) IN PROGRAM [prog|(pname)]
‎2009 May 29 6:31 AM
Dear Rajat,
If your internal table and bapi table are same then use
Itab[] = BapiTab[]
otherwise
keep it into loop and say Move corresponding.
Regards,
Vijay
‎2009 May 29 6:32 AM
why dont u use perform in the BAPI to a form in that other program.
Perform {subr|(sname) IN PROGRAM [prog|pname]
PERFORM xyz using/changing abc in program 'ZXYA'
‎2009 May 29 6:39 AM
IN THE REPORT USE EXPORT STATEMENT AND MOVE THE ITAB DATA TO MEMORY
IN YOUR BAPI IMPORT IT FROM MEMORY
‎2009 May 29 6:51 AM
hi keshu,
you got my exact requirement please explain me how to write export syntax as i havnt used it before ,
‎2009 May 29 6:57 AM
SOMETHING THING LIKE THIS.... CHECK IN abap DOCUMENTATION
IN UR REPORT
EXPORT ITAB TO MEMORY ID 'MID'
IN UR bapi
IMPORT ITAB from MEMORY ID 'MID'
THE ITAB AT BOTH ENDS MUST HAVE THE SAME STRUCTURE
‎2009 May 29 8:38 AM