Skip to Content
author's profile photo Former Member
Former Member

Updating Zfield with BAPI_SALESORDER_CREATEFROMDAT2

Hi I am trying to populate a zfield through BAPI_SALESORDER_CREATEFROMDAT2

here is my code

CLEAR: ls_bape_vbak,gs_extension,gt_extension.

gs_extension-structure = 'BAPE_VBAK'.

ls_bape_vbak-zz_matrix_id = gs_ad_hoc_hdr-quality_matrix_id.

ls_bape_vbak-zztcode_id = 'ZH'.

MOVE ls_bape_vbak TO gs_extension-valuepart1. "NB- Unicode only supports CHAR & NUMC flds

APPEND gs_extension TO gt_extension.

CLEAR ls_bape_vbakx.

gs_extension-structure = 'BAPE_VBAKX'.

ls_bape_vbakx-zz_matrix_id = 'X'.

ls_bape_vbakx-zztcode_id = 'X'.

MOVE ls_bape_vbakx TO gs_extension-valuepart1. "NB- Unicode only supports CHAR & NUMC flds

APPEND gs_extension TO gt_extension.

the field zztcode_id is getting updated but the field zz_matrix_id is not . what could be the reason .

Should i be appending to valuepart2 of gs_extension,

Thanks

Vinay Kolla

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 06:50 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.