Exercise 6 - BAPIs

2
Th is is Pricew aterhou seC oop ers P RO PR IE TA R Y M A T ER IA L (hereafter,the M aterial) in ten ded for internaluse on ly. You m ay n otren t,lease ord istribute th e M aterialto clients o ro th erthird parties, bu tyou m ay tran sfer the M aterialto oth erem ployees o fP ricew aterho useC oo pers. SAP R/3 ABAP 4.6 Delta Training Questions and Exercises BAPIs 1. Using the Business Object Repository Browser (transaction SWO2), display the SAP object for material. (Follow the application tree Logistics General -> Logistics Basic Data -> Material Master.) What is the ABAP program that implements the business object? ________________________________________________________________________ _____________ 2. What is the key field for the material object? ________________________________________________________________________ _____________ 3. How many methods exist for the material object? List three of them. ____________________________________________________________ ___________ 4. How many of the object methods are implemented with a BAPI? Name two of them. ________________________________________________________________________ _____________ 5. List three attributes of the Material object. ________________________________________________________________________ _____________ 6. Is the method Material.GetList instance independent or instance dependent? ________________________________________________________________________ _____________ 7. What is the name of the ABAP function module behind the BAPI method Material.Edit? PricewaterhouseCoopers LLP 1 August 2000 Global Training Centre

Transcript of Exercise 6 - BAPIs

Page 1: Exercise 6 - BAPIs

Th is is Pricewaterhou seCoop ers P RO PRIETARY MAT ERIAL (hereafter, the Material ) in ten ded forinternal use on ly. You may n ot ren t, lease or d istribute th e M aterial to clients o r o th er thi rd parties,bu t you may tran sfer the Material to oth er employees o f P ricewaterho useCoo pers.

SAP R/3 ABAP 4.6 Delta Training Questions and ExercisesBAPIs

1. Using the Business Object Repository Browser (transaction SWO2), display the SAP object for material. (Follow the application tree Logistics General -> Logistics Basic Data -> Material Master.) What is the ABAP program that implements the business object?

_____________________________________________________________________________________

2. What is the key field for the material object?_____________________________________________________________________________________

3. How many methods exist for the material object? List three of them._______________________________________________________________________

4. How many of the object methods are implemented with a BAPI? Name two of them._____________________________________________________________________________________

5. List three attributes of the Material object._____________________________________________________________________________________

6. Is the method Material.GetList instance independent or instance dependent? _____________________________________________________________________________________

7. What is the name of the ABAP function module behind the BAPI method Material.Edit?

_____________________________________________________________________________________

8. Using the BAPI Browser (transaction BAPI), view the Material.GetDetail BAPI documentation.

9. Write a simple ABAP program to do the following: Name the program ZMATBAPIxx where XX is your user number Allow the user to input a material number as a parameter Call the Material.GetDetail BAPI from the program Write the material number, description, date created, and who it was created by

(these are all found in the BAPIMATDOA structure exported from the BAPI) Be sure to check the BAPIRETURN structure of the BAPI for an error and write

a message if the BAPI call is unsuccessful. Test this by entering an invalid material number and executing your program.

PricewaterhouseCoopers LLP 1 August 2000Global Training Centre