Dump - Creating PR from PM orders

Dear All,
While creating PM order in IW31, system is creating PRs in back for each line item at the time of release. We have some validation on PR part with the enhancement M06B0005. I kept one error message for one scenario and its working fine from PR. But when the same condition met while creating PM order and inturn creating PR, its throwing same error message. We have expected that and we need it as well. But after getting error message, if I press enter its going to short dump. If I use warning message or information message, its just showing message and in back ground it releases PM order. How can we avoid shot dump and allow the system to change the specific values based on condition, so that system will produce PR wihtout any error.
Kindly provide some solution. I tried to with Roll back also but could not succeed.
Regards,
CSY.

Hi,
I am creating PR from PM order and kept some conditions in that exit and its working fine. My problem here is that I am validating some of the conditions in PR side and throwing error messages for them. Thats also working fine. But while creating PR in background from PM order, it will check those conditions in PR as well and throws error. So whenever I get any error in PR while creating from PM order, it shows that error message in IW31 and if I press enter, then its going to dump. But I want to be there in IW31 so that user can change the PM order according and then process release. Hope its clear now.
So I want to show those error messages in PM order log and I have to stop PR as well as PM order release. Once we change the PM order and if we dont get that error then only It has to save PR and PM order.
Regards,
CSY.

Similar Messages

  • Budget error while creating delivery from sales order

    hi Gurus,
    System is throwing error PB603 "Item 004 WBS element ABC-XXX budget exceeded" while creating delivery from sales order.
    I am picking material from unrestricted plant stock (not in project stock).
    I am also confused as sales order has 3 line items & error shows Item 004 !

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • Create Delivery from Sales Order Document

    Hello all,
    I have a business requirement to create deliveries from sales orders in the most effcient way possible.  Our current program uses BDC and calls transaction VL01N, however this has been found to dramatically increase the run-time of this program.  I have been searching for a BAPI to essentially do the same thing. 
      I came across one BAPI, BAPI_DELIVERYPROCESSING_EXEC, but have been getting inconsistent results.  It will create deliveries for some line items and not others with little rhyme or reason.  The return table is not being populated unless it is a high level error, such as the quantity passed being 0.
    To the BAPI, I am passing: Sales Doc Number, Line Item, Quantity, and Document Category.  This is done through an internal table.  I also pass internal tables to receive the return messages and the created documents. 
    Has anyone seen the same thing with this BAPI? Is there a better BAPI to use for such a purpose?
    many thanks for any help,
    brian

    Hi!
    For delivery creation you can use FM SHP_VL10_DELIVERY_CREATE:
        DATA:
          if_ledat TYPE lfdat_a,
          if_nur_vorgabe_pos TYPE xfeld,
          it_key_to_enque_t TYPE shp_vl10_package_t,
          it_key_to_enque LIKE LINE OF it_key_to_enque_t,
          it_komdlgn_t TYPE shp_komdlgn_t,
          cx_sd_order TYPE shp_vl10_sd_order,
          ct_vbsk_all_t TYPE shp_vbsk_t,
          ct_vbls_t TYPE shp_vbls_t,
          ct_key_late TYPE shp_vl10_package_t,
          ct_vorgabe_daten_t TYPE shp_vorgabe_daten_t,
          ct_vorgabe_daten LIKE LINE OF ct_vorgabe_daten_t,
          wa_dlvsrc LIKE LINE OF m_it_dlvsrc,
          msg TYPE string.
        LOOP AT m_it_dlvsrc
          INTO wa_dlvsrc.
          CLEAR it_key_to_enque.
          it_key_to_enque-panum = '1'.
          it_key_to_enque-vbobj = 'A'.
          it_key_to_enque-vbtyp = 'C'.
          it_key_to_enque-vbeln = wa_dlvsrc-vbeln.
          it_key_to_enque-posnr = wa_dlvsrc-posnr.
          it_key_to_enque-id = '1'.
          it_key_to_enque-tabix = '1'.
          it_key_to_enque-vstel = wa_dlvsrc-vstel.
          APPEND it_key_to_enque TO it_key_to_enque_t.
          CLEAR ct_vorgabe_daten.
          ct_vorgabe_daten-vgbel = it_key_to_enque-vbeln.
          ct_vorgabe_daten-vgpos = it_key_to_enque-posnr.
          ct_vorgabe_daten-lfimg = wa_dlvsrc-lfimg.
          ct_vorgabe_daten-akmng = 'B'.
          ct_vorgabe_daten-postab_tabix = it_key_to_enque-tabix.
          ct_vorgabe_daten-panum = it_key_to_enque-panum.
          ct_vorgabe_daten-id = it_key_to_enque-id.
          APPEND ct_vorgabe_daten TO ct_vorgabe_daten_t.
        ENDLOOP.
        if_ledat = sy-datum.
        if_nur_vorgabe_pos = 'X'.
        CALL FUNCTION 'SHP_VL10_DELIVERY_CREATE'
             EXPORTING
                  if_ledat           = if_ledat
                  if_nur_vorgabe_pos = if_nur_vorgabe_pos
                  it_key_to_enque    = it_key_to_enque_t
                  it_komdlgn         = it_komdlgn_t
             CHANGING
                  cx_sd_order        = cx_sd_order
                  ct_vbsk_all        = ct_vbsk_all_t
                  ct_vbls            = ct_vbls_t
                  ct_key_late        = ct_key_late
                  ct_vorgabe_daten   = ct_vorgabe_daten_t.
        COMMIT WORK AND WAIT.
    All created deliveries numbers:
    SELECT vbeln
          INTO TABLE m_it_vbeln
          FROM vbss
          FOR ALL ENTRIES IN ct_vbsk_all_t
          WHERE sammg = ct_vbsk_all_t-sammg.
    All errors during processing:
          SELECT msgid msgno msgv1 msgv2 msgv3 msgv4
            INTO TABLE it_msg
            FROM vbfs
          FOR ALL ENTRIES IN ct_vbsk_all_t
          WHERE sammg = ct_vbsk_all_t-sammg.
    Regards,
    Maxim.

  • Creating asset from purchase orders

    Dear Gurus.
    Please let me know how to create asset from purchase orders.
    Thanks
    Rgds,
    Saurabh

    hi,
    First, determine the information that is necessary for creating the purchase order:
    Check in the Purchasing component whether a purchase requisition exists for the asset (Logistics - Materials management - Purchasing).
    Determine the vendor from whom you are ordering the asset. If needed, enter the purchasing data for the vendor.
    Determine the asset number of the asset that is being ordered. If necessary, create a new asset.
    Create the purchase order. If there is a purchase requisition, use it as a reference (in Purchasing: Purchase order - Create).
    In the initial screen, when you specify the account assignment type A (for asset), this determines
    The account assignment to an asset
    How the goods receipt or the invoice receipt is to be handled (are asset values to be posted at the time of the goods receipt or at the time of the invoice receipt).
    Once you have entered the general purchasing data in the first screen (order date, material group, etc.), a dialog box appears. Enter the asset to which account assignment is to be made in this dialog box.
    If the asset master record for your purchase has not yet been created, you can create it directly from within the purchase order transaction.
    Display the order item and its current delivery status (in Purchasing: Purchase order - List display - By account assignment).
    Later, post the goods receipt or the invoice receipt. (The Customizing definition of the account assignment type determines when the asset values are posted - either at goods receipt or at invoice receipt.) See the corresponding documentation for the Materials Management (MM) component.
    regards,
    Siddharth.

  • Automatcally create Project from Sales Order

    We are on SAP R/3 4.7. We are currently using Project system for customer projects. We are manually linking the WBS element to the sales order item.
    We are considering to automatically creating project from sale order.
    Can someone offer any suggestions or recommendations?
    If you have already done in the past, did you encounter any issues or concerns that need to be considered?
    Thank You
    Sanjay

    Hi,
    As per standard configuration:
    1.) Maintain requirement class in OVZG as 80
    2) Maintain Requirement type in OVZH as KP and assign 80 there
    3) Strategy in SPRO->Project System->material->Strategy and maintain requirment class and requirement type and account assignment there.
    4).Then maintain strategy in strategy group...it would be same as 85.
    5). Then you can maintain item category from SD side and item category group from MM and assign these item categories to SD document type .
    6). Now create standard templates(Project and network activities and make assignment to standard project)
    7). Create configurable material(Variant configurator) in MM01 as KMAT and maintain item category group as same defined above and maintain strategy group in MRP tab same as defined above.
    8). Now assign these Variant configurator to standard network and projects in CN08.
    Look into these setting would definately help you.
    Regards
    Abhinay

  • To create project from service order

    Hi All
    Is it possible to create project (network Order ) from Service order ( SM01,SM02,SM03)??? if yes... How???
    Neil

    Are you referring to Assembl;;y processing ?... You can create service order from Sales Order, but you cannot create proejct from Service order automatically.
    With regards
    Nitin P.

  • BAPI for Create PO from Sales Order Data and POST GR from PO created

    Dear,
             Can u help me how to create BAPI for Purchase Order creation from sales order Data
              what the bapi to Post GR from the PO created.
    Regards,
    Manoj

    Hello Manoj what you have to do to create PO from PR is that
    1) Use   BAPISDORDER_GETDETAILEDLIST (pass sales order number in sales_document table) and then get PR (Purchase requisition number from this BAPI.
    2) Use  BAPI_REQUISITION_GETDETAIL to get PR items
    3) Use BAPI_PO_CREATE1 to craete PO from PR then.
    to create goods movement you can use
    BAPI_GOODSMVT_CREATE
    REWARDS IF USEFUL.

  • Is possible create PO from maintenance order?

    From IW31 I can create a PR, and then PO in reference to PR.
    Is possible create directly PO from maintenance order? how?
    thx for attention

    Hi Paolo,
    It is not possible to create a purchase order directly from a maintenance work order. The standard SAP process is as follows:
    Create a component for external procurement on the work order - this results in the creation of a purchase requisition. The purchase requisition is then processed by the purchasing officer - the source of supply is assigned and the purchase requisition is then converted into a purchase order. If the component referenced a material master, the material may be specified on a contract/source list. In this case, the vendor and the price can be automatically deteremined during PO creation. If the material isn't on contract however, the purchasing officer may need to manually assign the correct vendor details and the price.
    The assumption is that the maintenance personnel are not purchasing experts - they just place a request for the product, and manual intervention is required from the appropriate purchasing expert within the company before this request can be sent to an external vendor.
    Regards,
    Monika

  • Create delivery from Purchase order

    Hi all,
    I want to know the TCode to create a delivery from a Purchase Order
    Harini

    HI HARINI KESANI,
                                 IN ORDER TO CREATE DELIVERY FROM PO CAN DO THRU THE T.CODE
    VL10B( BATCHES). ENTER THE PURCHASE DOCUMENT IN THE PURCHASE ORDERS TAB PAGE, CLICK ON EXECUTE
    YOU WILL ENTER INTO ANOTHER SCREEN , SELECT THE LINE ITEM AND CLICK ON EXECUTE BACKGROUND.
    YOU WILL GET THE DELIVERY NO., GO TO VL02N AND DO THE POST GOODS ISSUE.
      YOUR CAN ALSO CHECK THE DELIVERY NO. IN THE P.O , PURCHASSE ORDER HISTORY TAB PAGE, THERE U CAN SEE THE STATUS OF THE GOODS ALSO , WHETHER MATERIAL DELIVERED ,ISSUED AND GR.
    REGARDS,
    RAM

  • BAPI to create Delivery from Sales Order posting EIKP data

    Hi All,
    I'm searching for BAPIs to create a Delivery from Sales Order which I can update/insert data into EIKP table because I am receiving data that it must be saved into ZOLLA and ZOLLB fields (Customs Office: Office of Exit/Entry and Destination for Foreign Trade).
    I tried with BAPI_OUTB_DELIVERY_SAVEREPLICA, BAPI_OUTB_DELIVERY_CREATE_SLS and BAPI_DELIVERYPROCESSING_EXEC but I didn't find structures with these fields.
    Please, I need some help to resolve this issue.
    Thanks in advance.

    Hello Manoj what you have to do to create PO from PR is that
    1) Use   BAPISDORDER_GETDETAILEDLIST (pass sales order number in sales_document table) and then get PR (Purchase requisition number from this BAPI.
    2) Use  BAPI_REQUISITION_GETDETAIL to get PR items
    3) Use BAPI_PO_CREATE1 to craete PO from PR then.
    to create goods movement you can use
    BAPI_GOODSMVT_CREATE
    REWARDS IF USEFUL.

  • Creating deliveries from purchase order -Plant to plant process

    Hi All,
    I am carying out delivery creation in P2P process from a purchase order . There are two bill to parties assigned in customer. When i create delivery for first bill to party , system creates only one delivery for all line items . But supposed i create delivery for second bill to partyy , the system creates diferent deliveries for each line item . It gives message as delivery split because the partners are different . Can anybody help me why this is hapening .
    Note : i have already maintained "order combination tick " in customer master and also in PO line item level .
    Thankls
    Rohit Chavan

    Just check in the Second Bill-to party the following points as per the Line Items:-
    1. Shipping point
    2. Route
    3. Ship-to Party
    4. Incoterms
    If the above mentioned are different,then delivery will be splitted into many Deliveries.
    Best regards,
    Ankur

  • Creating quotation from purchase order

    Can any one tell me how to create SD quotation from the purchase order using the IDOC?

    hi rashad
    The IDOC structure is available in the system, but you have to do the settings in WE20 and RFC connection settings and lot more. search in SCN for how to set up a idoc, you will get lot of wikis and discussions related to it.
    regards
    ashok

  • User exit while creating delivery from sales order

    Hi Guys ,
    Is there any user exit in sales order which triggers when we try to DELIVER(from the menu bar) .
    My requirement is to not include some line items(base on some condition) before they are included in the delivery .
    Thnx in advance .
    Anil

    Hi Naimesh ,
    Thnx for your reply.
    I'm not sure of the functionality in VOFM .Can u please tell me how can i acheive my current functionality as explained above in my question .
    I'll tell u my requirement .
    When creating delivery , I have to check for some condition and depending upon this condition , the line items must not be included in the delivery .
    I have acheived this by BADI  LE_SHLP_DELIVERY~SAVE_DOCUMENT_PREPARE.
    if suppose any line items gets deleted in the delivery(based upon my condition) , and then if I look at the status of the slaes order(VA03) , it shows partially confirmed at the header level and the item which is rejected(in delivery) shows OPEN .
    Can u tell me how to update the status of the sales order header and item level (if any item is deleted) during creation of delivery .
    Thnx .
    Anil

  • Can we create service po from sales order

    HI
    can we create sales order from service po. if yes then how can we do so.

    Hi,
    we can create po from sales order in cross docking functionality.
    The steps are
    Sales order > Purcahse requistion > Purchase order > Inbound delivery with reference to purchase order and PGR > Outbound delivery with refernce to sales order and PGI > Invoice and billing.
    Br,
    Tushar Patankar

  • Problems creating invoice from order (DI API and SBO)

    Hello all!
    I´m getting various tax problems using the following code to automatically create invoices from existing orders.
    For Each currentKey In arrABEntrys
      objInv = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
      objAB.GetByKey(currentKey)
      objInv.CardCode = objAB.CardCode
      With objInv.Lines
        .BaseType = SAPbobsCOM.BoObjectTypes.oOrders
        .BaseEntry = currentKey
        .BaseLine = 0
        For i = 1 To objAB.Lines.Count - 1
          objInv.Lines.Add()
          BaseType = SAPbobsCOM.BoObjectTypes.oOrders
          .BaseEntry = currentKey
          .BaseLine = i
        Next
      End With
    If objInv.Add() = 0 Then
    Else
    End if
    The result of objInv.add() was first "5002 - 'Tax Definition (1)' (a very informative message to me).
    Then I checked my admin tax settings and put a check on "EU".
    The next time the result was "10 - Customer´s tax ID not defined OINV.LicTradNum"
    Actually, I don´t want to pre-set any fields in the invoice, because the order looks complete to me.
    By the way: The error occurs in SBO, too.
    Thanks for help in advance!
    Best regards
    Marian

    Hi Marian,
    Your Error "10 - Customer´s tax ID not defined OINV.LicTradNum" is not working (through DI and in SBO)
    occurs because your "Federal Tax ID" is not set up against the Business Partner. (This is on the main page of the Business Master Data Screen).
    Set this up and it will work in SBO and the DI API!

Maybe you are looking for

  • Error - "All JCo return parameters are initial"

    Hi, I got this error on my production XI server for about two hours and then everything started to work again.  Does somebody have an idea of what could be the cause of this error?  (All JCo return parameters are initial) Rgds, Yves

  • Capitalization of DNS via Powershell? How to Change?

    Yes - I understand DNS is case insensitive, but when working with a windows/linux environment we have an issue when doing zone transfers in linux. host -l domain.com produces a variety of results that are have mixed capitalization. We're trying to de

  • Formula Variables in Query Designer

    Hello All- I'm using a formula variable in my report which is of type user exit.  In my FM, I am calculation some Sales Growth Analysis based on some rates from the TCURR table.  In short, I am calulating "FX Rate" for each currency (USD, EUR etc) I

  • Error in Compile of a Model in VC 7.0

    Hi When i compile a VC Dashboard it is sucessfully complied. When i deployed the model it is giving me an error Error in compiling Flex application (1). Consult log file for details. Source Files No Valid iviews Please advise how to proceed

  • When installing creative cloud on osx I keep getting prompted to download a new version

    when installing creative cloud on osx I keep getting prompted to download a new version which upon trying to install prompts me to download again.  I recently used migration utility to move everything to a new box.