‎2006 Jun 30 3:39 PM
Hi, I have a question. I need to create a new functional location. I try to use BAPI_FUNCLOC_CREATE with this code:
PARAMETERS: FUNCLOC LIKE BAPI_ITOB_PARMS-FUNCLOC DEFAULT 'ZTZ1-ABC-AA-02'.
DATA: FC_DATA_GEN LIKE BAPI_ITOB,
FC_DATA_SPE LIKE BAPI_ITOB_FL_ONLY,
FC_RETURN LIKE BAPIRET2,
FC_LABEL LIKE BAPI_ITOB_PARMS-LABEL_SYST.
FC_DATA_SPE-STRIND = 'A'.
FC_DATA_SPE-CATEGORY = 'M'.
FC_DATA_SPE-EQINSTALL = 'X'.
FC_DATA_GEN-READ_CRDAT = SY-DATUM.
FC_LABEL = 'A'.
CALL FUNCTION 'BAPI_FUNCLOC_CREATE'
EXPORTING
EXTERNAL_NUMBER = FUNCLOC
LABELING_SYSTEM = FC_LABEL
DATA_GENERAL = FC_DATA_GEN
DATA_SPECIFIC = FC_DATA_SPE
IMPORTING
FUNCTLOCATION =
DATA_GENERAL_EXP =
DATA_SPECIFIC_EXP =
RETURN = FC_RETURN
.
(this code was intended for testing only)
After the function has passed new functional location was not created. And in RETURN I got message number 000.
I guess that a fun. loc. was in creation process because when i inserted a breakpoint I couldn't create a functional location with the same Id as in report (I could with an other) but it didn't save.
Can You help me?
‎2006 Jun 30 3:46 PM
Call BAPI_TRANSACTION_COMMIT after this.
Also uncomment FUNCTLOCATION and get the value into a variable and check.
Regards,
Ravi
Note: Please mark the helpful answers
‎2006 Jun 30 3:46 PM
Call BAPI_TRANSACTION_COMMIT after this.
Also uncomment FUNCTLOCATION and get the value into a variable and check.
Regards,
Ravi
Note: Please mark the helpful answers