ME41 create - create RFQ - BAPI - Userexit
Hello experts,
I'm was trying to find a BAPI to create a request for quotation (RFQ).
I read the thread [Re: BAPI to create Purchase Requisition;, so there seams to be no BAPI.
For that reason I tried to solve the problem with batch input. It created a RFQ. But in further steps the transaction normally loops throught a amount of suppliers, the RFQ is directed to.
CLEAR ls_bdc_data.
ls_bdc_data-fnam = 'BDC_OKCODE'.
ls_bdc_data-fval = '/00'.
APPEND ls_bdc_data TO lt_bdc_data.
ls_ctu_params-racommit = ''.
ls_ctu_params-nobinpt = 'X'.
ls_ctu_params-dismode = 'E'.
* ls_ctu_params-updmode = 'S'.
ls_ctu_params-nobiend = 'X'.
CALL TRANSACTION 'ME41' USING lt_bdc_data OPTIONS FROM ls_ctu_params.
Does anybody have an idea.
Best regards,
Andi
Hi,
I found the problem. The ME41 uses a COMMIT WORK in MM06EF0B_BUCHEN.
* docu: process COMMIT WORK
* function module, ME41 and ME59 sometimes using COMMIT AND WAIT
IF no_commit IS INITIAL. "for FM w/o COMMIT possible
IF commit_wait IS INITIAL AND sy-tcode NE 'ME41'
AND NOT ( ( fc_vorga EQ cva_ab OR NOT gf_me59n IS INITIAL )
AND gf_atp_indicator EQ 'X' ).
COMMIT WORK.
ELSE.
COMMIT WORK AND WAIT.
ENDIF.
For that reason I had to change the options:
ls_ctu_params-racommit = 'X'.
ls_ctu_params-nobinpt = 'X'.
ls_ctu_params-dismode = 'E'.
" ls_ctu_params-updmode = 'L'.
ls_ctu_params-nobiend = 'X'.
CALL TRANSACTION 'ME41' USING lt_bdc_data OPTIONS FROM ls_ctu_params.
It works.
Best regard,
Andi
Similar Messages
-
Dear Gurus
Is there BAPI to create RFQ?
Only found this for Quotation from the tread.
BAPI_QUOTATION_CREATEFROMDATA
BAPI_QUOTATION_CREATEFROMDATA2
I am in SAP47 environment. I do not want to add Call txn logic for thisHI,
You can create the Rebate Agreement using this BAPI BAPI_AGREEMENT
You have to pass the following fields :
Operation : 005
Agree_Cond : $
Sales-Org :
Distr_Chan :
Division :
Agr_Type :
Category : A
Application : V
Recipient :
Ex_Descr :
Valid_From :
Valid_To :
Cond_Group : This value you can find from SPRO. Search for Rebate in Search Tab; there you will get the link in Billing.
This will solve your purpose. -
Getting error when creating a RFQ in MM module" create rfq item overview"
Hi,
i am a beginer in SAP administration, users are getting this error message and i have done all my research and not able to resolve this issue.
This error i am getting when creating a RFQ in MM module and when trying to save the screen "create rfq item overview" then it gives me a pop up box message " SAP SYSTEM MANAGER: WORK PROCESS RESTARTED, SESSION TERMINATED".
Here are the details of teh system
SAP Version :ideas 4.7
Database :Oracle
OS : windows 2003
Module user is working on MM
user working on it is a Super user with all the permissions
SAP is configure to run under the European date and decimal format.
I have never done any database administration on it, it is a new install and has been rarely used.
User creates a RFQ and when he tries saving it , seems like for the first time after either restarting the macine or restarting the service it might work and at time it might not, this is a very sporadic error and most of the times it crashes out with the message "sap system manager:work process restarted, session terminated" and kicks the user out of the session.
Below are the details of the error message from ST22 :
name of the runtime error : system_core_dumped
below are the details of the error message and its resoltion as suggested by sap help :
========
Runtime Errors SYSTEM_CORE_DUMPED
Occurred on 01.02.2008 at 07:52:19
Process terminated by signal " ".
What happened?
The current ABAP program had to be terminated because the
ABAP processor detected an internal system error.
The current ABAP program "SAPLCLSC" had to be terminated because the ABAP
processor discovered an invalid system state.
What can you do?
Make a note of the actions and input which caused the error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
An SAP System process was terminated by an operating system signal.
Possible reasons for this are:
1. Internal SAP System error.
2. Process was terminated externally (by the system administrator).
Last error logged in SAP kernel
Component............ "Taskhandler"
Place................ "SAP-Server server1_DEV_00 on host server1 (wp 1)"
Version.............. 1
Error code........... 11
Error text........... "ThSigHandler: signal"
Description.......... " "
System call.......... " "
Module............... "thxxhead.c"
Line................. 9555
How to correct the error
The SAP System work directory (e.g. /usr/sap/c11/D00/work ) often
contains a file called 'core'.
Save this file under another name.
If you cannot solve the problem yourself, please send the
following documents to SAP:
1. A hard copy print describing the problem.
To obtain this, select the "Print" function on the current screen.
2. A suitable hardcopy prinout of the system log.
To obtain this, call the system log with Transaction SM21
and select the "Print" function to print out the relevant
part.
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, you can either use the "PRINT" command in the editor or
print the programs using the report RSINCL00.
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.
System environment
SAP Release.............. " "
Application server....... " "
Network address.......... " "
Operating system......... " "
Release.................. " "
Hardware type............ " "
Character length......... " " Bits
Pointer length........... " " Bits
Work process number...... " "
Short dump setting....... " "
Database server.......... " "
Database type............ " "
Database name............ " "
Database owner........... " "
Character set............ " "
SAP kernel............... " "
Created on............... " "
Created in............... " "
Database version......... " "
Patch level.............. " "
Patch text............... " "
Supported environment....
Database................. " "
SAP database version..... " "
Operating system......... " "
User, transaction...
Client.............. " "
User................ " "
Language key........ " "
Transaction......... "ME41 "
Program............. "SAPLCLSC"
Screen.............. "SAPMM06E 0320"
Screen line......... 71
Information on where termination occurred
The termination occurred in the ABAP program "SAPLCLSC" in "EXECUTE_SELECT".
The main program was "SAPMM06E ".
The termination occurred in line 131 of the source code of the (Include)
program "LCLSCF2G"
of the source code of program "LCLSCF2G" (when calling the editor 1310).
=============
i even tried increasing the dialog processes but with no use.The same error occurs.
I appreciate every one of help i can get, i am working on a deadline which is tomorrow evening to resovle this issue, any kind of help is highly appreciated.
thanks
mudessir.Hi Mudessir,
With the help of ABAP'er try the following.
1. open the program 'LCLSCF2G' from SE38.
2. Keep a break point at line no: 131.
There is 'END SELECT' statement which is getting failed at line no 131 in the program.
Try to analyse the SY-SUBRC at that point.
If your technical consultant can't solve this, write to SAP OSS (service.sap.com).
I have searched SAP OSS, there are other situations, but your case is not there. So write to SAP if technical consultant can't solve it by debugging the program.
Regards,
Madhu. -
Using ME57 to create an RFQ from multiple lines on multiple PRs
When using ME57 to create RFQs how can I select multiple line items from multiple purchase requisitions to turn into a single RFQ. If I select multiple lines and then use 'RFQ with Vendor', it only selects one line item. After further research it appears that you can only create only line at a time (very time consuming).
If you use ME41 and create with reference to PR then you can not sort or filter columns to allow for easy consolidation.
Another forum recommended the following when using ME57 which works but it again adds extra steps to the process.
The whole process is as follows -
1) When you are in the 'Assign and Process Purchase Requisition' screen, select related PR and then click on 'Without Vendor' icon to flag all PRs for RFQ processing.
2) Select these PRs again and click further on 'Assignment Overview' icon (Shift and F5). The next screen will appear - Assign and Process requisitions - Overview of Assignments screen.
3) Select the 'PReq' column and then click further on 'Process Assignment' icon (F2). The next screen will appear where you have to maintain the 'quotation deadline' information.
4) Then click on 'Continue' icon (enter).
[http://www.sapfans.com/forums/viewtopic.php?f=6&t=198768]
So is there any way to either 1) enable sorting of data in ME41 or 2) use ME57 to create one RFQ from multiple line items of multiple purchase requisitions when selecting 'RFQ with Vendor'.What is the JPEG specs? What are the specs of the project you're working in?
-
How to create invoice using bapi base on delivery number with example
hi,
Pl give me one example to create invoice using bapi base on delivery number (PGI).Use this code
* Pass the delivery no to the FM to create the invoice
wa_vbsk-smart = u2018Fu2019.
wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
APPEND wa_komfk TO it_komfk.
CLEAR wa_komfk.
* To fill the message structure
* l_wa_error-vbeln_vl = nast-objky. " Delivery No.
* l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
* delivery_date = 0
invoice_date = v_date u201C<- date
* invoice_type = ' '
* pricing_date = 0
vbsk_i = wa_vbsk
with_posting = u2018Du2019
* select_date = 0
i_no_vblog = ' '
i_analyze_mode = ' '
id_utasy = ' '
id_utswl = ' '
id_utsnl = ' '
id_no_enqueue = ' '
id_new_cancellation = ' '
** IMPORTING
* VBSK_E =
* OD_BAD_DATA =
* DET_REBATE =
TABLES
xkomfk = it_komfk
xkomv = it_komv
xthead = it_thead
xvbfs = it_vbfs
xvbpa = it_vbpa
xvbrk = it_xvbrk
xvbrp = it_vbrp
xvbss = it_vbss
* XKOMFKGN =
* XKOMFKKO = -
Need code for sales order create report using bapi's
need code for sales order create report using bapi's
Hi,
Go through below link
http://www.saptechies.com/bapi_salesorder_createfromdat2/
<b>Reward points if it helps,</b>
Satish -
ERROR IN CREATING PO USING BAPI
Hi friends,
My requirement is to create po using BAPI but i am getting error message .i have entered all the fields but still i am getting This errors.
E BAPI 001 No instance of object type Purchase Order has been created. External reference:
E MEPO 000 Purchase order still contains faulty items
E ME 645 Subcontracting as stock transfer within a company code not possible
I ME 123 Supplying and receiving plants identical (Please check)
please help.
thanks in advance.
Moderator message: please read message long texts, speak to a functional expert (these are not ABAP related errors), do more research before asking, do not use all capitals in the title.
Edited by: Thomas Zloch on Nov 30, 2011 1:06 PMHi
It seems you're creating a transfer order and an item is set for subcontracting, that's not possible, so check the item type
Max -
Error while creating WBS through BAPI
I am using BAPI_PROJECT_MAINTAIN to create WBS L2 & L3.
There is only 1 WBS at both levels.
For some cases it is running fine, but I am getting the following error in some cases:
"WBS element 3UTWB_BSRHT_001 can no longer be shifted"
What could be the reason?As you told you are creating WBS vai BAPI. This may not be exact relevant Normally you cannot change hierarchy of WBS Elements after you have done some sort of execution / planning on it. If you are getting error than please share details of error message with no.
With Regards
Nitin P. -
Create material using bapi ' bapi_material_savedata'
Hi Experts,
i was tring to create material using bapi ' bapi_material_savedata' but the material is not updating in the table.
please find the code and suggest me if any modification
data: la_headdata type BAPIMATHEAD,
la_clientdata type BAPI_MARA,
la_CLIENTDATAX type BAPI_MARAX,
la_return type BAPIRET2.
data: i_materialdescription type table of BAPI_MAKT,
wa_materialdescription like line of i_materialdescription.
*la_headdata-MATERIAL = int_matnum-MATERIAL.
*LOOP AT int_matnum.
la_headdata-MATERIAL = int_matnum-MATERIAL.
write : int_matnum-material.
*ENDLOOP.
la_headdata-MATERIAL = '100000518'."int_matnum-MATERIAL.
la_headdata-IND_SECTOR = p_indsr.
la_headdata-MATL_TYPE = p_matype.
la_clientdata-BASE_UOM = 'FT3'.
la_clientdata-pur_valkey = ' '.
la_CLIENTDATAX-BASE_UOM = 'X'.
la_clientdata-MATL_GROUP = '01'.
la_CLIENTDATAX-MATL_GROUP = 'X'.
wa_materialdescription = 'TEST'.
append wa_materialdescription to i_materialdescription.
clear: wa_materialdescription.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = la_headdata
CLIENTDATA = la_clientdata
CLIENTDATAX = la_CLIENTDATAX
PLANTDATA =
PLANTDATAX =
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
VALUATIONDATA =
VALUATIONDATAX =
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA =
SALESDATAX =
STORAGETYPEDATA =
STORAGETYPEDATAX =
FLAG_ONLINE = ' '
FLAG_CAD_CALL = ' '
IMPORTING
RETURN = la_return
TABLES
MATERIALDESCRIPTION = i_materialdescription
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
Please Help me
Regards,
NareshHi all,
Now it is asking me for the other fields,
E ,
The field MARA-XCHPF/BAPI_MARA-BATCH_MGMT is defined as a required field; it does not contain an entry
i have passed this val as
la_clientdata-batch_mgmt = 'X'.
even though i am getting the same error.
can you help me to solve the issue.
Tthanks
Naresh
Edited by: naresh.k.dasari on Jan 4, 2011 10:36 AM -
Hi,
I am trying to create PDF using BAPI. I got one BAPI(Z_MM_EPSP_BAPI_GET_PO_PDF). That bapi returns bytecodes. How can I generate PDF file using this BAPI output in BLS. Give some example
Thanks & Regards
ArtArt,
Are you familiar with xMII at all? I would like to answer your question but it seems more like a tutoring lesson rather than a technical problem.
Please post a problem and not how somone can help you do your work. Unless of course you are willing to paypal some money over. :-D -
Fail when creating routing through bapi.
what are the mandatrory steps to create routing using bapi fm ( bapi_routing_create )?
when i create routing using bapi it is showing the routing is created succesfull but it is not updating in the standard table plko .after bapi use commit
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'. -
Account assignment while creating reservation using bapi
Hi , I am creating reservation using BAPI (BAPI_RESERVATION_CREATE1), but when I seeing the open reservation account assignment field is blank, could any on ehelp me on this, i.e what parameter I am missing in BAPI for account assignment.
best regards
pankajHi,
there is not field to assign the account assignment in Bapi..
you need to assignt he account manaually.
Assign account assignment category.
SELECT * FROM eban INTO TABLE lt_eban WHERE banfn = w_banfn .
IF sy-subrc = 0.
LOOP AT lt_eban .
lt_eban-knttp = 'J'. "assign your own account categeory
MODIFY eban FROM lt_eban.
COMMIT WORK AND WAIT.
ENDLOOP.
endif.
Regards,
Prabhudas -
Hi,
In Vision Demo, after buyer (e.g. cbaker) creates a RFQ, then i can logon as supplier account (e.g. 'industrial') to input corresponding quotation.
But as our site doesn't allow suppliers to logon our EBS directly and we receive paper quotations, then, is it possible for buyer to input quotation for these RFQs in Sourcing module?
Thanks
Leoprivate String createTransmitter() {
localAddr = new SessionAddress( InetAddress.getLocalHost(), port);
destAddr = new SessionAddress( ipAddr, port);You can do instead:
localAddr = new SessionAddress( InetAddress.getLocalHost(), SessionAddress.ANY_PORT); -
Problem while creating assets using BAPI
Use table enhancement BAPI_TE_ANLU
Diagnosis :The BAPIs for creating and changing assets currently support only those customer enhancements that relate to the user fields created using SAP enhancement AIST0002.
Can anybody give the appropriate solution why this error is coming while creating assets using BAPI.Looks like you are trying to transfer custom fields into the asset master data that were not added following the steps in enhancement AIST0002.
Using EXTENSIONIN parameter, you can transfer user fields from the asset master record. However, it is not possible to transfer fields that are updated in user-defined tables. Only user fields that were defined using SAP enhancement AIST0002 and are automatically updated in table ANLU can be udpated in this way. This means you have to use table extension BAPI_TE_ANLU.
Enhancement AIST0002 contains function module EXIT_SAPL1022_001 as a component in which user fields can be implemented.
The documentation ( BAPIPAREX) of the structure that forms the basis for this parameter contains additional information about using this parameter.
Please check how table ANLU has been enhanced and also go through the documentation of enhancement AIST0002.
Regards,
Shyam -
Getting error message while creating Contract through BAPI
Hi
I am getting a 'Specify either address number or address handle' message while creating contract from BAPI BAPI_CONTRACT_CREATEFROMDATA. Can someone please tell me what can be the cause.Hello Bharati,
you need to give the value of the constant by selecting from the source parameter.Hope this answer helps you.
Assigning Points = Thanks in SDN
Thanks & Regards
Jai
Maybe you are looking for
-
How long does it take for the "free trial offer" to be activated?
-
Need inputs : PO Smartform in Bulgaria language
Hi Experts, I need a couple of suggestions and guide lines for PO print out Smart form. We have requirement for PO, print out should print in Bulgaria language if the PO Vendors is from Bulgaria country. And if the vendor is other than Bulgaria coun
-
Sample script to insert into mtl_transactions_interface for sales order
Hi, can any one provide me the script to insert into mtl_transactions_interface for sales order transactions. actually i have to create the transactions for all the assemblies/components of C* item (configured item). as per the standard functionality
-
Line-In 3 not available when speaker system set to 7.1 (Audigy 4 Pro)
I have just upgraded to the latest Audigy 4 Pro drivers. After the installation, I can not find the line-in 3 option on the mixer panel any more. This is only when my speaker system is set to 7.. However, if I change it to 2., 5.... etc, the Line-In
-
IMovie upgrade to 10.6.3 problem
Has anyone upgraded iMovie version to 10.6.3 and failed then on to get any audio ?? How to fix this please ?? Running on iMac (21.5 inch) Thanks. Jim