We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-dev] BAPI_GOODSMVT_CREATE move_type = '321'

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Question from crepmaster on Jun 6 at 10:45 AM
Hey Expert,

I'm having an issue with a 321 movement for a special stock 'E'.
when I use the mb1b with the same data the movement do not fail, but when I try in in my report I do have the message: msgid m7 msgno 073 type E asking to add the client order (kdauf).
I'm calling the bapI like this:

i_goodsmvt_item-stge_loc = v_lgort. " recuperare dal l'ordine
i_goodsmvt_item-vendor = wa_zqu14_tabconflmi-codforn.
i_goodsmvt_item-move_type = '321'.
i_goodsmvt_item-po_number = wa_zqu14_tabconflmi-testolib3.
i_goodsmvt_item-po_item = wa_zqu14_tabconflmi-testolib4.
i_goodsmvt_item-entry_qnt = wa_zqu14_tabconflmi-qtacons.
* i_goodsmvt_item-entry_uom = 'ST'.
IF wa_zqu14_tabconflmi-testolib5 <> ' '.
i_goodsmvt_item-spec_stock = 'E'.
i_goodsmvt_item-sales_ord = wa_zqu14_tabconflmi-testolib5.
i_goodsmvt_item-s_ord_item = wa_zqu14_tabconflmi-kdpos.
ENDIF.
*da rimettere dopo
APPEND i_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = l_goodsmvt_header
goodsmvt_code = l_goodsmvt_code
IMPORTING
goodsmvt_headret = l_goodsmvt_headret
materialdocument = l_materialdocument
matdocumentyear = l_matdocumentyear
TABLES
goodsmvt_item = i_goodsmvt_item
goodsmvt_serialnumber = i_gm_serialnumber
return = i_return.
IF i_return IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = i_return2.
what do I miss?
in debug the i_goodsmvt_item-sales_ord is filled.
Any ideas?
thanx
 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
pretty lady ask a question
 
crepmaster  
Mr
achievements
 
View this online
Ask a new question
 
In the Spotlight
Have an SAP Question? Ask Your Peers at Toolbox for IT

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language