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

Vendor confirmation problem

Former Member
0 Likes
1,133

Hello experts,

  My Task was to confirm all the vendors from tcode FK09(RFKCON00) with a bank account .I am using FM vendor_update. After executing the program when i go to the FK09 tcode again it shows the vendor records in yet to be confirmed list. I dont know whats going wrong. PLease refer below code to find out the passing paramenters. I guess its not saving records after funcion module executes .Please suggest some solution.

  lt_lfb1-CONFS = ' '.
    lt_lfa1-CONFS = ' '.
    lt_FLFAS-LIFNR = lwa_confaccnt-vendor.
    lt_FLFAS-LAND1 = it_lfa1-LAND1.
    lt_FLFAS-STCEG = it_lfa1-STCEG.
    lt_FLFAS-kz = 'U'.

    lt_FLFB5-LFRMA = lwa_confaccnt-vendor.
    lt_FLFB5-BUKRS = lwa_confaccnt-comcode.
    lt_FLFB5-kz    = 'U'.

    lt_flfbk-LIFNR = lwa_confaccnt-vendor.
    lt_flfbk-BANKS = it_lfbk-BANKS.
    lt_flfbk-BANKL = it_lfbk-BANKL.
    lt_flfbk-BANKN = it_lfbk-BANKN.
    lt_flfbk-BKONT = it_lfbk-BKONT.
    lt_flfbk-BVTYP = it_lfbk-BVTYP.
    lt_flfbk-XEZER = it_lfbk-XEZER.
    lt_flfbk-BKREF = it_lfbk-BKREF.
    lt_flfbk-KOINH = it_lfbk-KOINH.
    lt_flfbk-EBPP_ACCNAME = it_lfbk-EBPP_ACCNAME.
    lt_flfbk-EBPP_BVSTATUS = it_lfbk-EBPP_BVSTATUS.
    lt_flfbk-KOVON = it_lfbk-KOVON.
    lt_flfbk-KOBIS = it_lfbk-KOBIS.
    lt_flfbk-KZ = 'E'.
    lt_FLFZA-lifnr = lwa_confaccnt-vendor.
    lt_FLFZA-BUKRS = lwa_confaccnt-comcode.
    lt_flfza-kz = 'E'.
CALL FUNCTION 'VENDOR_UPDATE'
  EXPORTING
    I_LFA1        = lt_lfa1
    I_LFB1        = lt_lfb1
    I_LFM1        = lt_lfm1
    I_YLFA1       = lt_lfa1
    I_YLFB1       = lt_lfb1
    I_YLFM1       = lt_lfm1
  TABLES
    T_XLFAS       = lt_FLFAS
    T_XLFB5       = lt_FLFB5
    T_XLFBK       = lt_FLFBK
    T_XLFZA       = lt_FLFZA
    T_YLFAS       = lt_FLFAS
    T_YLFB5       = lt_FLFB5
    T_YLFBK       = lt_FLFBK
    T_YLFZA       = lt_FLFZA
    .

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
878

First of all let me tell you that vendor_update is an update function and using it is totally wrong. There are classes available to update Vendor/Customer details, please search in SCN for it.

Read only

0 Likes
878

Can you please suggest some classes as you saying so that i can at least google it. I am not used to this new version of SDN its really difficult to navigate. Some URL will be really helpful.

Read only

0 Likes
878

VMD_EI_API / MAINTAIN_BAPI . The parameter mapping ( nested structure ) is the toughest job when you use this method.

Read only

0 Likes
878

Wel i am inside this method & i m totaly lost in it. No idea how its going to update the vendor confirmation.

   CALL METHOD CMD_EI_API=>MAINTAIN_BAPI
  EXPORTING
*    IV_TEST_RUN              = SPACE
*    IV_COLLECT_MESSAGES      = SPACE
    IS_MASTER_DATA           =
*  IMPORTING
*    ES_MASTER_DATA_CORRECT   =
*    ES_MESSAGE_CORRECT       =
*    ES_MASTER_DATA_DEFECTIVE =
*    ES_MESSAGE_DEFECTIVE     =