‎2009 Jan 13 8:58 AM
Hi all,
Im using standard BAPI FM .I want to access internal table outside BAPI (which is used in BAPI ) .
How do i do it ?
‎2009 Jan 13 9:03 AM
Hi,
In TABLES clause you can find the internal table,
By accessing that you can use internal table outside bapi.
Regards,
Phani.
‎2009 Jan 13 9:10 AM
‎2009 Jan 13 9:10 AM
Hello Shital,
see that BAPI in SE37.
and try to understand tables,internal table declaration used in BAPI.
simply you need to paste same declaration in your current program.
Hope it will solve your problem.
Have a Nice Day.
Regards,
Sujeet
‎2009 Jan 13 9:19 AM
Hi sujeet,
Thanks for reply.Problem is i can declare the same internal table in my program as in BAPI but when i come out of BAPI ther is no data in internal table.I want to access the data inside internal table.
‎2009 Jan 13 9:19 AM
Hi,
If it is a ZBAPI, then you have the following way :
EXPORT (itab) TO MEMORY ID id. ( this will use SAP memory).
After the BAPI, you can use IMPORT (itab) from memory ID.
i dont think, it is possible if it is standard BAPI..
Revrt back if any issue.
Regards,
Naveen
‎2009 Jan 13 9:37 AM
HI,
After the BAPI execution, you will check for the sy-subrc and copy the internal table body as shown below:.
If sy-subrc = 0.
itab[ ] = bapi_itab[ ].
endif.
Hope it helps you.