Creation of service order with address data.

Hello community,
I have the following requirement: create maintenance orders with order address data, the creation of these orders will be triggered by an interface with a legacy system.
For order creation I intend to use BAPI_ALM_ORDER_MAINTAIN but this function does not provide the possibility to enter address information.
I would not like to have to create a partner and assign it to the order as this address will be used only once.
Does anyone have suggestions how to do it ?.
Thanks.
Roberto.

Roberto,
Try this:
*& Report  ZPJA_ADDR_TX
report  zpja_addr_tx.
data: lt_adrc  type  standard table of adrc with header line.
data: lt_adrc1 type  standard table of addr1_data with header line.
* get address from first object
call function 'ADDR_SELECT_ADRC_SINGLE'
  exporting
    addrnumber        = '0000033071'
  tables
    et_adrc           = lt_adrc
  exceptions
    address_not_exist = 1
    parameter_error   = 2
    internal_error    = 3
    others            = 4.
loop at lt_adrc.
  move-corresponding lt_adrc to lt_adrc1.
  lt_adrc1-name1 = sy-timlo.   " write current time for testing
  append lt_adrc1.
endloop.
* update second address
call function 'ADDR_UPDATE'
  exporting
    address_data        = lt_adrc1
    address_number      = '0000033205'
    date_from           = '00010101'
    language            = sy-langu
    check_empty_address = ' '
    check_address       = ' '
  exceptions
    address_not_exist   = 1
    parameter_error     = 2
    version_not_exist   = 3
    internal_error      = 4
    others              = 5.
call function 'ADDR_MEMORY_SAVE'.

