ME_UPDATE_DOCUMENT ?
How to use this FM to update PO, could you give a sample code for update afield of EKET? there is too many table variants that must be gived for FM.
Thanks.
Hi
See the Standard Include program
MM06EF0B_BUCHEN
in which this fun module was used and do accordingly
or in SE37 enter this fun module and find Where used List of the Programs of this fun module
You will get some programs and see in those programs
<b>Reward points for useful Answers</b>
Regards
Anji
Similar Messages
-
Update purchasing group in scheduling agreements
Hi gurus,
I'm trying to update purchasing group field in scheduling agreements, which are time-independent (EKKO-STAKO = ' ').
In my environment, I'm not authorized to use CALL TRANSACTION statement.
If possible, I'd need a way that works both in 4.6c and 6.0 versions.
I have tried several options, but none works:
-BAPI_SAG_CHANGE: "Scheduling agreements with time-independent conditions are not supported" (OSS note 1046794) (Also, this is not available in 4.6c)
-BAPI_SCHEDULE_MAINTAIN: "Scheduling agreements with time-independent conditions are not supported" (OSS note 1046794) (Also, this is not available in 4.6c)
-BAPI_AGREEMENT_MAINTAIN: Does not have the possibility to change field 'purchasing group'. (Moreover, it internally performs a CALL TRANSACTION).
-ME_UPDATE_AGREEMENT_PO: I've been not able to change field 'purchasing group'.
I'd be grateful about any hint. Thanks in advance!In case it is useful for anyone else, I have solved the problem using:
CALL FUNCTION 'ME_UPDATE_DOCUMENT'
Thanks anyway! -
PO print immediately after release
Hi SAP experts,
I am getting "update was terminated" message when I release a PO I.e. final release, this message I am getting only for PO for which outtype message with "4" " send immediately when saving the application" the output type is defined for print out.
Requirement is, user wants the PO print after the final release, he don't want to run different T-code for print, the error details are mentioned below.
Mod.ID ; Mod.name ; Module type Status
1 ME_UPDATE_DOCUMENT V1 NORMAL Init
2 EINKBELEG_WRITE_DOCUMENT V1 NORMAL Init
3 ME_REL_EVENT_EKKO V1 NORMAL Init
4 MCE_STATISTICS_UPD_V2 V2 NORMAL Init
5 RV_MESSAGE_UPDATE V1 NORMAL Err
ABAP runtime errors POSTING_ILLEGAL_STATEMENT
Occurred on 23.03.2010 at 09:30:29
>> Short dump has not been completely stored. It is too big.
Statement "CALL SCREEN" is not allowed in this form.
What happened?
The current ABAP/4 program "SAPLSPO1 " had to be terminated because
one of the statements could not be executed.
This is probably due to an error in the ABAP/4 program.
What can you do?
Note the actions and input that caused the error.
Inform your SAP system administrator.
You can print out this message by choosing "Print". Transaction ST22
allows you to display and manage termination messages, including keeping
them beyond their normal deletion date.
Error analysis
This program is triggered in the update task. There, the
following ABAP/4 statements are not allowed:
- CALL SCREEN
- CALL DIALOG
- CALL TRANSACTION
- SUBMIT
How to correct the error
If the error is in one of your own ABAP programs or an SAP program that
you have modified, try to correct it.
If the error occurred in a non-modified SAP program, you may be
able to find a solution in the SAP note system.
If you have access to the note system yourself, use the following
search criteria:
"POSTING_ILLEGAL_STATEMENT"
"SAPLSPO1 " or "LSPO1U04 "
"POPUP_TO_CONFIRM_WITH_MESSAGE"
Thanks & Regards,
VijayHi,
It appears the program is triggering the output, but due to some problems, the output program canot execute it fully. The probable reasons may be:
1. The Form (Smartform or SAP Script) assignment to the output type. The Form may be in-accessible or may the version assigned to the Output type is not active.
2. The Driver Program for the output may be trying to access/update some table which it is not able to perform. Try to test and check print preview/ manual print is possible or not.
3. Printer assignment to message may be faulty, i.e the printer assigned is not in system, or the printer layout assigned is not supporting. Check SP01 to find out the printer settings.
For finding the actual cause, you can look into ST22 and take APAPers helps to find out by debugging.
Regards -
Problem when changing the target quantity for a contract
Hello,
I have a problem when i try to change the target quantity for a contract through the BAPI 'BAPI_CONTRACT_CHANGE'.
I filled the tables 'item' and 'itemx' with new values. the BAPI 'BAPI_CONTRACT_CHANGE' returns no error, but after using the BAPI 'BAPI_TRANSACTION_COMMIT' I get an info message from SAP and the modification does not pass.
In debugger I could locate the error. In fact, the appeal of FM 'ME_UPDATE_DOCUMENT is done with a table XEKKN with the new values of the quantity and a KZ code equal to ' I ' to insert, then it must have the value ' U 'for update .
Is someone can help me to solve this problem?
Thank you in advance.Have you tried selecting the page, and then changing the theme directly on that page?
-
Run-time error ROLLBACK_IN_POSTING
Error in ABAP application program.
The current ABAP program "SAPLEINU" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
"ROLLBACK_IN_POSTING" C
"SAPLEINU" or "LEINUU05"
"ME_UPDATE_DOCUMENT"
Client.............. 300
User................ "SOLIMENEA"
Language key........ "I"
Transaction......... "ZCARIO "
Program............. "SAPLEINU"
Screen.............. "RSM13000 3000"
Screen line......... 2
Help Me
Thank you
MCMaurizio,
the ABAP program seems to be a standards one - check SAP Notes or please give the TCode or operation you performed when you got this message.
Arun -
ME_UPDATE_REQUISITION - No FM Document
Hello FM Gurus,
I really appreciate it if you can kindly answer this question:
We have a requirement where we have to add new lines items to an existing PR and PO.
I am using Function Module 'ME_UPDATE_REQUISITION' to add new line items to PR and 'ME_UPDATE_DOCUMENT' to add new line items to PO.
The line items are added successfully, however, no FM document is being created for the newly added items.
FM documents are generated during create using 'BAPI_REQUISITION_CREATE' and 'BAPI_REQUISITION_CHANGE'....etc....so, we know that the BL postings are active...maybe any other BAPI/FM is recommended to add new line items???
Any help on this is very much appreciated...
Regards,
SanthoshHi,
Please see the code.
DATA: container LIKE TABLE OF swr_cont WITH HEADER LINE,
xeban LIKE TABLE OF ueban WITH HEADER LINE,
xebkn LIKE TABLE OF uebkn WITH HEADER LINE,
yeban LIKE TABLE OF ueban WITH HEADER LINE,
yebkn LIKE TABLE OF uebkn WITH HEADER LINE,
object_key TYPE swr_struct-object_key,
item_numc TYPE numc05.
SELECT *
INTO CORRESPONDING FIELDS OF TABLE xeban
FROM eban
WHERE banfn = number.
*AND bnfpo = item.
SELECT *
INTO CORRESPONDING FIELDS OF TABLE xebkn
FROM ebkn
WHERE banfn = number.
*AND bnfpo = item.
YEBAN = XEBAN.
YEBKN = XEBKN.
READ TABLE xeban INDEX 1.
xeban-kz = 'U'.
xeban-banpr = REL_CODE.
MODIFY xeban INDEX 1.
CALL FUNCTION 'ME_UPDATE_REQUISITION'
TABLES
xeban = xeban
xebkn = xebkn
yeban = yeban
yebkn = yebkn.
CALL FUNCTION 'ME_UPDATE_REQUISITION_CHNGDOC'
TABLES
xeban = xeban
xebkn = xebkn
yeban = yeban
yebkn = yebkn.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = BAPIRET -
'Express document terminated' - Error in ME22N
Hi All,
I came across the message ''Express document terminated' when I tried changing the Purchase Order using ME_PO_CHANGE.
In complete, I have a custom program to create new Purchase order, the program calls 'BAPI_PO_CREATE' and New PO is created successful but with few data missing from the new PO (Aggrement No, Item, Pur Req, Header Text..etc). Once the BAPI is successful, the FM 'ME_PO_CHANGE' is used to update the New PO with the missing data and the FM throws success message but fails to updated the PO, and endup in 'Express document terminated'.
I checked the T-code SM13 and it shows error in ME_UPDATE_DOCUMENT (00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC). Any help would be rewarded with suitable.
Rgds,
NarunHi,
This error will comw when you try to post any value which is not suitable for User settings, i mean if the variable format is 1,000.00 and you try to pst someother format then this will come.
in your case, you are trying to insert a record which is already existed in the database, so make sure this one before run the BAPI
Regards
Sudheer -
Bapi for Updating the confirmation table(EKES)
Hi,
Could anyone let me know the BAPI to update the Vendor confirmation table EKES. And also the parameters to be passed to it.
Thanks.Suman:
After your call to FM ME_UPDATE_DOCUMENT is successful, please perform a explicit COMMIT.
Umair:
Use the FM ME_CONFIRMATION_UPDATE to update EKES table.
CALL FUNCTION 'ME_CONFIRMATION_UPDATE'
EXPORTING
i_ebeln = ekko-ebeln
TABLES
xekes = xekes
yekes = yekes.
"yekes contains the EKES table in DB
"xekes contains the changed values for EKES table
Hope this helps. Reward points if helpful.
Thanks
Balaji
Edited by: Balaji Ganapathiraman on Mar 20, 2008 1:10 PM -
Hello,
Updates are terminating while updating PO in ME22n.
Function Module ME_UPDATE_DOCUMENT
Status Update was terminated
Report LEINUU05
Row 401
Error details Class: ME Number: 808
ME 808: System error: error during update Table EKET
Please help to find out what can be the cause of this.Hi Pooja,
Check SAP Note 1015948 - AFS:Update terminated after PO Change ME22N. and SAP 485651
Thanks
Sunny -
HI All,
Anyone know BAPI for create and change PO in SAP version 40b?
This BAPI is not available:
BAPI_PO_CREATE1
BAPI_PO_CHANGE
Can we use this function?
ME_CREATE_DOCUMENT
How about for changing?
Please advice, with the example much better
Best Regards,
Victor.I don't think there is BAPI for PO in 4.0B Version..
ME_CREATE_DOCUMENT - will create Purchase order
Use this FM ME_UPDATE_DOCUMENT to update PO
I saw the FM and looks like both FM will create and update FM,I did not find any sample programs.
Do the where used list in SE37 and may be you get atleast one SAP standard program.
Thanks
Seshu -
To remove Error in a Legacy Correction; "Contains Errors In Process"
Hi expert,
I was trying to perform some action in my Legacy Correction and found out I have no authorization. Thus, a error came out, having the error message, red light, I quit the correction and came in again, it's still there, with System status "Contains Errors In Process".
How to remove that?Hello
Make sure that the following note is implemented on your system:
1878100 - Posting termination in ME_UPDATE_DOCUMENT for table EKET
BR
Caetano
Maybe you are looking for
-
Cannot retrieve definition for form bean null
Hi, I have a page jsp which contains a form. This form contains an action towards (page.do ). I configured struts-config.xml file in whom I put a configuration of action ( type=xxx.pageAction ) but not form bec
-
Am i able to set a class object to session?
Hi, i want to store some session data in a web application. I understand session can be set by this way: session.setAttribute('student', name); session.setAttribute('teacher', name2); However the method above stores one a value in a session. I want t
-
How can I Add No. of hours in datetime text_item and result in datetime?
Hi Friend, I used this statement in Key Next Item trigger on Text_item. Here I want to add No. of hours in datetime field and is also in datetime filed. Such as 06-12-2006 13:53+2= 06-12-2006 15:53 Select to_char(:Txt1_datetime+:Hrs/24,'dd-mm-yyyy hh
-
Gurus, Any standard report to show short delivery? Example: Sales Order 100 Qty, Delivery 50 Qty. Example: Sales Order 100 Qty, Delivery 50 Qty, Pick Qty : 25 Example: Sales Order 100 Qty, Delivery 50 Qty, Pick Qty : 25, PGI Qty : 10
-
Perl, MysQL, DBD, running 10.5.7
Hi, As several forums suggested Apple screwed up Perl with the 2009-001 Security update. As I found out the problems with Perl have not been repaired in 10.5.7, although I expected it to be. Alas. I used to run Perl scripts using the DBI::DBD interfa