BAPI for Creating a PM order(iw34) with reference to a Notification
Hi All,
Could anyone help to find the BAPI for creating a PM order with reference to a notification Number.
I will explain my requirement :
I want to create a notification from an external Application where i got the BAPI BAPI_ALM_NOTIF_CREATE and keeping this created notification number as Referece or for this notification number i need a create a PM order.Usually this process in done transaction IW34 in R/3.
But with the BAPI BAPI_ALM_ORDER_MAINTAIN i can create a PM order but this BAPI doesn't have a input parameter "Notification number ".So i can't use this BAPI.
Could any suggest for a BAPI where i can create a PM order with reference to a Notification Number.
Regards,
Sid
Hi,
I have tried with the FM CO_IH_ORDER_GENER_2 but when i executes it gives a error message
"<i>Service/maintenance order type PM02 not completely maintained in plant
Message no. IW216
Diagnosis
For the selected order type and plant, no check control is maintained in Plant Maintenance/Service in 'Availability Check for Materials, PRTs and Capacities'.
Procedure
A check control must be maintained for this combination of order type and plant</i>"".
And even have a doubt what to enter in this input parameter "GEWRK_OBJTYP" .
Kindly help me to solve this issue.
Regards,
Sid
Similar Messages
-
Dear Experts,
I have created a quotation in CRM system. I want that to be downloaded into ECC, so that, I can create a sales order there with reference to that quotation. What are the parameters that I need to set in CRM system so that my quotation gets replicated without any error?
Please help me in this regard. An early and in detail step by step guidance is highly appreciated.
Thanks,
SMTPIt may be best to recreate the folder and the smart playlists from scratch.
tt2 -
Create a Sales order (type) with reference to another Sales order only
Hi
I have 2 Order Types (ZRA and ZRC). The ZRA should always be created only with reference to a ZRC. It should not be allowed to create ZRA directly.
I believe I can remove the Item categories somewhere, but can't figure it out. Any help is appreciated
Regards,
VikasHi
In sd doc tyoes in t code vov8 in the general control tab you can define mandatory referance and in that you can choose option C which means the referance doc should be only a sales doc not enquiry or quotation
Pls reply whether my suggestion has helped you
Raja -
BAPI for Creating Service Purchase Order
Hi All,
I am not able to create service po using bapi, after passing the parameters
ls_polimits-LIMIT = '30'.
ls_polimits-EXP_VALUE = '20'.
APPEND : ls_polimits TO gt_polimits.
ls_poserv-quantity = '10'.
ls_poserv-base_uom = 'AU'.
ls_poserv-short_text = 'AAAAAAAA'..
ls_poserv-price_unit = '1'.
ls_poserv-GR_PRICE = '25'.
ls_poserv-TAX_CODE = 'V0'.
ls_poserv-MATL_GROUP = '6AD'.
APPEND : ls_poserv TO gt_poserv,
ls_poservx TO gt_poservtxt.
message getting is
500000280 00010 Purchase order still contains faulty items
500000280 00010 No instance of object type PurchaseOrder has been created. External reference:
500000280 00010 Please maintain services or limits
please help me
Appropriate points will be rewarded.
ArunDear Seshu,
This is not the problem with data, coz, i am able to create the PO (Service) Manually.
please let me know what all tabeles, i need to pass for this BAPI_PO_CREATE1
presently I am passing
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = g_pohdr
poheaderx = g_pohdrx
testrun = 'X'
IMPORTING
exppurchaseorder = l_ponum
TABLES
return = lt_return
poitem = gt_poitem
poitemx = gt_poitemx
poaccount = gt_poacct
poaccountx = gt_poacctx
POSERVICES = gt_poserv
POSRVACCESSVALUES = gt_poservacc
Regards
Arun -
Suggest BAPI for create notification IW34
Hi,
Kindly suggest BAPI for create notification IW34.
Regards,
TanayaHow to find function module or Bapi for particular transaction in sap?
If you mean that you need to know what BAPI's a particular tranx uses, which I can only assume that's what you mean, then you should access the code behind the transaction and search for 'CALL'. That normally is the standard method that think that most people use.
Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this.
1. Find out the package of the transaction.
Start Va01 go to system --> status.
Double click on transaction
Package is VA
Open this package in SE80
Open business engineering-->Business object types
Find the BO which sounds the most appropriate
I would suggest BUS2032 Sales Order
Double click.
Open methods.
Find the released method with from data or something similar in the name
, Createfromdat2
Position the cursor in it and click the program button
Scroll down to find the bapi used in this method
With this way you can also find out programs and FM's
2. Start va01 go to system-->status
Double click transaction VA01
Double click on package
Read the application component. (this is SD-SLS Sales)
Then open the transaction BAPI
Sales and distribution>Sales>sales order
createfromdat2
Answer: This is the BAPI for your mentioned transaction code BAPI_GOODSMVT_CREATE.
thanks,
Sankar M -
CRM - Bapi for creating relationship between BPs with sales area data
Hi
I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
Example - I would like to create relationship type CRMH03.
Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
Does anybody know such a bapi?
Regards
RadekHey Radek,
I am actually looking for the same functionality. Were you able to find a solution although no one replied to your question in this thread? If so, it would be very helpful for me to know. Maybe you have to combine more BAPIs in order to add the organization information to the relationship. But I have no idea how.
Best Regards
Mirko -
BAPI SALES ORDER & Copy with reference
Hello,
I'm creating sales order copied with reference to an invoice. My problem is that the data item is empty. When I create the sales order manually and use the option 'Create with reference' and choose an invoice, the sales order is created with all data item. I don't know how I can get to copy the data item from the invoice in the new sales order. The code that I'm using is the following:
DATA: order_header_in LIKE bapisdhd1,
order_partners LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
order_text LIKE bapisdtext OCCURS 0 WITH HEADER LINE,
order_header_inx LIKE bapisdhd1x,
order_item_in LIKE bapisditm OCCURS 0 WITH HEADER LINE,
order_schedules_in LIKE bapischdl OCCURS 0 WITH HEADER LINE,
order_conditions_in LIKE bapicond OCCURS 0 WITH HEADER LINE,
extensionin LIKE bapiparex OCCURS 0 WITH HEADER LINE,
partneraddresses LIKE bapiaddr1 OCCURS 0 WITH HEADER LINE,
order_cfgs_ref like BAPICUCFG occurs 0 with header line.
DATA: salesdocument LIKE bapivbeln-vbeln.
DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
order_header_in-doc_type = 'ZA09'.
order_header_in-sales_org = '1700'.
order_header_in-distr_chan = '01'.
order_header_in-division = '01'.
order_header_in-BILL_DATE = '20060701'.
order_header_in-ref_doc = '0900000019'.
order_header_in-refdoc_cat = 'M'.
*order_header_in-REF_DOC_L_LONG = '0900000019'.
order_header_in-purch_no_c ='prueba'.
*order_header_in-ord_reason = '003'.
*order_header_in-pmnttrms = '0002'.
*order_header_in-sales_off = '2800'.
order_header_in-ref_doc_l = 'FACTURA ES'.
*order_header_in-fix_val_dy = '20060701'.
*order_header_in-currency = 'USD'.
*order_header_in-exchg_rate = '1.2'.
order_partners-partn_role = 'AG'.
order_partners-partn_numb = '0000000001'.
order_partners-langu = 'EN'.
order_partners-name = 'El corte aleman'.
order_partners-country = 'ES'.
APPEND order_partners.
order_partners-partn_role = 'RE'.
order_partners-partn_numb = 'ARR000'.
order_partners-addr_link = '0000030044'.
APPEND order_partners.
CALL FUNCTION 'ADDR_GET_COMPLETE_ALL_TYPES'
EXPORTING
addrnumber = order_partners-addr_link
PERSNUMBER =
address_object_type = '1'
IV_CURRENT_COMM_DATA = 'X'
IMPORTING
ADDR1_COMPLETE =
ADDR2_COMPLETE =
ADDR3_COMPLETE =
ADDR1_COMPLETE_BAPI = partneraddresses
ADDR2_COMPLETE_BAPI =
ADDR3_COMPLETE_BAPI =
EXCEPTIONS
PARAMETER_ERROR = 1
ADDRESS_NOT_EXIST = 2
PERSON_NOT_EXIST = 3
INTERNAL_ERROR = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
data: vl_texto(40) value 'NUEVOOOOO'.
partneraddresses-name = vl_texto. clear vl_texto.
partneraddresses-name_2 = vl_texto.
partneraddresses-name_3 = vl_texto.
partneraddresses-name_4 = vl_texto.
partneraddresses-langu = 'E'.
APPEND partneraddresses.
DATA: vl_cantidad LIKE bapisditm-target_qty.
vl_cantidad = 1.
order_item_in-itm_number = 10.
order_item_in-material = 'HONORARIOS'.
order_item_in-ref_doc = '0900000019'.
order_item_in-ref_doc_it = 10.
order_item_in-ref_doc_ca = 'M'.
APPEND order_item_in.
order_schedules_in-itm_number = 10.
order_schedules_in-req_qty = vl_cantidad.
APPEND order_schedules_in.
order_text-text_id = 'Z001'.
order_text-ITM_NUMBER = ''.
order_text-langu = 'EN'.
order_text-text_line = 'Hola, CARACOLAcola'.
APPEND order_text.
order_text-text_id = 'Z001'.
order_text-langu = 'EN'.
order_text-text_line = 'Adios caracol'.
APPEND order_text.
order_text-itm_number = '000010'.
order_text-text_id = '0001'.
order_text-langu = 'EN'.
order_text-text_line = 'Hola, POSICIÓN'.
APPEND order_text.
extensionin-structure = 'BAPE_VBAK'.
extensionin-valuepart1 = ' BCL 7'.
APPEND extensionin.
order_cfgs_ref-posex = '10'.
order_cfgs_ref-config_id = '10'.
order_cfgs_ref-root_id = '00000001'.
append order_cfgs_ref.
CALL FUNCTION 'ZBAPI_SALESORDER_CREATEFROMDT2'
EXPORTING
SALESDOCUMENTIN = salesdocument
order_header_in = order_header_in
ORDER_HEADER_INX = order_header_inx
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
salesdocument = salesdocument
TABLES
return = return
order_items_in = order_item_in
ORDER_ITEMS_INX =
order_partners = order_partners
order_schedules_in = order_schedules_in
ORDER_SCHEDULES_INX =
order_conditions_in = order_conditions_in
ORDER_CONDITIONS_INX =
ORDER_CFGS_REF = order_cfgs_ref
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_CCARD =
order_text = order_text
ORDER_KEYS =
extensionin = extensionin
partneraddresses = partneraddresses
PERFORM report TABLES return.
*DATA: salesdocument LIKE bapivbeln-vbeln.
*DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
*refresh return.
*CALL FUNCTION 'BAPI_SALESDOCUMENT_COPY'
EXPORTING
salesdocument = '0400000191'
documenttype = 'ZA04'
TESTRUN = ' '
IMPORTING
SALESDOCUMENT_EX = salesdocument
TABLES
RETURN = return
*PERFORM report TABLES return.
*write: / salesdocument.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
*& Form report
text
-->P_MENSAJE text
FORM report TABLES p_mensaje STRUCTURE bapiret2.
DATA: vl_mensaje TYPE string.
LOOP AT return.
CLEAR vl_mensaje.
MESSAGE ID return-id
TYPE return-type
NUMBER return-number
INTO vl_mensaje
WITH return-message_v1
return-message_v2
return-message_v3
return-message_v4.
WRITE: / vl_mensaje.
ENDLOOP.
ENDFORM. " reportHi Manuel,
There are some function modules which is there to copy the order details. I am not sure about the function module name. But you can search in SE37. But bapi for creating the sales order does not have the functionality of copying the data from one document to another document.
You can try using this function module.
BAPI_SALESDOCUMENT_COPY
Data will be copied based on the copy control routines that is set between the two document types.
Thanks,
Arun -
Bapi for creating Sales Area data on Relationship
Hi,
I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
Example - I would like to create relationship type CRMH03.
Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
Does anybody know such a bapi?
Regards
Radekhi
try using these
BAPI_BUPA_CREATE_FROM_DATA
BAPI_BUPA_RELATIONSHIP_CREATE
best regards
ashish -
BAPI for creating scheduling agreement with reference to Contract agreement
Hi All ,
Can anyone please suggest if there is any BAPI for creating scheduling agreement with reference to the contract agreement number.
Thanks for your help.
VadivukkarasiHi,
Check this BAPI <b>BAPI_AGREEMENT_MAINTAIN.</b>
check these
BAPI_CUSTSCHEDULAGREE_CONFDELV Customer Sched. Agreement: Confirmation of Delivery; Document Flow Upd
BAPI_SALES_DEL_SCHEDULE_CREATE BAPI for creation of releases in scheduling agreements
Regards -
FM/BAPI to create Transfer Order(TO) with reference to TR or Material Doc.
Hi,
I am in need of Function module or BAPI to Create Transfer Order(TO) with reference to Transfer Requirement(TR) or Material Document.Hi,
Please try any of the below,
1.Look at function group L03B (Transfer order processing)
2.Use L_TO_CREATE_TR
3.BAPI_GOODSMVT_CREATE set:
GOODSMVT_ITEM-STGE_TYPE_PC = destination storage type or GOODSMVT_ITEM-STGE_TYPE_ST = destination storage type
4.Look at fm L_TB_VERAENDERN. This isn't RFC, but you might copy fm into ZL_TB_VERAENDERN and set RFC on.
Hope this helps.
Thanks,
Harini -
FM or BAPI for Create/cancel stock transfer order invoice
FM or BAPI for Create/cancel stock transfer order invoice
Thanks and Regards,
Srinivas PHi,
use BAPI_PO_CREATE, po_header-doc_type = 'UB'
Thanks,
Reward If Helpful. -
BAPI to create SNP planned order based on start date
Hi,
I am looking for a BAPI to create SNP planned order based on the order start date. There is BAPI BAPI_MOSRVAPS_CREATESNPORDER which can be used to create SNP planned order based on the end date but not based on the start date.
Also would be great if some one can share how do they create SNP Planned orders using BAPI BAPI_MOSRVAPS_CREATESNPORDER in case if GR processing time is defined in the product master and workdays for GR to be respected according to the calendar.
Regards,
VenkatHello Mr.Venkat,
Hope you recognize me.
Please check out the BAdi below.
BAdi - APO_BAPI_BUS10503 (this is the BAdi for ManufactOrderAPS BAPI which contains the SNPorder BAPI)
Method - CHANGE_SAVEMULTIPLE2
In this method parameter IT_ORDER_HEAD contains Order start date input option.
For GR time please check this (not sure if it will help).
Same BAdi/ same method
Parameter IV_PLANNING_MODE_USAGE contains field PLANNING_MODE.
Value 1 for PLANNING_MODE corresponds to "Observance of parameters from the product master".
This may make it respect the GR time in product master
Good luck with the above
Regards,
Ashok -
4.6C method for creating a Maintenance Order
Hi,
We have a requirement to create and update maintenance orders on a 4.6C system. The scenario is that we need to programmatically mimic what users can do in IW31 and IW32. The BAPI_ALM_ORDER_MAINTAIN function module is not available on this system (SAP delivered that BAPI in a later version.) We've looked at IBIP but it does not offer structures for order data. Using "call transaction" and BDC data structures directly seems to be an option but difficult to implement and prone to error.
What other options exist for creating/updating maintenance orders on a 4.6C system? Thanks in advance for any information or examples you can provide.
-JasonOk. I've actually figured out how this works.
I'll post what I've found out in case it helps anyone else.
The parameters seem to be: ( with my example data in brackets)
I_AUFNR order number
I_VAPLZ work center ( MAINT.)
I_VAWRK plant ( 0001)
I_PLNTY Task list type = ( A )
I_PLNNR Task list group ( 55)
I_PLNAL Task list group counter ( 1)
The problem I have is that this bapi is not released, and it is not remote enabled.
Are there any released BAPIs that would do the same thing?
Or would I need to write my own remote-enabled BAPI that calls this one, and then try to call my BAPI ( using .NET Connector ) ?
Thanks,
Derek -
Need a Bapi to Create a purchase order
Hi experts,
Is there a Bapi, to create a 'Purchase Order' from an existing Purchasing document no. marked for deletion.
Thanks in advance ,
Hrashit RungtaHi Experts,
I have used BAPI_PO_CREATE1 to create a purchase order .
I have successfully created a purchase order when i use this BAPI directly through SE37 ,
supplying the required inputs.
But now i am calling this BAPI inside a program,
Supplying the same inputs as earlier.
Buit i am not able to generate a PO.
I am getting the messages in the Return Table as :|Please enter items first
No instance of object type PurchaseOrder has been created. External referen
Document contains no items
Can someone suggest What input am i missing ?
Thanks in advance,
Harshit Rungta -
We are trying to develop an interface with a third party software and we need to upload recipe from there.
So i am need a BAPI to create recipe and maintain aswell.
also I am trying to use BAPI BAPI_MATERIAL_SAVEDATA to create material and BAPI
BAPI_BOM_UPLOAD_SAVE to create BOM .
I manually entered data into fields but not able to create material and BOm.
Please give me the procedure on how to use them and BAPI for creating Recipe.
Help is appriciated.Hi Mirza
You can use BAPI_MATERIAL_BOM_GROUP_CREATE to create a BOM,
Regards
UK
Maybe you are looking for
-
I recently purchased a 2007 Mac Pro for a song, swapped the CPU's for octo chipsets and proceeded to wait for new Hdd's in the mail. I was told the Hard drives in my old G5 would not be bootable unless they're in Guid format. Disc Utility confirmed
-
Hi. I have inherited a client's mission critical database + SSRS project that I am attempting to migrate from 32-bit SQL Server Express 2005 + SSRS on a Windows Server 2003 to 64-bit SQL Server Express 2008 R2 + SSRS on a Server 2012 R2 Essentials. W
-
Slow starup of Java application - best practices for fine tuning JVM?
We are having problems with a java application, which takes a long time to startup. In order to understand our question we better start with some background info. You will find the question(s) after that. Background: The setup is as follows: In a cli
-
Does CS5 require a discrete graphics card?
My computer has a Core 2 Duo and 3GB of memory, but only onboard graphics. The CS5 Design Premium system requirements include "qualified hardware-accelerated OpenGL graphics card, 16-bit colour, and 256MB VRAM". Does this mean I cannot run CS5? Or do
-
Nesting of Rules for Auto Group (Role) Membership Rules in OIM 11gR2
Does anyone know how to nest rules for auto group (role) membership in OIM 11gR2. The General rules in Design Console are no longer used for auto group membership and the rules that can be configured in the Role properties cannot be nested as far as