Skip to Content
avatar image
Former Member

How to substitute additional information to a Vendor during creation via XK01?

Hello Experts,

Can one of you advise any idea for following requirement about substition during Vendor Creation.Any idea including BAdI,Exit,BDC or anythig else is welcome!

<Requirement>

Overview:

I want to substitute a value of PO_BOX and SCAC field of a CORPORATION Vendor related to the Vendor being created via XK01.

Detail:Supposing steps are as follows;

1.Input Corporate Group field during creating a Vendor.

2.Save the Vendor, then EXIT, BAdI or anythig else is exectuted.

3.Search and extract information of the CORPORATION Vendor from LFA1 with key Corporate Group.

4.Substitute PO_BOX and SCAC extracted above to the Vendor being created.

5.The Vendor is saved with PO_BOX and SCAC values extracted above.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 05, 2017 at 05:21 AM

    use some bapi or fm for change vendor

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 10, 2017 at 06:49 AM

    Did you try something with a BAdI like VENDOR_ADD_DATA_CS (even if it's not its initial purpose, it offer a GET_DATA method to change master data from customer screen, and you may find the fields you require in its signature)

    Which BAdI/Exit did you already analyze, did you debug the Address function groups for fields unavailable on the master data record only in address records?

    You could also considering scheduling a call of method VMD_EI_API=>MAINTAIN_BAPI (wrap it in a RFC enabled FM and schedule it IN BACKGROUND TASK/UNIT)

    Add comment
    10|10000 characters needed characters exceeded

    • Then you have to change the values both in LFA1 and in memory of address managing function group. First set break-points at start of FM like ADDR_MEMORY_PUSH and POP, to find how to handle the data of the SZA0 function group (GT_MEMORY_STACK)