Skip to Content
avatar image
Former Member

Example for BAPI_FUNCLOC_CHANGE with customer fields

Hello,

I want to use the function module BAPI_FUNCLOC_CHANGE in order to change a customer field that has already been created on the Table IFLOT. The parameter EXTENSIONIN has been added to the BAPI for that purpose, but unfortunatelly I cannot find the way to use it properly.

Furthermore, I would like to know how can I get the data neccesary for the Importing Parameters.

Could anyone provide me an example of its use?

Thank you in advance,

Clara Sáez Árcija

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 12, 2017 at 08:35 PM

    Have a look at SAP-KBA 2146575 on how to add "Customer fields in BAPIs: Technical object" : link

    This KBA provides info on additional Structures that need to be created to allow the correct transfer of data through "EXTENSIONIN"-Tables when executing this (or other related) BAPI ...

    PS : As this is a more Technical (ABAP) related topic, you could set the additional Tag to ABAP Development to 'attrackt' more responses ...


    Kind regards

    Nic T.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2017 at 06:42 AM

    Clara,

    Do the following:

    • Add the functional location name in the FUNCTLOCATION field
    • Change the fields in the DATA_GENERAL and DATA_SPECIFIC tabes as required
    • For the same fields you changed above, put an "X" in the corresponding DATA_GENERALX and DATA_SPECIFICX tabes
    • Run/call BAPI_FUNCLOC_CHANGE
    • Run/call BAPI_TRANSACTION_COMMIT

    .

    PeteA

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you for your answer. I don´t need to change any field of data_general or data_specific, so I leave them INITIAL (as well as data_generalx and data_specificx). What I need to change is a customer field (named ZZKOMP) that we have added to table IFLOT. How can I insert this field into Parameter EXTENSIONIN?

  • Sep 12, 2017 at 07:46 AM

    I've never done it before...

    In SE37, click on the Function Module Documentation button.

    Then read the information for EXTENSIONIN and EXTENSIONOUT.

    PeteA

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I have already read the BAPI Documentation, but it does not help me in this issue. For this reason I wrote here my question ;)