Dummy Line Item

Hi All ,
Sales order is created  with Valid material and one Dummy line item with Item category TATX  .with respect to this delivery is also created and it is it been PGI .
When trying to create the Invoice for delivery it not allowing to create Due to his dummy line item as it is Invalid material and value as zero .
After PGI for this Dummy material one document is created as Confirmation of Services .
So now tried to reverse PGI of the Delivery .it is giving the error as Cancellation of goods movement from decentr.system is not possible .
We want to Invoice this Delivery document or reverse the Delivery Document .
So can anybody suggest any solution for this issue
Regards
Ashish

Following is the solution given in note 1459993
1)  The stock movement must be reversed using a returns process.
2)  In the decentralised warehouse management scenario there are two delivery documents involved in the cancelling process:
The delivery in the central system containing the inventory management stock information.
The delivery in the decentralised warehouse management system containing the warehouse management stock information. 
3)  A cancellation of the delivery in the central ERP system would require that the distributed delivery in the decentral system is cancelled at the same time. 
4)  In order to cancel an outbound delivery, create a return delivery.
5)  In order to cancel an inbound delivery, create a return delivery with transaction MBRL and movement type 122.
Documentation with regards to decentralised warehouse management can be found at the following menu path: http://help.sap.com/  -> Logistics Execution  -> Decentralized Warehouse Management (LE-IDW) -> Goods Movement in the Decentralized Warehouse Management System -> Goods Issue.                                                                          
thanks
G. Lakshmipathi

