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

regarding submit statemet

Former Member
0 Likes
741

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[]..

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
718

check this thread

link: [;

7 REPLIES 7
Read only

Former Member
0 Likes
718

why dont u use perform in the BAPI to a form in that other program.

Perform {subr|(sname) IN PROGRAM [prog|(pname)]

Read only

Former Member
0 Likes
718

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

Read only

Former Member
0 Likes
718

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'

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
718

IN THE REPORT USE EXPORT STATEMENT AND MOVE THE ITAB DATA TO MEMORY

IN YOUR BAPI IMPORT IT FROM MEMORY

Read only

0 Likes
718

hi keshu,

you got my exact requirement please explain me how to write export syntax as i havnt used it before ,

Read only

0 Likes
718

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
719

check this thread

link: [;