2012 Apr 03 12:51 PM
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
.
2012 Apr 03 12:56 PM
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.
2012 Apr 03 1:13 PM
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.
2012 Apr 03 1:15 PM
VMD_EI_API / MAINTAIN_BAPI . The parameter mapping ( nested structure ) is the toughest job when you use this method.
2012 Apr 03 1:48 PM
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 =