Similar Messages

  • Dummy line item created with TATX item category in outbound delivery

    Hi Experts,
    We are using a custom transaction YLE_VL10 to create deliveries. Now the problem is when delivery is created, a dummy line item is created with item category TATX and zero qty which causes a problem while creating invoice.
    Can anybody of you suggest what could be the reason for this? or how can it be prevented?
    Thanks
    RP

    Hi Laxmi/Prakash,
    I have checked 0184, it looks fine from that point of view.
    We already suggested this check qty field to be as 'B' before. but our client says their shipping is critical and they have immediate next day shippings and so on. So at that time, if it does not allow to create delivery, then this option affects their business which is why they dont want to implement this workaround.
    Hence we are searching for any other possiblity as of now and hence looking forward for ur replies.
    Thanks
    RP

  • Copy line items from Master Agreement to SubAgreement

    Dear all,
    As a requirement, we need to create a dummy line item at master agreement and subagreement level to be able to publish them to ERP without need
    to complete line items (they are completed in ERP via a development).
    We have created master agreement templates with a dummy line item but at subagreement level, templates are not available.
    What we are trying to develop is a script on post_create at agreement level to copy line items from Master Agreement to SubAgreement. We are able to get Master Agreement line items and copy them to the SubAgreement, but the subagreement is not created. This is the code we are using:
    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanHomeIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanIfc;
    import com.sap.eso.api.contracts.ContractIBeanHomeIfc;
    Mst_agreementBean = doc.getParentIBean();
    lineItemCollectionSub = doc.getLineItems();
    lineItemCollection = Mst_agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    colln = Mst_agreementBean.getCollectionMetadata("MA_LINEITEMS").get(Mst_agreementBean);
    colln2 = doc.getCollectionMetadata("MA_LINEITEMS").get(doc)
    newProject = Mst_agreementBean.getIBeanHomeIfc().createFromAnother(Mst_agreementBean);
    newMember = colln.get(1);
    //  Get Values Line Item
    assCat = newMember.getAcctAssignCategory();
    actLimP         = newMember.getActualLimitPercent();
    delAdCity       = newMember.getDeliveryAddressCity();
    delAdCount    = newMember.getDeliveryAddressCountryRef();
    delAdDist       = newMember.getDeliveryAddressDistrict();
    //... (all fields included in the script)
    // Create Line
    newMember2 = newMember;
    AgreementHome = IBeanHomeLocator.lookup(session, doc.getObjectReference());
    AgreementHome.upgradeToEdit(doc);
    // Set Values
    newMember2.setAcctAssignCategory(assCat);
    newMember2.setActualLimitPercent(actLimP);
    newMember2.setDeliveryAddressCity(delAdCity);
    newMember2.setDeliveryAddressCountryRef(delAdCount);
    newMember2.setDeliveryAddressDistrict(delAdDist);
    //... (all fields included in the script)
    try{
    colln2.add(newMember2);
    AgreementHome.save(doc);
    AgreementHome.downgradeToView(doc);
    collectionbean = colln2.get(0);
    logInfo("Value of  collectionbeanSub " + collectionbean );
    }catch (ApplicationException e){
    logInfo("Error " + e.getClass() + ". " + e.getMessage());
    When we try to create an Agreement under a Master Agreement (clicking Add on Agreement tab), following error message is shown related to the line in blue:
    Facility=local4;sessionid=4e73bb8e73304d6284816f93f4e04522a7c387b; tenantid=#tenant.ecb#;username=LUGUELL; exception=Sourced file: inline evaluation of: ``// **   import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// **    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
    Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
    of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
    ;stacktrace=Sourced file: inline evaluation of: ``// *JLA*    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// *JLA*    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
    Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
    of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
    Any ideas what is causing the error? What are we missing on our code to copy line items?
    Many thanks,
    Marc Romagosa
    Message was edited by: Marc Romagosa de Riba

    We managed to create a line item at VALIDATE script, but not at POST_CREATE. Either it is a bug or it is not possible at POST_CREATE script.

  • Dummy Profit Center -- Customer Line item

    Hello
    I have a scenerrio on dummy profit center
    1. On Augst 2006 -- A customer invoice has been posted using FB70 and some how the customer account  line item when to dummy profit center and other line items were posted to a the correct profit center.
    2. On August 2006 -- Due to this business reversed original customer invoice using FB08 which again has customer account line item when to dummy profit center and other line items were posted to the correct profit center.
    Origianl Invoice: Customer XYZ Ltd - GL 130024 ( Customer Reconciliation Account)--- Dummy profit Center -- Dr. 235,000 USD
    Reversal          : Customer XYZ Ltd - GL 130024 (Customer Reconciliation Account) -- Dummy profit center -- Cr. 235,000 USD
    This is want we want and this is want we see in our FI entries and all are with the same posting dates.
    Now some how when you look at KE5Z (Profit Center line items report) for dummy profit centers even today.
    1. You see the original customer invoice showing dummy profit center  on the customer account  line item as Dr. 235,000 on GL 130024.
    2. You see the reversal customer invoice showing correct profit center on the other line items and you dont see customer account line item that is GL130024 on this document.
    3. Because of which dummy profit center is showing Dr.balance.
    PCA report:
    Origianl Invoice: Customer XYZ Ltd - GL 130024 ( Customer Reconciliation Account)--- Dummy profit Center -- Dr. 235,000 USD
    Reversal          : Customer XYZ Ltd - No entry except the same document number with the other line items.
    Could you please give us the thoughts except the PCA entry only as business dont have to have this entry. Business basically want to know the reason for not showing the customer line item on the reversal document which will knot out the dummy.
    Will assign good points
    Thanks
    Kumar

    Not answered but closing

  • F-28 - Line item for customer charge off difference is going to dummy PC

    Hi
    In F-28 when we are making partial payments to customer and charging off the difference to the same customer account. The Charge off customer line item is going to dummy profit center after doing F.5D and 1KEK.
    Business dont want to use residual item option as they want to see the balance amount in the customer open item display.
    We are using posting key 06 to charge off the same to the customer, and i changed the FSG as profit center required but in F-28 i cannot see the field of profit center and the amount is sitting in dummy profit center.
    This is the problem.
    Thanks
    Kumar

    Hi
    When we raise a invoice Dr. Customer and Cr. Revenue and when we make customer payment the entry is Dr. Bank and Cr. Customer account so here the net entry will be Dr. Bank and Cr. Revenue.
    When i do F.5D the balance sheet adjustments the profit center assigned to my bank account will go the customer account and regarding 1KEK only the open items of AR and AP will go the respective profit centers based on the revenue account and this revenue account which is a P&L account will not have any profit center assignment this account will get the profit center assignement from the cost account assignment if it is internal order then what is mentioned in the internal order that will be the profit center.
    In my case when i am trying to post
    Dr.Bank - 200
    Cr. Customer 280
    and Dr.Customer 80
    So the net effect is Dr. Bank 200 and Cr. Customer 200 and gets cleared with the profit center assignend on the bank account. but the other line item entry Dr. Customer 80 has no offsetting entry like GL entry so this is sitting in dummy profit center.
    Why i am doing this is
    When we go to F-28 to make partial payments, after doing the partial payments we only want to see who much is open ( which is net that is invoice - partial payment) only against the document in the due course this is going to dummy as such customers will not have any profit center.
    So is there any solution to solve the problem instead of going to dummy or is there any other process.
    Thanks
    Kumar

  • Picking DUMMY Profit Center in COGS line item

    Dear All,
    My Client is on ECC6 and document splitting is activated.
    My problem is, in current month we have created on Finishd good(Material) and done PGI but dont know why system is picking dummy profit center in line item of COSG only, in line item of material profit center is proper.
    1. Profit center is assigned in Material Master.
    2.No  User Exit is applied
    3. No Validation & Sub-situation done.
    4. No FAGL3KEH setting is done.
    COGS Ac Dr         100               PC Dummy
      To Inv of FG              100         PC 2000
    Other material created in same valuation class is working properly.
    Regards,
    Shayam
    Edited by: Shayam_210 on Aug 23, 2011 9:13 AM

    Hi, to find bugs like these is always "triggy" and I am afraid that there are no easy solutions!
    You could try to go in TC GGB1 - go down to the substitution in "Create sales order" and there "activate total trace" or perhaps Expert trace - set breakpoint. After you done those go in and create the sales order again in the same session.
    In order to be successful here ... will you need the help of an ABAP'er.
    I believe the error to be related to master data as itu2019s usually are u2026 but sometimes are there a bug in the system.
    Good luck
    René V. Nielsen

  • How to enter line item in delivery document?

    Dear All
    I am confused is there any standard in SAP SD that we can enter one line item directly in delivery document?
    I have a scenario for which i want to do this.
    I am using material type DIEN and item category TAX for freigh billing. We want to create freight posting using dummy non valuated material DIEN. We will directly enter this material 9999 in delivery order.
    I am doing this but system gives me error. I have assigned in T-Code 0184 delivery type LF item category group DIEN Item category for the higher level item TAN item category TAX. When i enter material 9999 in delivery document system gives me this error
    *No item category exists (Table T184L LF DIEN  )
    Message no. VL320
    Diagnosis
    There is no item category available in item category determination in the delivery (table T184L) for the following entries: LF DIEN
    System Response
    The system does not allow further processing of this item.
    Procedure
    Specify the appropriate item category for the above mentioned entries or inform your system administrator.*
    please suggest how to do this. Or if you have any better solution please suggest that. our requirement is that we want to post freight expense directly in freight expense GL and transporter GL. WE are not using transportation module instead we are using simple Sale order > Delivery order > Billing document process. Billing is created from delivery document.

    Item category determination is working fine. Now i am getting this error while creating billing document with reference to delivery document.
    6000054192 000020 Please check Customizing for cross-company
    Diagnosis
    The system checks whether this is a cross-company
    situation, which means that it checks whether two different
    company codes exist and whether billing status has been set
    to intercompany billing.
    Procedure
        Check in Customizing under Sales and Distribution->
        Billing-> Intercompany billing to make sure all necessary
        settings have been made.
    But actually this is not cross company transaction. Please help me in this regard

  • How can I disable the Reason for Rejection field in VA02 line items

    Hi,
      I dont want the users to be able to change the reason for rejection field in the sales order line items. Can someone please suggest a tried and tested way of doing this
    Thanks for reading.

    Set up an auth object for the field.  In userexit field modification check the auth object and set the field to be grayed out if they don't have authority.  Users can then not change the value of the field  Sample code
    IF screen-name = 'VBAP-ABGRU'.
           AUTHORITY-CHECK OBJECT 'Z_BLK_REAS'
                   ID 'ABGRU' DUMMY.
          IF sy-subrc EQ 0.
            screen-input = 1.
          ELSE.
            screen-input = 0.
          ENDIF.
      ENDIF.

  • BAPI_PR_CREATE for Service line items only

    Hi All,
    We are unable to create the Purchase Requistion Order using the BAPI_PR_CREATE for Service line items.
    The Error Message 436(06) " In case of account assignment, please enter acc. assignment data for item" is always received with respect to Account Assignment.
    We are currently using ECC 6.0 EHP 4. SAP instance to create the Purchase requisition order.
    We already did this analysis and came to this include previously for the Error Message 436(06) and could find thatt the accounting tables are not filled.
    Also, the accounting items table is refreshed and deleted in 3 places in the code.
    We did put debug on that u2026 but during debug, the control does not go to these places.
    I suppose there is some other major functionality related to Service PR is missing in the BAPI_PR_CREATE.
    Also we are unable to find the detailed documentation.
    Thanks and Regards,
    Shivakumar K.

    Hi Shivakumar,
                                                                                    Hi Shivakumar,
    in most of the cases this error - 06 436 - happens due to wrongly filled BAPI structures.
    Please check the entries in the x-structures in first line, for example:
    PRACCOUNT structure
    PREQ_ITEM                      00010
    SERIAL_NO                      01
    GL_ACCOUNT                     2222222     
    COSTCENTER                     SAP-DUMMY
    PRACCOUNTX structure
    PREQ_ITEM                      00010
    SERIAL_NO                      01    <<<<
    GL_ACCOUNT                     X
    COSTCENTER                     X
    SERVICEACCOUNT structure
    Line 1:
    DOC_ITEM                       00010
    OUTLINE                        0000000001
    SRV_LINE                       0000000010
    SERIAL_NO                      01
    SERIAL_NO_ITEM                 01
    SERVICEACCOUNTX structure
    Line 1:
    DOC_ITEM                       00010
    OUTLINE                        0000000001
    SRV_LINE                       0000000010
    SERIAL_NO                      01       <<<<
    SERIAL_NO_ITEM                 X     <<<
    Regards,
    Edit

  • Creating new sub line items before a Sales Order is saved (in CRM)

    Hi CRM Experts,
    I am pretty new to CRM system. I have a scenario.
    The actual business scenario behind this is: the customer can only choose a dummy material while placing an order. The customer will not be able to choose what all materials that will make up this order. So he can place an order for a "Pack" with say Qty as 50 units. The business contains some rules based on which the actual materials are mapped to this dummy material.
    User creates a SO in CRM system (using txn CRMD_BUS2000115). Assume a dummy material is added as first line item. The system displays it as line item 10. At this stage I need to create sub line items for this high level line item (item 10) based on what all actual materials can fulfill this. I need to do it programmatically. Is there any BAdI that can be used to do this? Also I need some hints on how to go about this? That is how to do it programmatically. For every sub-item material I need to carry a ATP check and only if the stock is available then add it as a sub line item.
    Basically what I need is to create sub line items programmatically exactly in the same way as it would have been created manually. The system is configured to put the sub line item numbers automatically. That is, if the high level item is 10, then sub line items will be automatically numbered as 11, 12 so on.
    Please feel free to throw me questions if you need more info.
    Thanks a lot in advance.
    Regards,
    Shyam

    Hi,
    I have a similar kind of a requirement.
    I need to add new line items to the order through the program.
    Can you please suggest how did you resolve your issue ?
    Thanks in advance!

  • Use FM SD_SALESDOCUMENT_CREATE for creating free goods line items

    Dear Experts,
    I have created a program for uploading Sales Order details using FM "SD_SALESDOCUMENT_CREATE".
    The program successfully creates Sales Orders.
    Now the problem is with the materials which is a free goods item.
    i.e. if I enter a material say 'XYZ' which has a 20% free goods then if I enter quantity as 10 then it has to create 2 line items where in 1st line item will have 8 as qty. with value and 2nd line item will have 2 as qty with no value.
    It successfully happens when I create Sales Order using tcode VA01.
    *&      Form  CREATE_SALES_ORDER
    FORM create_sales_order.
      head_flg = 'T'.
      LOOP AT t_socreate02 INTO w_socreate02.
        CLEAR : vbeln, spart, bstnk, bstdk,
                w_itemin, w_iteminx, w_partnr.
        MOVE : w_socreate02-vbeln TO vbeln,
               w_socreate02-spart TO spart,
               w_socreate02-bstnk TO bstnk,
               w_socreate02-bstdk TO bstdk.
        AT NEW vbeln.
          CLEAR : w_sdhead, w_sdheadx.
    **Transferring Header Details
          MOVE : 'ZODF'   TO w_sdhead-doc_type,   "Default
                 'L001'   TO w_sdhead-sales_org,  "Default
                 '01'     TO w_sdhead-distr_chan, "Default
                 spart    TO w_sdhead-division,
                 bstdk    TO w_sdhead-purch_date,
                 sy-datum TO w_sdhead-req_date_h,
                 bstnk    TO w_sdhead-purch_no_c.
          MOVE : 'I' TO w_sdheadx-updateflag,
                 'X' TO w_sdheadx-doc_type,
                 'X' TO w_sdheadx-sales_org,
                 'X' TO w_sdheadx-distr_chan,
                 'X' TO w_sdheadx-division,
                 'X' TO w_sdheadx-purch_date,
                 'X' TO w_sdheadx-req_date_h,
                 'X' TO w_sdheadx-purch_no_c.
        ENDAT.
    **Transferring Item Details
        MOVE : w_socreate02-posnr TO w_itemin-itm_number,
               w_socreate02-matnr TO w_itemin-material,
               w_socreate02-zmeng TO w_itemin-target_qty.
        APPEND w_itemin TO t_itemin.
        MOVE : w_socreate02-posnr TO w_iteminx-itm_number,
               'I'                TO w_iteminx-updateflag,
               'X'                TO w_iteminx-material,
               'X'                TO w_iteminx-target_qty.
        APPEND w_iteminx TO t_iteminx.
    **Transferring Partner Function Details
        CLEAR : w_partnr.
        MOVE : 'AG'                    TO w_partnr-partn_role, "Sold-to-Party
               w_socreate02-sold_party TO w_partnr-partn_numb.
        APPEND w_partnr TO t_partnr.
        CLEAR : w_partnr.
        MOVE : 'WE'                    TO w_partnr-partn_role, "Ship-to-Party
               w_socreate02-ship_party TO w_partnr-partn_numb.
        APPEND w_partnr TO t_partnr.
    **Transferring Schedule Line Details
    *Schedule Line 1
        CLEAR : w_schedulesin, w_schedulesinx.
        MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
               '0001'               TO w_schedulesin-sched_line,
               w_socreate02-edatu01 TO w_schedulesin-req_date,
               w_socreate02-edatu01 TO w_schedulesin-dlv_date,
               w_socreate02-wmeng01 TO w_schedulesin-req_qty.
        APPEND w_schedulesin TO t_schedulesin.
        MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
               '0001'               TO w_schedulesinx-sched_line,
               'I'                  TO w_schedulesinx-updateflag,
               'X'                  TO w_schedulesinx-req_date,
               'X'                  TO w_schedulesinx-dlv_date,
               'X'                  TO w_schedulesinx-req_qty.
        APPEND w_schedulesinx TO t_schedulesinx.
    *Schedule Line 2
        IF NOT w_socreate02-wmeng02 IS INITIAL.
          CLEAR : w_schedulesin, w_schedulesinx.
          MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
                 '0002'               TO w_schedulesin-sched_line,
                 w_socreate02-edatu02 TO w_schedulesin-req_date,
                 w_socreate02-edatu02 TO w_schedulesin-dlv_date,
                 w_socreate02-wmeng02 TO w_schedulesin-req_qty.
          APPEND w_schedulesin TO t_schedulesin.
          MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
                 '0002'               TO w_schedulesinx-sched_line,
                 'I'                  TO w_schedulesinx-updateflag,
                 'X'                  TO w_schedulesinx-req_date,
                 'X'                  TO w_schedulesinx-dlv_date,
                 'X'                  TO w_schedulesinx-req_qty.
          APPEND w_schedulesinx TO t_schedulesinx.
        ENDIF.
    *Schedule Line 3
        IF NOT w_socreate02-wmeng03 IS INITIAL.
          CLEAR : w_schedulesin, w_schedulesinx.
          MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
                 '0003'               TO w_schedulesin-sched_line,
                 w_socreate02-edatu03 TO w_schedulesin-req_date,
                 w_socreate02-edatu03 TO w_schedulesin-dlv_date,
                 w_socreate02-wmeng03 TO w_schedulesin-req_qty.
          APPEND w_schedulesin TO t_schedulesin.
          MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
                 '0003'               TO w_schedulesinx-sched_line,
                 'I'                  TO w_schedulesinx-updateflag,
                 'X'                  TO w_schedulesinx-req_date,
                 'X'                  TO w_schedulesinx-dlv_date,
                 'X'                  TO w_schedulesinx-req_qty.
          APPEND w_schedulesinx TO t_schedulesinx.
        ENDIF.
    *Schedule Line 4
        IF NOT w_socreate02-wmeng04 IS INITIAL.
          CLEAR : w_schedulesin, w_schedulesinx.
          MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
                 '0004'               TO w_schedulesin-sched_line,
                 w_socreate02-edatu04 TO w_schedulesin-req_date,
                 w_socreate02-edatu04 TO w_schedulesin-dlv_date,
                 w_socreate02-wmeng04 TO w_schedulesin-req_qty.
          APPEND w_schedulesin TO t_schedulesin.
          MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
                 '0004'               TO w_schedulesinx-sched_line,
                 'I'                  TO w_schedulesinx-updateflag,
                 'X'                  TO w_schedulesinx-req_date,
                 'X'                  TO w_schedulesinx-dlv_date,
                 'X'                  TO w_schedulesinx-req_qty.
          APPEND w_schedulesinx TO t_schedulesinx.
        ENDIF.
    *Schedule Line 5
        IF NOT w_socreate02-wmeng05 IS INITIAL.
          CLEAR : w_schedulesin, w_schedulesinx.
          MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
                 '0005'               TO w_schedulesin-sched_line,
                 w_socreate02-edatu05 TO w_schedulesin-req_date,
                 w_socreate02-edatu05 TO w_schedulesin-dlv_date,
                 w_socreate02-wmeng05 TO w_schedulesin-req_qty.
          APPEND w_schedulesin TO t_schedulesin.
          MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
                 '0005'               TO w_schedulesinx-sched_line,
                 'I'                  TO w_schedulesinx-updateflag,
                 'X'                  TO w_schedulesinx-req_date,
                 'X'                  TO w_schedulesinx-dlv_date,
                 'X'                  TO w_schedulesinx-req_qty.
          APPEND w_schedulesinx TO t_schedulesinx.
        ENDIF.
        AT END OF vbeln.
          PERFORM bapi_salesorder.
          CLEAR : t_itemin[], t_iteminx[], t_partnr[],
                  t_schedulesin[], t_schedulesinx[],
                  sdno, head_flg.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    " CREATE_SALES_ORDER
    *&      Form  BAPI_SALESORDER
    FORM bapi_salesorder.
      CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
      CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
        EXPORTING
          sales_header_in       = w_sdhead
          sales_header_inx      = w_sdheadx
          testrun               = p_test
          status_buffer_refresh = 'X'
        IMPORTING
          salesdocument_ex      = sdno
        TABLES
          return                = t_return
          sales_items_in        = t_itemin
          sales_items_inx       = t_iteminx
          sales_partners        = t_partnr
          sales_schedules_in    = t_schedulesin
          sales_schedules_inx   = t_schedulesinx.
      IF p_test <> 'X'.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
      IF head_flg = 'T' AND p_test = 'X'.
        WRITE :/40 '** E X E C U T E D - I N - T E S T - M O D E **' COLOR 2.
      ELSEIF head_flg = 'T' AND p_test = ' '.
        WRITE :/40 '** E X E C U T E D - I N - U P D A T E - M O D E **' COLOR 2.
      ENDIF.
      IF head_flg = 'T'.
        SKIP 1.
        ULINE /2(139).
        WRITE :/2 sy-vline,
                3 'Dummy SalesOrder No.' COLOR 1,
               23 sy-vline,
               24 'Generated SalesOrder No.' COLOR 1,
               48 sy-vline,
               49  'Return Message' COLOR 1,
              140 sy-vline.
        ULINE /2(139).
      ENDIF.
      IF sdno IS INITIAL.
        DELETE t_return WHERE type <> 'E'.
        IF NOT t_return[] IS INITIAL.
          LOOP AT t_return INTO w_return WHERE type = 'E'.
            WRITE :/2 sy-vline,
                    5 w_socreate02-vbeln,
                   23 sy-vline,
                   28 sdno,
                   48 sy-vline,
                   49 w_return-message COLOR 6 INVERSE,
                  140 sy-vline.
          ENDLOOP.
        ELSE.
          WRITE :/2 sy-vline,
                  5 w_socreate02-vbeln,
                 23 sy-vline,
                 28 sdno,
                 48 sy-vline,
                 49 'Sales Order can be processed SUCCESSFULLY' COLOR 7 INVERSE,
                140 sy-vline.
        ENDIF.
      ELSE.
        WRITE :/2 sy-vline,
                5 w_socreate02-vbeln,
               23 sy-vline,
               28 sdno,
               48 sy-vline,
               49 'Sales Order created SUCCESSFULLY !!' COLOR 5 INVERSE,
              140 sy-vline.
      ENDIF.
      ULINE /2(139).
    ENDFORM.                    " BAPI_SALESORDER

    No reply so closed the thread.

  • Service PO with Multiple service Line Items

    Hi,
    i am working on Service Po Creation by using BAPI BAPI_PO_CREAT1. I am able to create service for multiple line items but the problem is single line item my have multiple service line items in that case my object is not working. Can any one suggest solution for this.Here i am attachng what i written logic
               T_POITEM-PCKG_NO      = V_PACKNO.
            T_POSERVICE-PCKG_NO = V_PACKNO.                    "'0000000001'.
              T_POSERVICE-LINE_NO = V_LINENO.                    "'0000000001'.
              T_POSERVICE-OUTL_IND = 'X'.
              T_POSERVICE-EXT_LINE = '0'.           "V_EXTLIN.                  "'0'.
              T_POSERVICE-OUTL_LEVEL = '0'.           "V_EXTOUT.                "'0'.
              T_POSERVICE-SUBPCKG_NO = V_PACKNO + 1.               "'0000000003'. "(Dummy No.)
              T_POSERVICE-QUANTITY = ITAB-SERV_QUANTITY.
              T_POSERVICE-BASE_UOM = ITAB-BASE_UOM.
              T_POSERVICE-PRICE_UNIT = '1'.
              T_POSERVICE-GR_PRICE = ITAB-GR_PRICE.
              T_POSERVICE-SHORT_TEXT = ITAB-SERV_TEXT.             "'SERVICE TEST'.
              APPEND T_POSERVICE.
              V_LINENO = V_LINENO + 1.
    *          V_PACKNO = V_SUBPACKNO.
              T_POSERVICE-PCKG_NO = V_PACKNO + 1.
              T_POSERVICE-LINE_NO = V_LINENO.
              T_POSERVICE-EXT_LINE = V_EXTLIN + 10.             "'0'.
              T_POSERVICE-OUTL_LEVEL = '0'.                          "V_EXTOUT.                "'0'.
              T_POSERVICE-OUTL_IND  = SPACE.
              T_POSERVICE-QUANTITY = ITAB-SERV_QUANTITY.
              T_POSERVICE-SUBPCKG_NO = '0000000000'.
              T_POSERVICE-BASE_UOM = ITAB-BASE_UOM.
              T_POSERVICE-PRICE_UNIT = '1'.
              T_POSERVICE-GR_PRICE = ITAB-GR_PRICE.
              T_POSERVICE-SHORT_TEXT = ITAB-SERV_TEXT.                            "'SERVICE 1'.
              T_POSERVICE-PLN_PCKG   = V_PACKNO + 1.
              T_POSERVICE-PLN_LINE   = V_LINENO.
    *          T_POSERVICE-MATL_GROUP = '0082'.
              APPEND T_POSERVICE.    
    *          SET PCKG_NO AS SUB_PCKG_NO IN TABLE POSRVACCESSVALUES THIS:
              T_POSERVALUE-PCKG_NO = V_PACKNO + 1.                                       "'0000000003'.
              T_POSERVALUE-LINE_NO = V_LINENO.
              T_POSERVALUE-SERNO_LINE = '01'.                "'01'.
              T_POSERVALUE-SERIAL_NO = '01'.              "   '01'.
              T_POSERVALUE-QUANTITY = ITAB-SERV_QUANTITY.       "'10.000'.
              APPEND T_POSERVALUE.

    by following instructions in 420332 note.

  • Error in e sourcing 7.0, RFx- Line Items

    Hi  Experts
    We are implementing SAP e Sourcing 7.0. In order to get familiar with the new functionalities, I am trying to cretae a Rfx with dummy materials and vendors.In Line Items tab, it seems now we first have to add a group within which further materials could be added (free text or from material master ).
    I have create a group lets say "Default" within which I am trying to add materials.My issue is whenever I try to add a material either free text or from material master by clicking on "Add" or "Add Material", I get the following error:
    There is no default Unit of Measure defined for the category_is of \'No Dimension\'.
    Anybody faced a similar error? what would be the possible reasons. Kindly advice.
    Regards
    Mudit Saini

    Hi Vikram
    I did take a look at Unit Category but I hadn't created "No Dimension" as one. Instead I had Dimensionless. So to resolve the issue I had to create No dimension as well
    After assigning it to one of the unit of measure and making it the primary unit of measure for the same, I was able to resolve the issue but it is strange why there are two unit categoriesNo Dimension and Dimensionless which I think imply the same thing.
    Moreover why No dimension category ID is sought in RFx while adding a material is also not clear. this doesn't happen in case of auctions and also in E Sourcing 5.1 we didn't have this precondition.
    Anywz thanks for your reply
    Regards
    Mudit Saini

  • Profir Center Update for Vendor Line Item

    Hi,
    While entering an inter company document, cost center is required field for the expense line item. The system is picking up the profit center based on the cost center. However, while saving the document I  am getting a error message that you can not post to profit center XX in company code 2. The profit center is only assigned to company code 1 (KE52) and it is not to be assigned to company code 2. Ideally the vendor line item should be assigned to dummy profit center maintained in config but system is picking the profit center assigned to expense line item. The following entery is being passed and the document type is AB. Document Splitting is active.
    Expenses A/c. Dr - company code 1 - PC - XX
    To Vendor            - company code 2
    can anyone help me with the same?

    Hi,
    Validations are in 3 steps (Mostly Inter-company transaction fetch this validation in sequence)
    1) Derivation Rule
    2) Default   
    3) Dummy
    Option 1:
    T-code: 3KEI
    setup default profit centre by company code and GL Account
    if above does not resolve your issue then also setup option 2
    Option 2:
    Create substitution rule on document completion level
    If G/L account is (B/S) XXXXXX u2013 XXXXXX and company code is 2
       then PC = 2
    End if
    try first in test system
    regards,
    Prashant Rane

  • Profit Center in Customer and Vendor Line item

    Hello Guru
    i have one doubt we have activated the new GL in one of client for profit center level. while posting through any of financial transaction particularly customer and vendor there is no filed for input parameters for profit center. while booking these kind of transaction system pick up the dummy profit center. even our field status group for  gl master data and posting key made as optional PCA filed not displaying.    client want it should be pick up  automatically from line item and should be input parameters.
    how to resolve this issue please let me know.
    waiting for your reply
    Thanks & Regards
    Laxmi narayan

    Hi,
    You are saying that u have activated New G/L, but are u gone for document spliting also or not? if you have activated document spliting customer and vendor line items not at all required any profit center because it will petch the profit center from oppsite line item automatically for giving tallyed balance sheet at profit center leavel, so no question profit center required or going to dummy profit center because dummy profit center will be locked automatcially once u activate document spliting.
    if you have not activated document spliting then customer and vendor line items may require profit center its depends on your field status settings, if you feel that it should not go to dummy profit center then maintain some profit center in 3keh & 3kei settings for customer and vendor reconcliation accounts, so that it will post to that profit center.
    Thanks & Regards
    T N R

