Creation of new PO shipment line programmatically

Hi All,
Please let me know whether there is any way to create a new shipment line in an existing PO line programmatically. We are basically looking for some standard Api or any other solution through which we can accomplish it.
Thanks.

Try this http://irep11i10.oracle.com . Hope this helps.

Similar Messages

  • API to create a new shipment line

    Hi,
    Is there any public/private API to create a new shipment line on a purchase order line?
    Thanks & Regards,
    Nagesh.

    Check "Oracle Integration Repository" Site
    http://irep.oracle.com/index.html

  • Custom AR Invoice Creation from OM Shipment Lines

    Hi
    I have a senario like this ,like AR Invoice , i need to create a custom AR Invoice number from OM Shipment lines using Grouping Rules.is any idea or sample code for this means helpful.
    regards
    Venkat

    From my point of view you have only 1 chance:
    - Find a criteria of the imported invoices, which is avaible in the Tax Rules as condition (e.g. specific transaction types or you used a specific tax code by the import)
    - Put the tax line manual in the Autoinvoice from the frond end system
    - Defined a rule for each tax in the EBS Tax manager: Principell logic: If Tax_Code/transaction type = ABC then tax non-applicable
    Which this rule, no standard tax code is selected by EBS Tax, the tax is disable for the transaction and only the imported tax lines are booked.
    By my last customer I had the same problem and we have investigate many time.
    We have used for the imported invoices special tax codes and these tax code used for the disable of the tax in the tax rules.

  • Creation of new Sales order

    Hi,
           While creating a new Sales Order(tcode VA01) depending on the material, Item category will be generated and depending on the Item category purchase requisition screen(ME51n) will be automatically opened and PR will be created.
    Now to automate this process, BAPI_SALESORDER_CREATEFROMDAT1 will be called to create the sales order. But the requirement is that we need to pass Requisitioner and Vendor to the BAPI for creation of PR.
    But in this BAPI there is no option/field to pass Requisitioner and Vendor. So is there any other BAPI/Function Module where a new Sales order is created and also we can pass Requisitioner and Vendor required for creation of new PR.

    REPORT  ZSALESORDER.
    Parameters
    Sales document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text FOR FIELD p_auart.
    PARAMETERS: p_auart TYPE auart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Sales organization
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text1 FOR FIELD p_vkorg.
    PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Distribution channel
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text2 FOR FIELD p_vtweg.
    PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Division.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text3 FOR FIELD p_spart.
    PARAMETERS: p_spart TYPE spart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    Sold-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text4 FOR FIELD p_sold.
    PARAMETERS: p_sold  TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Ship-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text5 FOR FIELD p_ship.
    PARAMETERS: p_ship  TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    Material
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text6 FOR FIELD p_matnr.
    PARAMETERS: p_matnr TYPE matnr   OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Quantity.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text7 FOR FIELD p_menge.
    PARAMETERS: p_menge TYPE kwmeng  OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Plant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text9 FOR FIELD p_plant.
    PARAMETERS: p_plant TYPE werks_d .
    SELECTION-SCREEN END OF LINE.
    Complete Deliver
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text10 FOR FIELD p_autlf.
    PARAMETERS: p_autlf TYPE autlf DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead1.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapisditem  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                             WITH HEADER LINE.
    DATA: lt_schedules_ink    TYPE STANDARD TABLE OF bapisdhead1
                             WITH HEADER LINE.
    Initialization.
    INITIALIZATION.
    v_text   = 'Order type'.
    v_text1  = 'Sales Org'.
    v_text2  = 'Distribution channel'.
    v_text3  = 'Division'.
    v_text4  = 'Sold-to'.
    v_text5  = 'Ship-to'.
    v_text6  = 'Material'.
    v_text7  = 'Quantity'.
    v_text9  = 'Plant'.
    v_text10 = 'Complete delivery'.
    Start-of-selection.
    START-OF-SELECTION.
    Header data
    Sales document type
      header-doc_type = p_auart.
      headerx-doc_type = 'X'.
    Sales organization
      header-sales_org = p_vkorg.
      headerx-sales_org = 'X'.
    Distribution channel
      header-distr_chan  = p_vtweg.
      headerx-distr_chan = 'X'.
    Division
      header-division = p_spart.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    *Complete delivery
        header-COMPL_DLV = p_autlf.
        header-COMPL_DLV = 'X'.
    Partner data
    Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = p_sold.
      APPEND partner.
    Ship to
      partner-partn_role = 'WE'.
      partner-partn_numb = p_ship.
      APPEND partner.
    ITEM DATA
      itemx-updateflag = 'I'.
    Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    Material
      item-material = p_matnr.
      itemx-material = 'X'.
    Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
    item category
      itemx-ITEM_CATEG = 'X'.
      APPEND item.
      APPEND itemx.
      ITEM DATA
      itemx-updateflag = 'I'.
    Line item number.
      item-itm_number = '000020'.
      itemx-itm_number = 'X'.
    Material
      item-material = p_matnr.
      itemx-material = 'X'.
    Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
      APPEND item.
      APPEND itemx.
      Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
      Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
      Fill schedule lines
      lt_schedules_in-itm_number = '000020'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
      Fill schedule line flags
      lt_schedules_inx-itm_number  = '000020'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
    Call the BAPI to create the sales order.
      CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
           EXPORTING
                sales_header_in     = header
                sales_header_inx    = headerx
           IMPORTING
                salesdocument_ex    = v_vbeln
           TABLES
                return              = return
                sales_items_in      = item
                sales_items_inx     = itemx
                sales_schedules_in  = lt_schedules_in
                sales_schedules_inx = lt_schedules_inx
                sales_partners      = partner.
    Check the return table.
      LOOP AT return WHERE type = 'E' OR type = 'A'.
        EXIT.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE: / 'Error in creating document'.
      ELSE.
    Commit the work.
        COMMIT WORK AND WAIT.
        WRITE: / 'Document ', v_vbeln, ' created'.
      ENDIF.

  • CUP - Issue regarding creation of New SAP ID in CUP.

    System :  SAP GRC 5.3 SP 12..
    We have requirement where in we need to design a workflow for creation of New SAP ID.
    The Naming convention followed for SAP ID is FIRST LETTER of FIRST NAME and LAST NAME with maximum 8 characters.
    For Eg
    JOHN SMITH would have SAP ID as JSMITH
    JERRY SMITH would  have SAP ID as  JSMITH01
    The requirement here is when user fill the REQUEST FORM for NEW User ID there is field where in the requestor need to put the desired SAP ID,
    Can a validation be set OR Logic be written so that user can put the SAP ID as per the naming convention..?
    Also , any other solution as to how the situtation can be handled in CUP...
    Regards.
    Ajit

    Hi Ajit,
    Yes, you can maintain the user ID in the Active Directory. User id will be now auto populated in the request form, from Active Directory when  we data Source is LDAP -Actice directory. So when user login to end user form to create a request, It's all information( user details + manager details ) will fetched from Active Directory.
    It is not possible to change userid in later stage of approval in the request.
    You can have security as final stage and guide them to create user manually as per naming convention.
    Make auto provisioning OFF in CUP
    Kind Regards,
    Srinivasan

  • Creation of new domains in weblogic

    Hi All,
    I need to create two new domain in weblogic.
    It should be start & stop from the admin console.
    How to do that. What is node manager?
    Just assigning the managed server with machine will do the start and stop from admin console. ?

    creation of new domain in weblogic

  • How to Import an Order via Order Import with multiple shipment lines?

    Good Morning,
    I have a question concerning Oracle's order import functionality. We are importing orders from an outside system and need to consolidate orders by customer id. So if the same customer places 2 orders for different items on the outside system, they should interface to Oracle as a single order to that customer with a shipment line for each ordered item (ex 1.1, 2.1..).
    I know this can be done, but do not know how to implement the solution.
    Can someone please help?
    Thank you!!
    Edited by: user11984882 on Jun 22, 2011 7:03 AM

    Hi,
    I guess that this zip-file contains a transport. This transportfiles have to be copied in the /usr/trans/data und /usr/trans/cofiles and imported by the transaction STMS.
    Thomas Jung wrote how to do this in this: How to import examples from book "Advanced BSP Programming"
    Perhaps your basis administrator can help you to do this?
    Regards,
    Stefan

  • Blocking RdA creation from Sales Order Schedule Line

    Hi Gurus,
    please do you know if there is a way to block the RdA creation from Sales Order schedule line, for TAS item category? I tried with Header Delivery block without quantity confirmation but even if quantity on schedule lines are not confirmed, RdA is created anyway.
    Thank you very much
    Kind Regards
    Andrea

    thank you

  • EA-FIN New Depreciation - How to restrict creation of 'new intervals' ?

    Hi Everyone,
    We have turned on the EA-FIN Business Function Extension and are wondering if there is a way to restrict the creation of new intervals using company codes.  We have three companies in our SAP system and want only one of them to be able to create new intervals.  Is there a standard way to do this or only be development?  All ideas are welcome!
    So far we tried to search if there is an Authority Object, which could be used to apply this restriction with no luck.  Could it be done using Validations?
    Thanks in advance,
    Erne

    why would you want this? intervals are just a technical item...  so long as the numbers are correct and the calculation is logical to follow, why would you care?
    you can probably achieve this by:
    1 - immediately blocking every asset record so that no other postings can be made
    2 - not allowing any time-dependent changes to occur. this might be possible via authorization or you could remove the time intervals button via a simple screen modification
    but I don't understand why this is wanted.

  • Strategy 82----How to stop creation of New Production Order

    Hi All,
    My client is facing problem with the material which having Strategy 82- Assembly to Order,  As when they make a sales order  , w,.r.t that a Production order is made automatically by system,. User complete the production process and deliver this material , now when ever the Sales user change "Credit Block: in that particular sales order again a New production order created to this sales order, How to control his creation of new Production order? As if new production Order create it brakes the link between Sales order and the previous Production order which is already in delivered status.
    Your Prompt response will be appreciated.

    HI ,
    I am closing this thread , as I know how to got a control on trhis, As of behaviour, startegy 82 says every time u change in sales order it will create a new Production order during saving, if the previous order is not been in ONLY REL status.   So the only option to control this is in S.O ,change the Item category to "CN" i.e NO MRP when if required there has been any modification to S .O.  In std SAP system item catageory has to be congiured , in SPRO SALES we can do the necessary settings.

  • How to approve creation of new identities

    Hi,
    I have created an approval process for the creation of new identities based on the how-to-guide for role approvals.
    My idea is to determine all approvers in a script which gets the entry reference as parameter from ToIdentityStore pass.
    However, for some reason, the entry reference is empty.
    Any ideas what am I doing wrong?
    Here is the script:
    function nsn_getNSNApproversFromCompanyAddress(Par){
    var entryReference = Par;
    uErrMsg(1, "entry reference: " + entryReference);
    var idStore = uGetIDStore();
    var companyAddress = uIS_GetValue(entryReference, idStore, "MXREF_MX_COMPANY_ADDRESS");
    uErrMsg(1, "company address: " + companyAddress);
    var nsnApprovers = uIS_nGetValues(companyAddress, "MX_APPROVERS");
    if (nsnApprovers.indexOf("!ERROR")>= 0)
         uErrMsg(1, "ERROR: " + nsnApprovers);
    return nsnApprovers;
    uErrMsg(1, "entry reference: " + entryReference) does not print out any value for entry reference
    And here is the destination tab content of the ToIdentityStorePass:
    MSKEYVALUE     %MSKEYVALUE%
    MX_APPROVERS     $FUNCTION.nsn_getNSNApproversFromCompanyAddress(%MX_ENTRY_REFERENCE%)$$
    Thanks in advance for your help,
    Elmar

    Hm, from what the error output message tells me it looks like MX_ENTRY_REFERENCE does not contain ANY value.
    uErrMsg(1, "entry reference: " + entryReference); generates this output: 'entry reference: '
    May this be due to the fact that this is a creation process and the identity to be created is not yet stored anywhere? If so, what would be the correct way to implement an approval process for identity creation?
    In the destination tab, MX_PENDING_VALUE is defined, as in the how-to-guide manager approval example.
    Thanks & Br,
    Elmar

  • Automatic creation of PO from shipment cost document

    Dear Experts
    PLease let me know the settings with description to understand for the creation of PO from shipment cost document. It seems inegration with FI is also needed. Request your explanation with the settings in SPRO
    Thanks
    Ganesh

    For automatic Generation of Purchase Order
    SPRO > Logistics Execution > Transport > Shipment Costs > Shipment Cost Document > Shipment Cost Types and Item Categories > Define item Categories (T_56)
       In the Generate PO, Enter one of A, B, C.
           Do not generate purchase order
    A    Generate purchase order for validity period of 1 day
    B    Generate purchase order for validity period of 1 week
    C    Generate purchase order for validity period of 1 month
    For assigning posting in G/L Accounts
    SPRO > Logistics Execution > Transport > Shipment Costs > Shipment Cost Document > Shipment Cost Types and Item Categories > Assign shipment cost types and item categories
    Based on the item category created before, assign the valuation class.
    Assign the Valuation class to the Shipment header or leg (whichever is planned for ) and the item category you created before.
    Assigning the Shipment cost type to the shipment type
    SPRO > Logistics Execution > Transport > Shipment Costs > Shipment Cost Document > Shipment Cost Relevance and Default for Shipment Cost Type (T_57)
    Assign the Shipment cost type to the Shipment type and mark it as relevant for shipment cost.
    Checking the assignment of G/L Accounts to the Valuation Class
    SPRO > Logistics Execution > Transport > Shipment Costs > Settlement > Automatic G/L Account Determination
    Select the Account Assignment - GBB - Enter the Chart of Accounts - Check if VBR was assigned the G/L accounts for the Valuation class you specified before.

  • Creation of new internal delivery channel using AQ

    Hi,
    I wanted to route one of Trading partner data to a different queue.(no want to use existing queues - IP_IN /IP_OUT queue).
    This needs to create a new delivery channel using AQ in B2B.
    I have gone thru the steps & entered all entries, but I am not able to find any queues created in B2B schema.
    Do I need to create a queue using PL/SL in B2B to make it available as internal delivery channel or this setup itself will create a queue in B2B?
    PFA the entirs:
    for transport parameters
    - transport server (B2B server IP)
    - Protocol as AQ
    -URI - b2b.<uri_name> (name of Queue, wanted to create)
    - Hostname
    - Port
    -SID - b2b
    -consumer - b2buser
    - receiptient - null
    -Polling interval - 6000
    Transport server details:
    Host name - (IP)
    IP - Host IP
    username -
    Pswd - for B2B schema
    Any pointers will be a great help.
    Regards,
    MS

    As mentioned by TH in the above post, first thing is to create the data type that is used for messages - IP_MESSAGE_TYPE. This data type will already be present in the B2B database and could be reused.
    For a new data type you could do the following.
    ==============================================================
    Create a new data type using the following
    ==============================================================
    create type IP_MSG_TYPE as OBJECT (
         MSG_ID VARCHAR2(128),
         INREPLYTO_MSG_ID VARCHAR2(128),
         FROM_PARTY VARCHAR2(512),
         TO_PARTY VARCHAR2(512),
         ACTION_NAME VARCHAR2(512),
         DOCTYPE_NAME VARCHAR2(512),
         DOCTYPE_REVISION VARCHAR2(512),
         MSG_TYPE INT,
         PAYLOAD CLOB,
         ATTACHMENT BLOB
    Once you have created a new Data type ( or are reusing the existing data type), you need to create Queue Table that will hold the Outbound and Inbound message queues. The existing Queue table is "IP_QTAB" which can again be reused.
    For new Queue table you could do the following
    ==============================================================
    Create a new Queue Table using the following
    ==============================================================
    execute dbms_aqadm.create_queue_table (     queue_table => 'MY_QTAB',
                             queue_payload_type => 'IP_MSG_TYPE',
                             multiple_consumers => FALSE);
    If you need to reuse the datatype change the queue_payload_type to 'IP_MESSAGE_TYPE'.
    Once we have the Queue Table that will hold the queues, we need to add and start the queues that are to be used for the inbound and outbound messages.
    ==============================================================
    Create the new Queues into the Queue Table using the following
    ==============================================================
    execute dbms_aqadm.create_queue (queue_name => 'B2B.MY_OUT_QUEUE', queue_table => 'B2B.MY_QTAB');
    execute dbms_aqadm.create_queue (queue_name => 'B2B.MY_IN_QUEUE', queue_table => 'B2B.MY_QTAB');
    execute dbms_aqadm.start_queue(queue_name => 'B2B.MY_OUT_QUEUE', dequeue => TRUE, enqueue => TRUE);
    execute dbms_aqadm.start_queue(queue_name => 'B2B.MY_IN_QUEUE', dequeue => TRUE, enqueue => TRUE);
    If you are reusing the queue table IP_QTAB for creation of new queues, then reference that for the queue_table in above commands.
    You need to reference the queue_name eg. B2B.My_OUT_QUEUE in the B2B UI screen.
    Hope this helps.
    AKT

  • Creation of new condition type: MWST

    Hi, Everyone.
    I would like to ask for some help regarding this issue: Creation of new condition type: MWST with the following details:
    1. For the country French Polynesia, Create a new VAT condition of 10%.
    2. Create a new one called : Class : Z u2013 Designation : France : TOM corresponding to 10 % of VAT to be invoiced
    and then associate this new VAT code u201CZu201D to the applicant Nr 221860
    If you could provide me a step by step process on how to resolve this, it would be very much appreciated.  Thank you so much.

    Hello
    What type of condition type you want.
    It is always advisable to create a new conditon type copying a standard condition type.
    For gross price condition types select PB00/PBXX
    For freight charges, Copy FRA1/FRB1
    Regards

  • PMS: Creation of new tabs for reference elements of ENHANCE BADis

    Dear Experts,
    I am on a PMS EHP5 implementation (for all practical purposes, it's an EHP4 implementation as we are not using the pre-defined template) and have the below problem.
    I have the ENHANCE_FIX and ENHANCE_FREE BADIs included at the VA level (as the requirement is to create immediate child objects for the template through these BADIs). I have a reference element (VB) defined for these BADIs.
    Example template (L1 = Level 1, L2 = Level 2, L3 = Level 3):
    L1 - VA
    ---- L2 - VB1
    --------- L3 VC1
    --------- L3 VC2
    ---- L2 - VB2
    ---- L2 - VB3
    In the above example template, the ENHANCE* BADIs will add VBs (example: VB4 and VB5) at the L2 level (appearing in the document below VB2 and VB3).
    The requirement is to have separate tabs for each VB at the L2 level (so I will have one tab for VA and 5 tabs for VB from the above example).
    I am unable to specify creation of new tabs for the reference element VB when I carry out my tabs and process configuration.
    I have not been able to find any information on this aspect either. Would appreciate any help that can come my way.
    Thanks.

    Thanks Maurice.
    I still feel that the product should leave that option to the designer of the solution. There are a lot of solutions which can get chaotic. If designed appropriately, I guess this chaos can be controlled.
    At the very least, I am sure that I have not left anything out in configuration. I will raise this with SAP over a CSS.
    Thank you for your input.

Maybe you are looking for