Reg: Tracking the sales order no in the Purchase requsition or in the PO

Hi All,
i need some information on the sales order related issue. actually i have create the prchase requsition against the sales order and also i have convert this PR to PO order. but i want to see my sales order number in the PR or PO. how can i see that sales order number in the PR or PO. please give me the valid information on this issue.
Thanks.
BR
siva

Hi,
Try to create third party sale order .
Use materil with item catgory as BANS , while creating SO system creates PR automatically and same PR can be converted to PO.
All SO info can be seen in PRand PO
pl reply
guru

Similar Messages

  • To save the sales order number in custom table while creation of the order.

    Hi Experts,
    Does there exist any exit to save the sales order number in a custom table while the sales order is created in VA01. The requirement is to capture the sales order number in a Z table when a field (payment terms ) is changed during the sales order creation.
    Regards,
    Sunitha

    Hi Sunita,
    You can store your data in the User exit MV45AFZZ in the form 'userexit_save_document'.
    You can navigate to MV45AFZZ from SE38 wherein an access key needs to be generated for that program, if you know to implement enhancement points then you can create an implicit enhancement point in this form without generating an access Key.
    Regards,
    Ravi Kiran

  • Create and Pack Handling Units in the Sales Order Using HU_CREATE_ONE_HU

    Hello Experts,
    I am trying to use HU_CREATE_ONE_HU function module to create a handling unit and pack it with specific line items in the sales order program in the background.  I am able to create the handling unit and pack it but it does not get associated to the sales order / line item.  If you look at the sale order's packing proposal, it does not show it packed.  If I look at VEKP / VEPO, I see where it was created but there is no value for vbeln or the posnr I proposed.  Below is the code, I am using.  Does anyone know what I am doing wrong or is there another function module I can use?
    LOOP AT t_vbap.
        CLEAR:   is_header_proposal, it_items, es_header, et_items, et_messages, t_vbap2.
        REFRESH: et_items, et_messages, t_vbap2.
        is_header_proposal-exidv          = '$1'.
        is_header_proposal-exida          = 'A'.
        is_header_proposal-vhilm          = 'UNIBOX'.
        is_header_proposal-hu_status_init = 'A'.     "planned
        is_header_proposal-status         = '0001'.  "planned
        "get the components that make up this subassembly including the parent.
        SELECT * FROM vbap
          INTO TABLE t_vbap2
         WHERE vbeln = t_vbap-vbeln
           AND posnr = t_vbap-posnr. "parent
        SELECT * FROM vbap
          APPENDING TABLE t_vbap2
         WHERE vbeln = t_vbap-vbeln
           AND uepos = t_vbap-posnr.  "children
        "now load the items to be packaged in the proposal
        LOOP AT t_vbap2.
          CLEAR: it_item.
          it_item-velin    = '1'. "material item
          it_item-belnr    = t_vbap2-vbeln.
          it_item-posnr    = t_vbap2-posnr.
          it_item-quantity = t_vbap2-kwmeng.
          it_item-meins    = t_vbap2-meins.
          it_item-matnr    = t_vbap2-matnr.
          it_item-werks    = t_vbap2-werks.
          it_item-lgort    = t_vbap2-lgort.
          APPEND it_item TO it_items.
        ENDLOOP.
        CALL FUNCTION 'HU_INITIALIZE_PACKING'.
        CALL FUNCTION 'HU_CREATE_ONE_HU'
          EXPORTING
            if_create_hu       = 'X'
            is_header_proposal = is_header_proposal
            it_items           = it_items
          IMPORTING
            es_header          = es_header
            et_items           = et_items
            et_messages        = et_messages
          EXCEPTIONS
            input_missing      = 1    " Data that is Necessary for Creation is Missing
            not_possible       = 2    " HU Creation not Possible
            header_error       = 3    " HU Header Data Contains Incorrect Data
            item_error         = 4    " Items Cannot be Created
            serial_nr_error    = 5    " Serial Number Error
            fatal_error        = 6    " Internal Error
            OTHERS             = 7.
        CALL FUNCTION 'HU_POST'
          EXPORTING
            if_synchron = space
            if_commit   = 'X'.
      ENDLOOP.
    Thanks for the help.
    Laura

    The abap statement does not make sense.
    xlips_high_posnr = ( lips-posnr / tvlk-incpo ) * tvlk-incpo
    posnr & incpo are both type numc length 6.
    Here is my recommendation to catch the divide by zero error.
      data: l_oref    type REF to cx_root.
      data: l_text    type string.
      TRY.
            clear l_text.
             xlips_high_posnr  = lips-posnr / tvlk-incpo.
            CATCH cx_sy_zerodivide INTO v_oref.
              l_text = l_oref->get_text( ).
            CLEANUP.
    *      Put your code to do further processing if it is divide by zero
      ENDTRY.

  • Re: Printing Cancelled line items in the sales order on the packing slip

    Hi gurus,
    Currently we have a unique requirement in our company. Our wholesale customers send the Purchase order to us via EDI. Now saw they have requested an order containing 10 materials out of which we can fulfill only 8. the other 2 due to some reasons cannot be fulfilled.
    So the business wants to keep the other 2 line items to be entered in the sales order with a cancelled status.
    Now correct me if I am wrong, only the confirmed line items will be copied from a sales order to a delivery document. So thats the reason why these cancelled line items cannot be printed on the packing slip.
    However somehow the business wants the packing slip tp have the 2 line items printed on it with the reason of not being delivered. this is to facilitate the customer to know why those items couln't be fulfilled by our company. Now we cannot use a manual work-around of letting the customer know about the impossibility of not fulfilling the other 2 items as there are a lot of orders that come thru EDI per day.
    Can anyone suggest a solution to this requirement asap.
    Thanks in advance
    Vinit

    Hi Vinit,
    This requirement makes a lot of sense, that is to be able to inform your customer that some item(s) of the sales order could not be delivered, not even partially.
    A possible solution would be to allow for zero quantity in the delivery item (check customizing and mark "zero quantity allowed" in the item category).
    Then in the packing split, it would be easy to print the delivered quantity (0) and the sales order quantity (whatever it was), because you have the "null" item available in the delivery.
    Personally I am not found of having have delivery items with zero quantity, but they are useful in that case, and they can also be useful to automatically "close" the sales order item (instead of having to do it manually if the goods can't be served).
    Note: Usually in Consumer Goods, if you can't serve part of a sales order to a customer, you have to close it, because the Retailer's next Sales Order will include the remaining quantity.
    Hope it helps.
    Best Regards,
    Franck Lumpe
    Freelance SAP ERP Consultant

  • Error while creating the sales order using Proxy

    Hi Folks,
    I am trying to create a Sales Order using Proxy via BAPI "BAPI_SALESORDER_CREATEFROMDAT2" :
    and i got this type of standard error message
    <Message>FB call: insufficient parameters</Message>
    few days back only i used the same bapi for creating the Sales Order and did it successfully...using the same parameters
    I don't have any clue about this type error .
    Kindly guide .
    Regards,

    Hi Nikhil,
    How refreshing the cache and restart the server will help ?
    basically i am testing the scenario at R/3 end only by generating XML template in SPROXY.
    My ECC 6.0 is on sp 12....I am not sure is it configuration related error or a bug ? as i have used the same code in ECC 6.0 with sp 09.
    regards,

  • Final price of the Sales Order calculation on payment term

    Hi,
    Out Business requirement  as follows.
    1) one ZNAP pricing condition will be maintained by the monthly wise by business for pricing. this is a  statistical condition only checking at sales order level only. this condition will check with Final price of the Sales order.
    Now the requirement is
    1) based on payment term of the Sales Order. plus if its a credit payment if the its CASH payment. these deduction should be added to ZNAP condition, and same will calculate with Final price, while creating Sales order.
    For Example:
    ZANP condition maintained  1000 USD.
    while creating the SO:
    If the payment term of the customer: PT30, ( it means payment with be in 30 days of the bill creation date)
    system should do the below calculations
    1) Scenario
    Sales Order: Final price :                                       1500  USD( maintained by the Sales User while creating the SO)
    ZNAP price                      :                                    1000  USD
    according payment term 30 days                            20 USD ( as per table maintenance for calculation of the payment term.)
    Calcuation:                                                          1000+20= 1020 (approximate need to add as interest rate)
    Then final it should display final price 1500-1020= 480 USD.
    2) Scenario:
    If the payment term Cash:
    ZNAP                                                            : 1000 - 20= 980 ( approximately and deduct, from the condition due to cash payment its like discount)
    calucalte"                                                       1500-980= 520 difference
    this purely internal pricing calculation with final price...
    pl let me know how to get this in the pricing. and payment could be 30 days, 45 days 60 days etc.
    Thanks.

    Hi M Sham,
    I believe your requirement can not be met with Standard pricing and you will have to create Routines for getting this result.
    From scenario I believe you will be doing below points:
    You should Create Z-Table with Payment Term and respective rates against those payment Term.
    You should create a statistical condition type(Ex. ZNP1) and create Calculation Type routine with Logic to get KOMK-ZTERM field and derive value from Z-Table and update XKWERT field.
    Calculate addition of ZNAP and ZNP1 (With +ve or -ve Signs)
    And then again make deduction of derived value from Finale Value.
    Do let me know if I have misunderstood your question.
    Regards,
    MJ.

  • Stop creation of reservations against the sales order

    Hi
    I have a situation here can any body help me out?
    For a single material there are two types of sales orders like export and local sales.
    Now as the sales orders are large enough and can deliver over the six month or more.
    This sales order creates large quantity reservation and due to this other sales order not confirmed although stock is available.
    Now we want to stop creation of reservations against the sales order as well as availability check in sales order (availably check may be able to by pass using item category).
    But we still want reservation against other production orders.(where the material as BOM component)

    Hi,
    check below options
    1. You can maintain Reason for rejection
    2.. you can maintain BN in sales order schedule line category
    Let's wait other experts to answer this
    Regards,
    Sankaran

  • How PIR's are consumed by the customer requirements even though the sales orders are blocked?

    Dear experts,
    I am using strategy 40 for material A with Backward/Forward consumption of 60 days backward and 60 days forward.
    My PIR is as follows :-
    Material Month #1 Month #2 Month #3 Month #4 Month #5 ....
    material A 100 100 100 100 100 ....
    I created a Sales Order for material A with the quantity of 600 in Day 4 of Month #1.
    After MRP run, planned order conversion and production order has been completed.
    Month #1, Month #2 and Month #3 PIR's are consumed even though we made the setting in Such a way that the sales orders should just display but not planned  . and the sales orders are into the blocked requirements list in the result of /n/afs/MD02.
    1)but why it is consuming the PIRS?
    2)is there any affect of backward and forward consumption on this?
    Thanks in advance.
    Regards
    Bhargavi Desai

    Hi,
    Normally it is recommended that, not to delete PIR's one by one or remove quantity from previous periods/ requirement manually. If the PIR's of previous month is not consumed it is normally a feedback to sales people to do a analysis at their end.
    In PP point of view, normally a re-organization run is carried out by MD74, MD75 or MD76. The same can be done by  scheduling batch job to run on month ends basis w.r.t. period you specify.
    Regards,
    Narresh

  • How to find the text id for the text in the sales order

    Hi all,
    How to find the text id for the item-text in the sales order?
    There are different Text available in  the sales order under item like Warehouse instruction, CSR instruction...
    I want to know the corresponding Text id for the text ELECTRONIC ORDER COMMENT.
    Table TTXID contains the validation of the Text id.
    Please help me in knowing the way to identify the text-id from the text list..
    Thanks foryour help
    Suresh Kumar

    U can fetch the texts for the items using
    Read_text.
    Example:
        g_f_tdname = xvttp-vbeln.
        g_f_obj = p_obj.
        g_f_langu = 'DE'.
        REFRESH g_t_lines.
        CLEAR g_t_lines.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_lines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    The Required fields are,
    Text-id ,language,name,object.
    Let me know if you further require help.
    Regards

  • How to know the sales order closed using right click menu -Close ???

    I have an sales order with ten item, I have copied the same to delivery and before adding the Delivery I have deleted some items. After adding the Delivery, I manually closed the sales order by using the "right click menu close".
    The Open Quantity of those lines are already closed while i Close it manually.
    Now i need  a report regarding the sales orders which i  have closed manually. Any Options??

    Check the below result
    DocNum     DocDate     CardCode     CardName     Row#     ItemCode     Dscription     Price     Quantity     LineTotal
    2     2012-02-04 00:00:00.000     ED-C-102     AI HUDHA BOOK STALL     2     1010          150.000000     10.000000     1500.000000
    3     2012-02-04 00:00:00.000     ED-C-103     AL AMEEN ENGLISH SCHOOL-MANKADA     2     1011     ZINC ROD HIGH GRADE PURE ZINC 140 X 9 MM     59.790000     10.000000     597.900000
    this is the result i get while i execute your query
    but look at the db result
    DocEntry     LineNum     TargetType     TrgetEntry     LineStatus     ItemCode     Quantity     OpenQty
    1     0     15     2     C     1010     10.000000     0.000000
    2     0     15     3     C     1010     10.000000     0.000000
    2     1     -1     NULL     C     1010     10.000000     0.000000
    3     0     15     4     C     1010     1.000000     0.000000
    3     1     -1     NULL     C     1011     10.000000     0.000000
    3     2     15     4     C     1012     15.000000     0.000000
    3     3     15     4     C     1013     20.000000     0.000000
    4     0     15     5     O     1010     10.000000     5.000000
    See the last line data...it have open quantity of 5 and it also have the target type 15, If I close the sales order with docentry 4 manually using right click, the open quantity will be Zero..
    I need that last line result also as my output..
    Hope you understand my problem.
    Thank You

  • Purchase requisition got deleted in the sales order..

    Hi All,
    I got stuck up with an issue in AFS.
    The issue is that after creating a P.O with the help of a TAB order,the user has assigned a rejection reason at the item level in the sales order.
    Then again the rejection reason was removed and now the purchase requisition is not appearing in the sales order.
    Now how can i get back the purchase requisition??Is there any option to retreve the purchase requisition with the help of a correction report??
    Can any one please help me out..
    Thanks.

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • How to check the sales orders that have been created with an Rebate Agreeme

    Dear Experts,
    Do you know how to check the sales orders that have been created with an Rebate Agreements?
    Thanks!!

    Hi Hoo Laa,
    I have one way but little lengthy.
    Rebate condition always appears in the billing document.
    So 1st you extract the sales order list from Table VBAK.
    once you have the sales order list then you can put your order list in Table VBFA --> Extract the billing document list.
    Now put that list in the table VBRK.
    In VBRK you will get the "Doc. condition" --> put that doc condition in table KONV with your rebate condition type.
    It will show the result.
    Later, through VLOOKUP you can identify in which order you have given rebate to your customer.
    Already said, Little lengthy
    Regards,
    MT

  • Stocks should be bolcked in the sales order

    Dear SD gurus,
    I have a requirement , for certian customers i need to block stocks in sales order level without batch , i am going to create  delivery  and PGI in future date , how can i block the stock with out creating delivery.
    Rgds
    Madhu

    hi
    Create a delivery against that order and save without doing PGI, thus the stock would be reserved for that order and cannot be diverted unless the delivery is deleted
    In OVZ9, select the box for "Include sales reqmts" but by doing this, irrespective of customer class (like top customers who give business in large volume), as and when order is generated, stock will be allocated to that order
    Go to MB1B, input Movement Type 412E, Plant, Storage location and execute. There give the sale order against which you would like to reserve the stock and proceed.
    Here the first option you dont want to do it
    Third option is already suggested
    Try the second one
    Regards
    Raja

  • How to populate the billing plan tab for the sales order inbound

    Hi Team,
    I am new to IDOCS, I have a requirement like IDOC extension of the sales order inbound.
    Can anyone explain in brief how can i add billing plan tab in  the IDOC extension for the Sales order inbound.
    Thanks, 
    Barathi

    U need to use the table vbfa or fololow thw link
    [http://www.erpgenie.com/sap-functional/sd/read-sales-document-flow-using-a-function-module]

  • Error when i reject the sales order

    Hi:
    I´m in Upgrade to 6.0, and when I reject a sales order in SD, the system show me this message "Subsequent function 'Production order/plan order from sales document' not possible: Item 000010 was rejected Message no. V1579".
    In the implementation the products was delivered for the company, but today they work with service orders but the integration SD with PP is until running but they user the order for documentation and to saw the costs.
    I wrote a SAP message and read this notes 964813 and Note 1028464 but both are already aplicated. SAP responce to me but I don´t konw to much of the SD and PP integration. Please, can any one help me?
    SAP responce:
    Info to SAP    
    12.03.2008 - 12:49:44 CET - Reply by SAP     Attachments
    SAP Note 97272  - Rejections of individual order items possible
    SAP Note 356895  - Rejection of third-party items and individual PO items
    SAP Note 549972  - FAQ: rejecting third-party or individual PO items
    SAP Note 1054121  - The SAP Ecosystem in a Nutshell
    Dear Gina,
    I was analyzing the problme in your system.
    If I understand you rigt you are expecting that the link between the
    sales order and the production order is not deleted when you set the
    reason for rejection. When you set the reason for rejection again then anew production order is created.
    The standard behaviour is that the link between sales order and
    production/assembly/service order is deleted. As field vbep-aufnr is
    deleted also no later restructuring is possible.
    In the header table of the order aufk-kdauf there is still the relation
    to the sales order number but there is a deletion flag set for it and
    the link can't be reactivated.
    I am sorry that I could not give you a more positive reply.

    Hi:
    In the table AFKO I don´t have any order document. I searched this, before reject the sales order, and then, when I try to reject the sales order, and in both cases I don´t have the relation about the order and the sales order in this table.
    I looked at the table AUFK and in the field KDAUF I saw the sales order and the relation with the PM order, and this is my problem, I don´t no why the message error tell me something  about PP order,  I didn´t understand.
    I saw the customizing and I Know they works with the "Strategy group" in materials and it was customizing in "Demand Management" and the order was customizing in "Plant Maintenance and Customer Service", (PM) customizing the Order Types. I think when finally they decided that the material was only for services, they changed something, and the customizing is not complete in PP.
    In the old version 4.6C the rejection of sales order works, but in this version 6.0 and with MRP implementacion I don´t know in what step this was change. If you Know where can i find if something of MRP affect the previous integration please let me know, because I think is a PP customizing problem.
    Thanks
    Best Regards
    Gina

  • Subcontract PO from the sales order..!

    Hi SD Gurus,
    Can i create subcontract purhcase req from the sales order.
    My requirement is when i create the sales order my item/sheduline category should create a subcontract po to my sister concern company.
    Is't possible ? Kinldy help to advice & let me know what are the config setup i need to setup.
    Thanks.

    Hello,
    The PO number field you see in VA03 is usually an input which need not be an actual PO number existing in the current system.So you can have a PO number like 'test123'.The system will accept it and store it as is in the table VBAK.
    However if you create a sales order with reference to a PO number then the PO number obviously does exist in the system and can be accessed via transaction ME23n and can also be found in tables EKKO,EKPO.
    So to sum up the number you enter in the PO field may or may not be an actual PO number existing in the SAP system.it can be used as a reference for later checks a customer may do when he calls to find out the status of his sales order.
    Hope this explanation helps you.
    Regards,
    Neil.

Maybe you are looking for

  • Why i cant sign in my AppStore

    Hi all want to ask,why my iPad 2 cant sign in to AppStore from WiFi?before 20 july can but risau cannot,please repot and suara this prob

  • SetAutoCreateColumnsFromModel doesn't seem to work...

    I've been coding a game server browser in Java, and have gotten pretty far with it. However, I'm running into a slight problem. I want to be able to align certain cells to my own specifications, as well as size columns myself. In order to accomplish

  • FM or BAPI to update the database table /TDAG/CPT_DEC_IN

    Hi All,   I need to update a few entries in the database table /TDAG/CPT_DEC_IN (CP: Declarable Substances, Independent attributes). This table contains data for the EHS ( Environment, Health and Safety) Module in SAP.   Instead of doing a direct dat

  • Drag & Relate between two BW reports

    Hello together, I want to implement the Drag&Relate functionality between two BW Reports via EP 6.0. I have configured the connection between Portal and BW with the report RSPOR_SETUP. The SingleSignOn and the import of business object is working wel

  • Invalid Materialized view

    Hi ALL: some of MVs become invalid (yes, we did app upgrade over the weekend). I looked on every object reference in the MV, all permissions - can't find anything. I dropped MVs and created them no errors. Status changed to VALID. I decided to re-COM