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_FUNC_LOC_CREATE BAPI functional location create

Former Member
0 Likes
5,120

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?

1 ACCEPTED SOLUTION
Read only

Former Member
2,391

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

1 REPLY 1
Read only

Former Member
2,392

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