Questions on BAPI and RFC Programming

1. BAPI’s offer:

a. Interface for integrating third party applications/components with SAP R/3
b. Distribute data, master data and transaction data across different systems
c. Interface between a business objects, in a method.
d. Application Link Enabling
e. None of the above
 

2. The following are the functions performed by a BAPI:

a. Create objects
b. Display attributes of objects
c. Change attributes of objects
d. A BAPI can be assigned to more than one Business Objects
e. None of the above

---

Answers:

1) a, c

2) a, b, c

---

One BAPI to get status back of the delivery no ! >> RFC programming

1) I am creating  purchase order(PO) and creating inbound delivery for that purchase order(PO)  which will be distibuted to NONSAP((warehouse management) . 
> ------------------------------
Then  NONSAP((ware house management) sends back the confirmation (after updating its Data base of that inbound delivery ) to SAP  through IDoc which uses delivery number.  I am sending delivery no(in IDoc) from Non Sap(ware house management) to Sap through JCO.

If you use Jco, which is the Java Connector, you know how to program 
Java or you have a resource available that knows how to program java.
 

Then in SAP [after getting back that IDoc from NON-SAP((ware house management) ], the status of  that delivery number will changes to "Confirmed".  We can see that in SAP through transaction code : vl33n.
> ------------------------------
I am not so familiar with VL33N, so I could not find this status change. Am I right to think that this status is stored in table LIKP field VLSTK ( Distribution Status (Decentralized Warehouse 
Processing) ).
 

NOW , I need one BAPI which I can  use from NON-SAP,  to get back the status of that delivery number. My  idoc sending  from NON-SAP, since it is through idoc , it is not returning back the delivery number's status from SAP, I need  to use one BAPI  from nonsap (java prg) which takes input as delivery number and gives back the status of that delivery number from SAP.
> ------------------------------
You need either a BAPI ( there is non that does what you want ), or you need an RFC.
 

2) What is RFC sever programming ? In which language is it in? I am an ABAP programmer. How can I deal that issue please guide me .
> ------------------------------
Ahah. RFC ! So, RFC's are actually function modules, but in the Attributes tab you enable 'Remote-enabled module' and you enable 'Start Immediately'. RFC's are created with SE37, you can also create them with SE80.

In the import section you would create a p_vbeln like likp-vbeln, in the export section you would create a p_status like likp-vlstk.

In the source code you would have something like

select single vlstk
into p_status
from likp
where vbeln eq p_vbeln.

And then in JCO you call this Function Module/RFC. The java person should know how to do this.

Related ABAP Topics:
Table CDHDR and CDPOS Usage

Get help for your ABAP problems
Do you have a ABAP Question?

SAP Books
SAP Certification, Interview Questions, Functional, Basis Administration and ABAP Programming Reference Books

More ABAP Tips

Main Index
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.