on 01-04-2011 7:06 AM
Hi SD masters,
i have tried 3 types to pass values to custom fields but failed to sort...need your advice.
1. FM documentation...implemented below logic but results the same problem
2. put a breakpoint in subroutine VBAK_FUELLEN_VBAKKOM in program SAPFV45K and see whether your Z fields are filled
it does fill but as it process further it still gives me a pop-up to fill the value
3. used USEREXIT_MOVE_FIELD_TO_VBAKKOM in program SAPMV45A to move fields from VBAKKOM to VBAK.
but the results are same.
what can i do to get the solution pls...
Am using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order but the table i use has the CUSTOM FIELDS may be upto 20...so before it creates sales order it asks me to for one field...EX : HAZKEY which is my custom field...
i have gone through the forums...and used the same logic which is given by forum...this is my logic.
these are my steps
1) VBAK: In MY append structure I specifed ZZFIELD with the data type as needed
2) BAPE_VBAK: In the append structure here also added the ZZFIELD with the data type as needed with limitations.
3) BAPE_VBAKX: In the append structure added the field ZZFIELD of type BAPIUPDATE
4) VBAKKOZ: In the append structure here also added the ZZFIELD with the data type as needed with limitations
5) VBAKKOZX: In the append structure added the field ZZFIELD of type BAPIUPDATE
program logic
Processing the header extension*
wa_bape_vbak-zzhaz_key = zhazardous_text-zzhaz_key.
wa_extensionin-structure = 'BAPE_VBAK'.
wa_extensionin+30(960) = wa_bape_vbak.
APPEND wa_extensionin TO lt_extensionin.
CLEAR wa_extensionin.
CLEAR wa_bape_vbakx.
wa_bape_vbakx-zzhaz_key = 'X'.
wa_extensionin-structure = 'BAPE_VBAKX'.
wa_extensionin+30(960) = wa_bape_vbakx.
APPEND wa_extensionin TO lt_extensionin.
CLEAR wa_extensionin.
now i pass the LT_EXTENSIONIN to BAPI.
It still asks me to pass the KEY.
CAN ANYONE PLEASE LET ME KNOW WHERE I HAVE GONE WORNG...
much appriciated.
thank you,
pasala.
thnak you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.