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] BAPI_PO_CHANGE message error

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

Posted by sapwes (Jack)
on Aug 23 at 3:18 PM
I would think refresh has not been done.
As another step, set a break point at the start of the function module.
In a loop after there is an error , then check to see if the return table is already filled at the beginning of the function module.
On the odd chance that it is appearing mysteriously somehwere in the function module, debug through the call to see what is raising it and why.

Wes

---------------Original Message---------------
From: vostan
Sent: Tuesday, August 23, 2011 2:19 PM
Subject: BAPI_PO_CHANGE message error

Hello Guys,


I have a problem when calling the BAPI_PO_CHANGE in loop to update the field EREKZ (Final Invoice) from ME22N.

Follows the logic...

Loop

CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = vl_po_number
TABLES
Return = tl_return
poitem = tl_poitem
poitemx = tl_poitemx.


IF sy-subrc = 0 .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = c_x
ENDIF.

clear (all structures and table)...

endloop


Today the program works nice, blocking all PO correctly (field EREKZ)...
But, if one PO return some error for internal table, all PO subsequent too will have some error.

I need so much of help,
Please, somebody knows what's happening?


Thank you,
Vostan

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
sapwes
SAP Development Helper

Posted helpful replies on 5 threads in a group to earn a Bronze Achievement
Popular White Papers

In the Spotlight
View the "Managing the Application Life Cycle" webinar and learn how organizations optimize their SAP applications.
_.____.__

0 comments:

Post a Comment

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