Similar Messages

  • Creation of sales order with reference to inquiry no.

    Hi gurus!
    Im having trouble in creation of sales order with reference to inquiry no. The scenario is like this one. In va11(creation of inquiry no.), in the field of <b>SERVICE LEVEL</b>, i indicated a value. after the creation of inquiry no, i want to create a sales order with reference to inquiry no. But the problem is, the <b>SERVICE LEVEL</b> field does not have any value. What is the main problem to this scenario? is it the VARIANT CONFIG or the program itself? please help its urgent
    Regards,
    Mackoy

    Dear Machoy,
    In IMG under
    Sales and Distribution -> Sales -> Sales Documents -> Maintain Copy Control for Sales Documents -> Copying Control: Sales Document to Sales Document
    or Transaction VTAA
    http://help.sap.com/erp2005_ehp_02/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    If you create a sales document with reference to a preceding document, the system copies nearly all the data from the preceding document. The data in the preceding document originally comes from the customer and material master records. Because the data is copied from the preceding documents into the sales document, any changes that have been made to the master data records since the preceding document was created are not included in the sales document. If, when you create with reference, you add another item to the document that was not in the preceding document, the system determines the data for it from the master records, such as the material master or info record.
    You have created an inquiry and a quotation with reference to this inquiry. Before you created the quotation, you changed some data in the material and customer master records.
    You have changed the material description in the material master record. This description is stored in the sales document at item level.
    You have changed the terms of payment in the customer master record from ZB01 to ZB03. These are stored in the sales document at header level.
    When you created the inquiry, the system copies the original material description to the item. If you enter another item in the quotation for the same material, the system displays the new material description for the new item.
    However, the system continues to propose the original term of payment, that is, ZB01, for all items including the new one. This is because it is copied from the header of the preceding document into the header of the quotation, and the change in the customer master record has no affect on the quotation.
    Regards,
    Naveen.

  • HOW TO CONTROL ON CREATION OF SALES ORDER WITH REFERENCE TO EARLIER SO?

    Dear All,
    I want to contol on creation of Sales order with reference to earlier SO?  While creation of sales order our enduser are creating sales order with reference to earlier month SO which I want to restrict. Recently I made changes in sales order like payment terms is grayed, system will atomatically pick pay terms from customer master.Now I am getting correct data also but enduser is using old SO no while creating new SO and old payment data is reflecting in fbl5n.
    I want to restrict enduser while creating new SO with ref. to old SO. Only for returns they should be able to use Billing refrence. Pl. suggest how to control the with reference to ealier SO.
    Nikhil

    Nikhil Deshpande,
          If you dont want allow create a sales order in referent to other one, just delete the copy control between these sales order type, so when the user tries to create a SO in reference to other one a message is displayed that is not possible.
    Thanks,
    Mariano.

  • Load a sales order with delivery date in the past

    Hi,
    We want to load in the system a sales order with delivery date in the past, and maintain the schedule delivery date in the past. To do that, in the customizing Sales And Distribution / Basic Functions / Delivery Scheduling and Transportation Scheduling / Define Scheduling By Sales Document Type, I selected the flag Blackwards. But the problem is that the rest of the dates in the scredule line: goods issue date, loading date, material avail.date and transportation Plan Date, are in blank and you cannot enter any data because the system deletes it.
    How can I have these dates informed with dates in the past?
    Thanks in advance,

    You can control this using the "Message Control" in the SAP IMG.
    Supplier Relationship Management>SRM Server>Cross-Application Basic Settings>Message Control>Influence Message Control
    Using this you convert Error to Warning or even swith off this message.
    Please refer this thread for complete steps:
    Re: How to change an error message to a warning message in SRM
    Note: you need to suppress the messages relevant to your case here.
    Regards
    Kathirvel

  • Creation of production order with reference to sales order

    dear all guru's,
                       i m having a requirement of creating production order with ref to sales order but without changing my old strategy of make to stock.
    regards
    ujwal

    Hi,
    For the purpose of creation of production order with reference to sales order while maintaing MTS strategy you need to maintain Make to stock strategy 40 in strategy group in MRP-3 View of Material Master.
    This is the only Make-to-Stock Strategy which enables you create Production Order against both Sales order as well as Demand / PIR.
    So if your strategy group is already 40 then you need not change it.
    However if you are using any other Make-to - Stock strategy like 10, 11 etc. then it is not possible to create Production Order against Sales Order since they dont consider Sales Order in planning.So you need to change them and set strategy group as 40.
    Hope this helps.
    Revert if you have any doubt.
    Regards,
    Tejas
    Edited by: Tejas  Pujara on Sep 27, 2008 8:50 AM

  • Service order with spare item -Purchase requistin is not getting created

    Hi
    I am working on service order management with external resource procurrment scenario.I have created the service order with spare part item.Expected behaviour is Purchase requistion should created automatically &  have mantained all settings properly.
    I am facing the following issues for the service order.
    No instance of object type Purchase Requisition has been created. External reference: (Notification E BAPI 001)
    Enter G/L Account Number (Notification E ME 083).
    Please suggest me which settings i need to maintained to resolve the above issues.
    Thanks for your help in advance.
    Thanks & Regards,
    Silpa.T

    Hi,
    You need to maintain the logistic seetings Transactions>>Settings for Service>>Integration>> Logistic Integration>>Define Logistic Scenario for Service Material.
    There you need to maintain a Purchase Requistion document type for item category. Hope this will resolve the error.
    Thanks
    Monika

  • Creation of Service order

    Hi  All,
    Please guide me in creating Service order with Tcode:IW52. In this how do we select SB.Please guide me step by step.if any of you are aware of the terms service order and compliance notification please post your email id.
    Thanks,
    Sandhya

    Hi,
    Chk out this link..
    http://help.sap.com/saphelp_crm40/helpdata/en/b3/5b899377a0b24f9fcb6d5b31c65da6/frameset.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/81/78963ec975667fe10000000a114084/content.htm
    Hope this helps u,
    Regards,
    Arunsri

  • Service order with TAW or TAX

    hi friend !!!!
    we can use TAX item catogory also other than TAW
    but i observed one thing when i create service order with both material (service and trading ) and create their delivery and invoice in document flow of order system can't show the PGI MATERIAL DOCUMENT for trading good and show only service confirmation document
    my question is if trading good is normal item and inventory is updated
    then system should show that material document
    please explain
    thanks
    b

    the material that i had send is an non valuated material.
    regards
    SAGAR

  • Order with delivery date always on perticular day

    Hi,
    My clients requirement is
    orders should always be ordered with delivery date Tuesdays for one sales organisation say X.
    planning calender wont work here because in order confirmed delivery date calculate with many criteria taking into
    consideration.
    then How to customize user's this perticular requirement?
    regards,
    Anup

    Hi anup12         
    Go to T.Code VOV8 & select your Sales  document type.In Requested delivery date mention the Lead time in days as 1 & save it
    --Raise sales order in VA01 & enter the material & check the requested delivery date.
    Let me know if your problem is solved
    Regards
    Pradeep

  • How to fetch service order with partucular system status and user status

    Hello All,
    How to fetch service orders with specific system status and user status.
    thanks

    I want tables or views from where I can fetch service orders. I have to design ALV report based on this.
    I want to fetch released service orders with status INIT and RENT.
    Here, SYSTEM Status = Released and
             USER Status     = INIT
                                        RENT
    So is there any function module available for the same.....

  • Service Order with Notification

    Hi
    Iam creating service order with notification  in PM Module using BAPI
    BAPI_ALM_ORDER_MAINTAIN .
    But only order has created with this. I gave notification no in header table. Then also it is not creating. Any one can update on this?
    Thanks & Regards
    GVRao

    As stated above, its done through the Transfer of Requirements settings in the SD IMG
    As an example lets look at the standard repair order - the links are:
    Sales document item category IRRP
    - Item Cat IRRP is linked to Requirements Type SERP (SD IMG->Determination Of Requirement Types Using Transaction)
    -- Requirements Type SERP is linked to Requirements Class 204 (SD IMG->Define Requirements Types)
    --- Requirements Class 204 is lined to order type SM03 (SD IMG->Define Requirements Classes)
    PeteA

  • How to read service order change document data

    Hi Experts,plz help me,my requirement is to read the service order change document data,for that one i need to read from cdhdr and cdpos tables,so what i need to do.in input parameters for cdhdr table in place of ibjectclass and objectid what i need to pass.plz help me.

    Same for CDHDR and CDPOS.
    OBJECTCLAS = 'ORDER'
    OBJECTID = combination of client(AUFK-MANDT) + Order category(AUFK-AUTYP) + Order number (AUFK-AUFNR)
    for example
    OBJECTCLAS = 'ORDER'
    OBJECTID = '10030004001108788'
    Chaiphon

  • Function module for Create service order with reference to sales doc (RAS )

    Hi All,
    I have to create a service order (type SM03) with reference to sales document (doc type RAS, in other way it is called as repair order).
    I have used function module 'ALM_ME_ORDER_CREATE' && 'CO_ZV_ORDER_POST' to create service order and its working fine but problem is that i am not able to create linking between repair order and service order.
    Can anyone suggest me function module, BAPI to create service order with reference as sales document (RAS) so that all related details of sales document will automatically reflect to service order..
    Sumit

    Try this function module BAPI_ORDER_MAINTAIN. Just search with BAPI_ORDER* in SE37 you will get some more functions.
    Regards
    Kathirvel

  • Created Service Order with out contract

    Hi
    I have created Service Order  without contract. Now I have been asked to change it to a Service Order with contract, . Is it possible for me to change the existing SO - or do I have to create a new one??? If possible please explain the steps.
    Regards,
    Rahul

    Hi,
    You have two options :
    1- You can delete your SO and create a service rquisition and reference a contract OR..... with you PR ceate a Service Order.
    2 You can delete your SO and create a SO and reference a contract.
    I guess you want all conditions from your contract to pull through into you SO.
    Thanks

  • Creation of sales order with reference - Zfields in Add data B are not cop

    Hi all,
              Please help me in the issue . I am creating sales order with reference to returns order . All item fields are getting copied but the Zfields which are added in addtional data b of sales order are not getting copied. Can anyone please let me know the procedure to copy the custom fields.
    Thanks in advance,

    The setting of field when copy by reference is best done in the copy rules.
    If you go to transaction VTAA, and look to the order type you are copying to, you will find a data transfer rule number. 
    Then go to transaction VOFM, menu option DATA TRANSFER -> ORDERS and find the matching data transfer rule number.
    Select and press the "Source text"  button, here you will find the data from the copied order in structure CVBAK, and you can apply the code to set the VBAK structure fields appropriately.
    This should then populate the data on the copied order.

Maybe you are looking for