GetDetail
This method supplies detailed information for a cost center. The method requires the controlling area, the cost center, and a key date. The method gives the name and description of the cost center, costcenter manager and structures with address and communication data.
Warning: This method is obsolete.The GetDetail method is out-of-date as of Release 4.6. Functionality will be transferred from the GetDetail1 method. If you have already used this method, you should change over to the new method. Otherwise, use the new GetDetail1 method.
ExampleYou want to see the present cost center manager and telephone number of cost center PRODUCTION in controlling area 0001. Function module callup: DATA: I_CONTROLLINGAREA LIKE BAPI0012_1-CO_AREA, I_COSTCENTER LIKE BAPI0012_1-COSTCENTER,
I_PERSON_IN_CHARGE LIKE BAPI0012_5-INCHARGE, I_ADDRESS LIKE BAPI0012_3, I_COMMUNICATION LIKE BAPI0012_4. I_RETURN LIKE BAPIRETURN. I_CONTROLLINGAREA = "0001". I_COSTCENTER = "PRODUCTION".
CALL FUNCTION "BAPI_COSTCENTER_GETDETAIL" EXPORTING CONTROLLINGAREA = I_CONTROLLINGAREA COSTCENTER = I_COSTCENTER DATE = SY-DATUM IMPORTING ADDRESS = I_ADDRESS
COMMUNICATION = I_COMMUNICATION PERSON_IN_CHARGE = I_PERSON_IN_CHARGE RETURN = I_RETURN. NotesYou require system authorization for object K_CSKS. If no detailed information was found by the system for the cost center,
you can find more information on the errors that occurred in the RETURN parameter.
|