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

bapi

Former Member
0 Likes
370

hi,

in APO sysyetm am having BAPI whic is 'BAPI_PBSRVAPS_GETDETAIL2'... in R/3,using this BAPI,

we have to get the data from APO system.

how can i write the code in R/3 can..and how to use the data from APO system to R/3...

can any body tell me its verry urjent..

-


Advance thanks...........

2 REPLIES 2
Read only

Former Member
0 Likes
342

Raghu,

First, create a RFC connection for instance ZAPOSYSTEM using SM59 transaction (R/3 connection type). This connection should basically link your APO system from R/3 system. Basis team can you help you with this task.

Second, when you invoke your function module add the following line to it.

CALL FUNCTION 'BAPI_PBSRVAPS_GETDETAIL2'

DESTINATION 'ZAPOSYSTEM'

EXPORTING

etc.

Read only

Former Member
0 Likes
342

Call Bapi using destination

CALL FUNCTION 'BAPI_PBSRVAPS_GETDETAIL2'

DESTINATION <Dest_System_id>

EXPORTING

abc

xyz

IMPORTING

gds

jds

EXCEPTIONS.

1

2

3.

NOTE:

1.Give the Exporting and importing parameters in the same order as in the BAPI definition.

2. Declare internal tables, work areas and variables with exactly same types as in the BAPI definition in the APO side, else the BAPI wont return anything.

Lokesh