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

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

Re: [sap-dev] Marc-xmcng Not Updated With Bapi

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

Reply from crepmaster on Oct 28 at 1:25 AM
Hello you all, any clue on this issue please?

Dott.ANDRE EBONGUE

---------------Original Message---------------
From: ebongue andre
Sent: Monday, October 27, 2014 10:12 AM
Subject: Marc-xmcng Not Updated With Bapi

BAPI_MATERIAL_MAINTAINDATA_RT
the bapi does not show error but the field is not updated.
Do I miss some parameters for the BAPI?
This is my piece of code:

CLEAR: ls_headdata, ls_plantdata, ls_plantdatax.
REFRESH: lt_plantdata, lt_plantdatax.
*dati di testata
MOVE: '004' TO ls_headdata-function,
wa_matnr-matnr TO ls_headdata-material,
'X' TO ls_headdata-logdc_view.
* dati di posizioni
MOVE: '004' TO ls_plantdata-function,
'004' TO ls_plantdatax-function,
wa_matnr-matnr TO ls_plantdata-material,
wa_matnr-matnr TO ls_plantdatax-material,
'D100' TO ls_plantdata-plant,
'D100' TO ls_plantdatax-plant,
'X' TO ls_plantdata-neg_stocks,
'X' TO ls_plantdatax-neg_stocks.

APPEND: ls_plantdata TO lt_plantdata,
ls_plantdatax TO lt_plantdatax.
* Chiamata alla bapi
CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
EXPORTING
headdata = ls_headdata
IMPORTING
return = ls_return
TABLES
plantdata = lt_plantdata
plantdatax = lt_plantdatax.
IF ls_return-type NE 'E'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ELSE.
WRITE /: 'update error for material:', wa_matnr.
ENDIF.

With MM42 I do not have problem to add the flag.

Thanks and regards.

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2014 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
crepmaster  

achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

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