First Line item not picked up in Automatically generated PR from Sales Ordr

Hi,
I am  creating Third party PO, concevrted from Qutation-SalesOrder -automatic PR to PO.
In the  Purchase Request which is automatically generated in background skips first line item of SO.
How to avoid this? This is happening to all PRs in Production server.
Please try to give solution,
Thanks & Regards
Ajay.

Hi,
Check the requirement type in sales order.
If sales order sepecific PR creatation means, Material Strategy group shoud be 26 in MAR view 3 in Material master.
check the Material master maintained in Plant..
Check the delvering Plant mention in sales view in material master.
Thanks,
Kumar Arcot

Similar Messages

  • During MIRO Condition line item not picking against Delivey Note

    Hi,
    We create a PO with Entry tax condition type. Problem is....
    Case 1: - When we are doing MIRO of this PO, Entry tax condition is showing in line item.
    Case 2: - When we are doing MIRO against Delivery Note of related PO, Entry tax condition is not showing in line item...Why???
    Note: - During testing we found 2 diff. thing for both case..
    1. In Case 1 during MIRO, Variance Type showing values (B & A)...
    ...........B for Material Line Item.
    ...........A for Condition Line Item.
    2. In Case 2 during MIRO, Variance Type showing value only B..
    Please guide..

    Hi
    Check this thread
    MIRO - Tax Code
    Thanks !
    E.Avudaiappan

  • Condition type not getting populated at first line item of Sales order

    Hi Experts,
    We are creating Sales order through IDOC(Inbound function: IDOC_INPUT_ORDERS) for Document type ZXX then condition type is geeting populated at both line item, i have tried creating the Sales order through IDOC for document type ZYY the condition type is not getting populated in first line item, but for secod line item condition is getting populated.
    we also checked pricing procedures related to this document types and we found these pricing types are mentioned in corresponding pricing procedures.
    Let us know  there are any other possible ways to find the same
    please help.
    Thanks!

    Hi Rajani,
    check the user exit in the FM..IDOC_INPUT_ORDERS
    check if any filters kept for condition type field..
    check the belwo user eixuts
    ORDCHG I VEDB0001 Sales Ord. Change
    ORDERS I VEDA0001 Sales Orders..
    Regards,
    Prabhudas

  • How to get First line item in Table control for BDC.

    Hi,
    I have a requirement while creating the return order from the reference Sales order for BOM.
    Once I compare the line items and delete the items not to be returned, I want to read the first line item which in fact is header, to make some changes.
    How to read  this as cursor points to the last line item.
    -B S B

    Hi Bsb,
    What is exactly unclear to you? =POPO will give a popup screen in which you can enter the order position number. This number will then be on the top of the table which means you can refer to it in BDC with "(01)".
    Regards,
    John.

  • Create sales order with ref to quotation - usage of line items not copied

    hi
    i have created a quotation for which the first line item(higher level item) is a configurable item for which the value of the field use (vbap-vkaus) is blank  and the line items the use field is given as  'HIDE DISCOUNT'.
    when i created a order with reference to the above quotation i am not getting the value "HIDE DISCOUNT"  populated for the line items for usage field ..
    can any one knows any user exit / data transfer routine please suggest me
    thanks in advance
    rajani yeluri

    hi
    i have created a quotation for which the first line item(higher level item) is a configurable item for which the value of the field use (vbap-vkaus) is blank  and the line items the use field is given as  'HIDE DISCOUNT'.
    when i created a order with reference to the above quotation i am not getting the value "HIDE DISCOUNT"  populated for the line items for usage field ..
    can any one knows any user exit / data transfer routine please suggest me
    thanks in advance
    rajani yeluri

  • TDS line item not generated during down payment.

    Hi,
    TDS line item not generated during down payment to vendors. Advanced tax codes have been properly assigned to vendors.
    Kindly help.
    Thanks in advance...
    Regards,
    Sriram.

    Hi Sriram,
    1.First tell me when you are doing the advance payment tds codes are giving popup or not?
    2.Did you check the setting in below path
    Assign with holding tax types to company codes:
    SPRO>FI>FI GLOBAL>WTX>EWTX>Company code>assign with holding tax to company code.
    Regards
    Surya

  • STPO 2nd line item not getting shipping tab

    Hi All,
    We have a issue with STP0, user created the STP0( different company code) with 3 line items of same materials.  The first line items shipping tab is appering but second & third line items are not getting the shipping tab in item detail
    Please help me to resolve the issue.
    Thanks and Regards
    Chandrashekar.R

    Hi,
    Thanks for your update,
    First line item and second line item materials are same.  i have checked the sales views for the supply plant.
    Regards
    Chandrashekar.R

  • Module pool- only first line item data saved, rest disappears??

    Hi Experts,
    I have one module pool that was developed by other developer. It has header details input fields and items details input by table control.
    Now below scenarios occur:
    1) When I enter only one line item, and save it, the data is saved properly
    2) when I enter more than one item data and save it, it only saves first line item data.
    3).When I press ENTER button after every new line item data, it saves all the data properly.
    I tried to debug the report but could not find the exact problem statement as the code is written very badly without any comments.
    I am pasting the flow logic code below for the screen.
    So please help me figure out the problem and solution for it.
    +++++++++++++++++++++++++++++++++++
    PROCESS BEFORE OUTPUT.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'IT_MSEG'
       MODULE it_mseg_change_tc_attr.
    *&SPWIZARD: MODULE IT_MSEG_CHANGE_COL_ATTR.
       LOOP AT   it_gp
            INTO wa_gp
            WITH CONTROL it_mseg
            CURSOR it_mseg-current_line.
         MODULE it_mseg_get_lines.
    *&SPWIZARD:   MODULE IT_MSEG_CHANGE_FIELD_ATTR
       ENDLOOP.
    * MODULE STATUS_9001.
       MODULE deactive_screen.
    PROCESS AFTER INPUT.
    *&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'IT_MSEG'
       LOOP AT it_gp.
         CHAIN.
           FIELD wa_gp-yposnr.
           FIELD wa_gp-matnr.
           FIELD wa_gp-maktx.
           FIELD wa_gp-meins MODULE check_uom ON INPUT..
    *      FIELD WA_GP-DOC_QTY.
    *      FIELD WA_GP-REC_QTY.
           FIELD wa_gp-gp_qty.
           FIELD wa_gp-chall_qty.
           FIELD wa_gp-netwr.
           FIELD wa_gp-remarks.
           FIELD wa_gp-exp_ret.
           MODULE it_mseg_modify ON CHAIN-REQUEST.
         ENDCHAIN.
         FIELD wa_gp-chk
           MODULE it_mseg_mark ON REQUEST.
       ENDLOOP.
       MODULE it_mseg_user_command.
    *&SPWIZARD: MODULE IT_MSEG_CHANGE_TC_ATTR.
    *&SPWIZARD: MODULE IT_MSEG_CHANGE_COL_ATTR.
       MODULE user_command_9001.
    +++++++++++++++++++++++++++++++++++
    Thanks,
    Vishal.

    Hi Aruna,
    Below is the code as you required.
    +++++++++++++++++++++++++++++
    MODULE user_command_9001 INPUT.
       ygp_header_mas-ret_type = v_gpt.
       CASE sy-ucomm.
         WHEN 'MBLNR'.
           PERFORM select_mblnr.
         WHEN 'DEL'.
           PERFORM select_delivery.
         WHEN 'INTI'.
           PERFORM grt_gi_details.
         WHEN 'GENT'.
           PERFORM get_ge_details.
         WHEN 'GP'.
           PERFORM get_returnable_gp.
         WHEN 'SAVE'.
           PERFORM gen_gp_number.
           PERFORM gen_data.
           PERFORM save_data.
         WHEN OTHERS.
           PERFORM get_ge_details_other.
           IF it_gp[] IS INITIAL.
             INSERT INITIAL LINE INTO it_gp INDEX 1.
           ENDIF.
       ENDCASE.
       IF v_entry = 07 .
         PERFORM serial_no1.
         PERFORM insert_row.
       ENDIF.
       IF sy-ucomm IS INITIAL.
         PERFORM calc_amt.
       ENDIF.
       CLEAR:sy-ucomm.
    ENDMODULE.                    "user_command_9001 INPUT
    +++++++++++++++++++++++++++++++
    MODULE it_mseg_user_command INPUT.
       ok_code = sy-ucomm.
       PERFORM user_ok_tc USING    'IT_MSEG'
                                   'IT_GP'
                                   'CHK'
                          CHANGING ok_code.
       sy-ucomm = ok_code.
    ENDMODULE.                    "IT_MSEG_USER_COMMAND INPUT
    ++++++++++++++++++++++++++++++++++
    MODULE it_mseg_modify INPUT.
       MODIFY it_gp
         FROM wa_gp
         INDEX it_mseg-current_line.
    ENDMODULE.                    "IT_MSEG_MODIFY INPUT    
    ====> Above module has some problem i think as while debugging it was not updating IT_GP as the current line number was not matching with IT_GP as it has only one line item and WA_GP was changing. Also WA_GP data was getting changed with LOOP with all line items data.
    ++++++++++++++++++++++++++++++++++++++++++++++
    MODULE it_mseg_mark INPUT.
       DATA: g_it_mseg_wa2 LIKE LINE OF it_gp.
       IF it_mseg-line_sel_mode = 1
       AND wa_gp-chk = 'X'.
         LOOP AT it_gp INTO g_it_mseg_wa2
           WHERE chk = 'X'.
           g_it_mseg_wa2-chk = ''.
           MODIFY it_gp
             FROM g_it_mseg_wa2
             TRANSPORTING chk.
         ENDLOOP.
       ENDIF.
       MODIFY it_gp
         FROM wa_gp
         INDEX it_mseg-current_line
         TRANSPORTING chk.
    ENDMODULE.                    "IT_MSEG_MARK INPUT
    +++++++++++++++++++++++++++++++++++++++++
    If I press ENTER after entering each line item, all records come in IT_GP but if not then only first line item comes. Also if I dont press ENTER after entering the first line item and and add one item (total 2) and then press ENTER then sometimes both the lines disappear.
    Thanks,
    Vishal

  • Discount for the first line item

    Hi Folks,
    As i have a requirement from my client to give the discuont for the first line item from two .Pls help me in finding the sol for this following requirement
    My client has two materials Material X and Material y .Client wants to  give 5% discuount on Material X when the the customer buys Material Y also along with material x .So the end customer will recieve the discount of 5% on Material X only when he order material Y along with X.
    Pls contribute your valuable tips in finding the sol for this .

    Hi Avinash,
    As you know already this is not standard functionality and is difficult to implement in SAP ERP.
    IMHO this kind of Business Rules should be managed in a separate CRM, which does not have to be SAP CRM.
    It could be an customer CRM application developed in .Net (Visual Studio) or Java technology, much easier to maintain that in ABAP and that could be used "on the road" by pre-sellers.
    The application would generate the manual discounts when needed and then create the Sales Order in SAP ERP when syncronizing using the standard Sales Order BAPI.
    I am sure that is not the answer you were waiting for ....
    Best Regards,
    Franck

  • Miro line item not generated

    Dear All,
    I have facing one issue at the time posting in MIRO.
    I post one of migo doc in date 03/01/2010 , the entry is:( with same material )
    Post key   description  amt                               curr.( USD)
    89              Stk.RM -IMP                                     32100.00
    96              PL.VND.RM.IMP GR/IR                     32100.00
    40              Purchase RM-IMP                            32100.00
    50              Purchase offset.                             32100.00
    And Miro Posting on date 23/03/2010
    Post key   description  amt                               curr.( USD)
    31           xyz Vendor                                    32100.00
    86           PL.VND.RM.IMP GR/IR                    32100.oo
    89           Stk.RM -IMP                                    -
    40           Purchase RM-IMP                          -
    50           Purchase offset.                           -
    But when I post for another po in migo on date 03/01/2010
    Post key   description  amt                               curr.( USD)
    89              Stk.RM -IMP                                     76800.00
    96              PL.VND.RM.IMP GR/IR                     76800.00
    40              Purchase RM-IMP                            76800.00
    50              Purchase offset.                             76800.00
    and miro posting on date 19/02/2010
    Post key   description  amt                               curr.( USD)
    32            yz Vendor                                       76800.00
    86           PL.VND.RM.IMP GR/IR                      76800.00
    89           Stk.RM -IMP                                      Line item not generated
    40           Purchase RM-IMP                             Line item not generated
    50           Purchase offset.                              Line item not generated
    Can any one tell why line item not generated for miro posting .
    Regards
    Milind

    Hi,
    The extra line items will be generated when there are any exchange rate diffrences are there then only shows.
    Other wise it wont show those extra line items
    Please check group currency , global currency etc. for  your extra line items

  • Line item not relevant for payment release

    Dear Expert,
    When I select payment block : 'Payment Request' in FB60. Error Message appear "Line item not relevant for payment release".
    I also have set payment block in master vendor and  OBB8.
    Can you tell me why the error message still appear?
    Kindly need your help
    Thanks and Regards,
    YL

    Do you have any workflow variant in place?
    Moreover, when you have already set the Payment block at Master level, you need not to fix it in transaction level.
    Vendor itself will not get paid until unless you remove the block option
    Thanks

  • FI Archiving - System error: Customer/vendor line item not on OI basis

    While archiving FI Documetns using object FI_Documnt, I am getting message System error: Customer/vendor line item not on OI basis for few non archivable documents. Is it like these also open items and can not be able to archive them. Or what is the root cause of these error message.
    Regards,
    Shailesh

    Hi Adisha,
    This error pertains to the accounting fundamentals and SAP does not have anything to do with this....you ask yourself that if you were not using SAP and simlar problem came your way what would you have done...this has no solution...
    Either you wait for the next invoice with big amount but which seems bit impractical..
    In this we really need to consult the Accounting Standards to see what it could allow.
    Regards,
    Chintan Joshi

  • FB05 - trans to be processed and first line item PK for doc type

    Hi all,
    Me quite confused of the entry for the following document type in FB05
    DG - cust credit memo
    DR - cust invoice
    SA- gl acc doc
    SB - gl acc posting
    KG - vdr credit memo
    DZ - customer payment
    Need the help to let me know for document type above, what radio button to choose in transaction to be processed and also what posting key use at first line item.
    Also if i choose the wrong transaction to be processed radio button, any impact?
    thanks
    rgds

    Document type is primarily used to distinguish different various types of transactions. Ultimately, there are only two effects in accouting - debit and credit. Thus, doc type helps distinguish btw various types of accounting entries. It also controls certain field status while document posting and also drives the number range for the accounting document.
    Posting keys determine whether a transaction will be a credit or a debit. They also have an influence over the field status of the document entry screen. Posting keys are broadly divided into those belonging to
    Customer                             - Acct type C
    Vendors                               - Acct type V
    GL                                       - Acct type G
    Fixed Assets                        - Acct type A and
    Material Mgmt. transactions   - Acct type M
    For each account type there are both debit and credit posting keys. You can clik on F4 on the posting key field and see the various entries. You will understand.
    Thus, which posting key to enter depends on the transaction you want to enter.
    Regards,

  • Last line item gets changed to first line item for cs01

    HI experts,
               I have writen a BDC for Tcode cs01.
    I am facing a problem in that.If sucppose there are 4 line items,
    the first three line itmes are getting uploaded correctly but the kast line item gets changed to first line item.
    below is part of my code.
    DELETE ADJACENT DUPLICATES FROM T_MAT COMPARING MATNR.
    SORT T_MAT BY MATNR. "HEADER DATA
    SORT T_BOM BY MATNR1. "ITEM DATA
    *CLEAR : COUNTER, ITEM_NO.
    LOOP AT T_MAT INTO W_MAT.
      REFRESH GT_BDCDATA.
      CLEAR   GW_BDCDATA.
    perform bdc_dynpro      using 'SAPLCSDI' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29N-STLAN'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29N-MATNR' W_MAT-MATNR.
                                 'lejn44001'.
    perform bdc_field       using 'RC29N-WERKS' W_MAT-PLANT.
                                 '4600'.
    perform bdc_field       using 'RC29N-STLAN' W_MAT-BOM_USAGE.
                                 '1'.
    *perform bdc_field       using 'RC29N-DATUV'
                                 '22.06.2010'.
    perform bdc_dynpro      using 'SAPLCSDI' '0110'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29K-BMENG'
                                  '1'.
    perform bdc_field       using 'RC29K-STLST'
                                  '1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-EXSTL'.
    perform bdc_dynpro      using 'SAPLCSDI' '0111'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-LABOR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    LOOP AT T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
      cnt = cnt + 1.
      CONCATENATE  '0' CNT INTO VAR.
       ADD 1 TO COUNTER.
       ITEM_NO = 10 * COUNTER.
       OVERLAY ITEM_NO WITH '0000'.
       W_BOM-ITM_NO = ITEM_NO.
    perform bdc_dynpro      using 'SAPLCSDI' '0140'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POSTP(03)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-BOM_COMP.
    clear new_mark.
    CONCATENATE 'RC29P-MENGE(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-QTY.
    clear new_mark.
    CONCATENATE 'RC29P-POSTP(' VAR ')' INTO NEW_MARK.
    perform bdc_field USING new_mark W_BOM-ITM_CAT.
    clear new_mark.
    clear VAR.
      ENDLOOP.
    loop at T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
    perform bdc_dynpro      using 'SAPLCSDI' '0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POSNR'.
    perform bdc_field       using 'RC29P-POSNR' V_CNT.
                                 '0010'.
    perform bdc_field       using 'RC29P-IDNRK' W_BOM-BOM_COMP.
                                 'PURCHASECOST'.
    perform bdc_field       using 'RC29P-MENGE' W_BOM-QTY.
                                 '20'.
    perform bdc_field       using 'RC29P-MEINS'
                                  'M'.
    perform bdc_dynpro      using 'SAPLCSDI' '0131'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POTX1'.
    perform bdc_field       using 'RC29P-SANKA'
                                  'X'.
    V_CNT = V_CNT + 10.
    ENDLOOP.
    CLEAR V_CNT.
      perform screen_data. " IS ALL ABOUT CALLING TRANSACTION......
      ENDLOOP.
    following is The input file format m providing.
    Material     Plant     BOM usage     Item No     Item Cat     BOM component     QUANTITY
    WRJN46106     4600     1     10     z     PURCHASECOST     10
    WRJN46106     4600     1     20     z     SOURCINGCOST     15
    WRJN46106     4600     1     30     z     INVRESERVE     12
    WRJN46106     4600     1     40     Z     INVRESERVE1     20
    in this the first 3 line items are coming correctly but the 4th one gets changed to
    first line item.
    e.g INVRESERVE1 changes to purchasecost.
    plz help.
    Thanks n regards,
    Ashmita singh.

    Hi Suneel,
    I hardly can't believe that. There must be an mistake by your own in the smartform itself. Would you please share some screens or better, the smartform-XML itself. You can pass out everything else and just share the table and a dataset to try this.
    I'm pretty sure that there is something wrong with the settings or even the loop itself. I never faced a problem like that or even heared about such things.
    I would love to have a look inside.
    Before you share it, create a new one with just the table inside and try it with the same data. Perhaps it is just of to much folders or something like that, so the generating comes in trouble.
    Regards
    Florian

  • Line Items not seen in Invoice output

    Hi All
    I am not able to see the line items in the invoice output. The invoice just shows the total amount with out displaying any of the line items. Please help
    -Madhu

    Hi there,
    When you define the O/p, we also need to define the firm layout with smart forms if it is a print O/p.
    For that the functional consultants should give the field mapping of all the data that they want to capture inthe O/p.
    For eg: line items are stored in VBAP-POSNR / VBAP-MATNR in sales order. Whenwe give the field mappings, only then ABAPer will do the data mappings to come into the O/p.
    Regards,
    Sivanand

Maybe you are looking for

  • Commit after every 1000 records

    Hi dears , i have to update or insert arround 1 lakhs records every day incremental basis, while doing it , after completing all the records commit happens, In case some problem in between all my processed records are getting rollbacked, I need to co

  • Report / FM-To create/update email address from Personal detail infotype105

    Hi All Any standard report or FM is available to update the SU01 email id by using personal details PA30 infotype 105 email ID. Regards K.Gunasekar

  • Best for Web viewing

    Hello All, I was wondering if anyone out there had any suggestions on which is the best way to export my video for web viewing. Currently I have a project that was only 1.9MB big but when I exported it to a .mov file it came out to be over 350MB larg

  • FTPS ovr SSL Certificates setup

    Hello all, I did quite some research on SDN to get articles on setting up all configuration to do an FTPS over SSL. Here is where i Stand: I have downloaded the Partner's certificate and have got it into PIs Trusted Keystore, but when i try to execut

  • OEM Console - uanble to see interconnect components

    I have installed OEM and Interconnect10g(9.0.4) in separate homes. I have not installed the 9iAS server. I have followed the post installation instructions for the Oracle management infrastructure. But I still am unable to see the interconnect compon