Maybe you are looking for

  • Which BEA WLS version (+ service packs) used which JDK/JRockit-JDK version

    Hello, I'm looking for an overview about the JDK and JRockit JDK versions which are used in the different BEA WLS versions. Specialy im interested on all BEA WLS server versions (incl. the different Service Packs) starting with version 7.0. The overv

  • NCS Prime Infrastructure 1.3 - can "unknown" Vendor OUIs be updated?

    While looking at client information from a pair of controllers on our NCS (version 1.3.0.20) I see what amounts to 53 different "Unknown" vendors listed among the clients.  My question - Is there any way to update the OUI Vendor data in NCS to reflec

  • Adobe Reader changes windows color scheme after launching

    Hi all, We have been using heavily adobe reader. the problem we have encountered is that after launching adober reader on windows 7 pro, default color scheme changes and it is being displayed as if we are on safe mode. We could not find a solution so

  • T500 Backlight adjustment problem

    Hi everyone, I got T500 2082bqg it has two graphic cards intel4500 and ati3650, there are problems with setting backligt when laptop is running from ati graphics card, when I switch to intel there is no problem when I switch back to ati there is no p

  • Can't update document directory in Pages 5

    In Pages 4.3 I could update my directory by clicking into the directory and select "update". This is not possible in Pages 5.0. Anaother important feature that has gone.