cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SALESORDER_CREATEFROMDAT2 -CUSTOM FILES tried ALL TYPES but Failed.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

thnak you