Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

EDI Orders - Inbound, Orders05 - Enhancements to Additional Data B

Hi Folks,

I have ZORDERS message type coming to SAP which creates Sales Order ( extension of basic type orders05 ) . I have created new ZVBAK segment which carries additional data to the standard vbak table. I have added append structure in vbak table to hold these zfields.

I have modified the Additional Data B - 8309 screen of SAPMV45A to have these values displayed in va01/va02/va03. I could able to update/change/delete these additional data in va01/va02/va03.

Problem:

I'm not able to update the additional data b screen while using ZORDERS message.

I used EXIT_SAPLVEDA_001 to fetch the segment zvbak data and map it to DXVBAK structure. This logic is working fine. SAP is using Calling Transaction on Va01. Additional Data B logic is not getting populated in dynpro SAP is building.

Did anyone faced this issue? Any suggestions?

Tags:
Former Member
Former Member replied

Hi,

Try adding the BACK command in the end.

STATICS: l_added TYPE xfeld.

  CHECK l_dded IS INITIAL.

* Ok code for addition B Screen.
  ls_vbak = dxvbak.
  dxbdcdata-fnam = 'BDC_OKCODE'.
  dxbdcdata-fval = '=KZKU'.
  APPEND dxbdcdata.
  CLEAR: dxbdcdata.
 
* Additional data B screen
  dxbdcdata-program = 'SAPMV45A'.
  dxbdcdata-dynpro   = '8309'.
  dxbdcdata-dynbegin = 'X'
  APPEND dxbdcdata.
  CLEAR: dxbdcdata.
 
* Populate data.
  dxbdcdata-fnam = 'VBAK-ZZJOC_DUTYATRIB'.
  dxbdcdata-fval = 'A'.
  APPEND dxbdcdata.
  CLEAR: dxbdcdata.

  dxbdcdata-fnam = 'BDC_OKCODE'.
  dxbdcdata-fval = '/EBACK'.
  APPEND dxbdcdata.
  CLEAR: dxbdcdata.

  l_added  = 'X'.

Thanks

Naren

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question