Skip to Content
avatar image
Former Member

how can i change zz-field in VA01 transaction using BAPI_SALEORDER_CHANGE

Hi ,

i have to change the some customized fields (z-fields ) in transaction va02.

how can i change the customized fields using bapi. i am using 'BAPI_SALEORDER_CHANGE' .

i am writing my test program like this :

wa_extension-structure = 'VBAK-ZZDELVRNO'."'BAPE_VBAK'.

*"'VBAK-ZZDELVRNO'.

wa_extension-VALUEPART1 = '100000303810'.

wa_extension-VALUEPART2 = '123456'.

append wa_extension to it_extension.

MOVE: con_upgrade TO l_header_inx-updateflag,

con_x TO l_header_inx-bill_block. " Billing.

  • l_faksk TO l_header_in-bill_block. " Billing block.

*--Call Bapi 'BAPI_SALESORDER_CHANGE' to change billing block

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

EXPORTING

salesdocument = l_vbeln

order_header_in = l_header_in

order_header_inx = l_header_inx

TABLES

EXTENSIONIN = it_extension

return = it_return2.

i don't know exactly wat's the value i have to populate into table EXTENSIONIN .

it's very urgent .

Thanks,

kumar.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 12, 2007 at 10:11 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Nov 12, 2007 at 10:15 AM

    hi Suresh,

    check FM SD_SALESDOCUMENT_CHANGE, form ms_move_extensionin (you find it in include LVBAKF0C), than you will understand what you have to do.

    ec

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 22, 2007 at 02:06 AM

    Hi Suresh,

    Have you solved the issue? since im facing the same problem.

    i have a problem in passing the customised amount field.

    If you have solved kindly let me know too.

    thanks

    Suganya

    Add comment
    10|10000 characters needed characters exceeded