LSMW Sales Order BAPI : Header & Item Text

Hi frenz,
       I'm migrating Sales Order data using LSMW with BAPI method. We got four files...
one for header, one for item, one for header text, one for item text.
Now my problem is how do i update both header and item text.
B'cos while assigning structural relations we got only one text structure(E1BPSDTEXT) common for both header and item. So which source structure(whether header_text or item_text) should be assigned to this segment(E1BPSDTEXT)?
Else is there any other way to update both header and item texts?
With regards,
praveen.

Unfortunately, you cannot assign more than one source structure to a target structure. But you can still manipulate the code. Here is how.
Let us say your source structure defined for item texts is ITEM_TEXTS. In your field mapping section for E1BPSDTEXT, double click the '__BEGIN_OF_RECORD__' in change mode. It will pop-up a warning message, say 'yes' and proceed. Remove all the coding that is there in this section, but copy the lines to somewhere(say x buffer) before you do that. You will need those lines below. Just add the following lines there.
if v_transferred_texts = 'X'.
*-- all the texts are transferred, don't need to process again.
  skip_record.
endif.
You need to define 'v_transferred_texts' in the
'__GLOBAL_DATA__' section as follows.
data: v_transferred_texts type c.
Now double click on '_END_OF_RECORD_' in change mode. It will pop-up a warning, but you can say 'yes' and proceed. This will open up the coding window with one line of code in it 'transfer_record.'. Here you need to add your coding as follows.
*-- move the header texts
LOOP AT HEADER_TEXTS.
*-- This should <b>ALWAYS</b> be there
  g_edidd_segnam = 'E2BPSDTEXT000'.
  g_edidd_segnum = '0021'.         
  g_edidd_psgnum = '000001'.       
  g_edidd_hlevel = '02'.           
  clear E1BPSDTEXT.                
*-- fill each field of the following fields
  E1BPSDTEXT-DOC_NUMBER = SALESHEADER-ORDERNUMBER.
  E1BPSDTEXT-ITM_NUMBER = '000000'.
  E1BPSDTEXT-TEXT_ID    = HEADER_TEXTS-TEXTID.
  E1BPSDTEXT-LANGU      = SY-LANGU.
  E1BPSDTEXT-LANGU_ISO 
  E1BPSDTEXT-FORMAT_COL
  E1BPSDTEXT-TEXT_LINE  = HEADER_TEXTS-TEXT.
  E1BPSDTEXT-FUNCTION   = '005'.
  transfer_record.
ENDLOOP.
*-- Now move the item texts
LOOP AT ITEM_TEXTS.
*-- This should <b>ALWAYS</b> be there
  g_edidd_segnam = 'E2BPSDTEXT000'.
  g_edidd_segnum = '0021'.         
  g_edidd_psgnum = '000001'.       
  g_edidd_hlevel = '02'.           
  clear E1BPSDTEXT.                
*-- fill each field of the following fields
  E1BPSDTEXT-DOC_NUMBER = SALESHEADER-ORDERNUMBER.
  E1BPSDTEXT-ITM_NUMBER = ITEM_TEXTS-ITM_NUMBER.
  E1BPSDTEXT-TEXT_ID    = ITEM_TEXTS-TEXTID.
  E1BPSDTEXT-LANGU      = SY-LANGU.
*  E1BPSDTEXT-LANGU_ISO  =
*  E1BPSDTEXT-FORMAT_COL
  E1BPSDTEXT-TEXT_LINE  = ITEM_TEXTS-TEXT.
  E1BPSDTEXT-FUNCTION   = '005'.
  transfer_record.
ENDLOOP.
*-- set the flag that the texts have been transferred
v_transferred_texts = 'X'.
Please let me know how it goes.
Srinivas

Similar Messages

  • Sales Order Exit For Item Texts

    Hello all,
    I am having a very wierd issue with sales orders.
    I am creating an exit to redeterming item category of line item via the item usage field.
    The item usage field is a user defined field on the "Additional Data B" in the Sales Order.
    In MV45AFZZ, I am able to set the item category after the item usage is entered.
    Now the Item text nodes in the "Texts" tab at line item level depend on the item category.
    Thus item category ABCD has text T1 T2 & T3 assigned to it
    while item category EFGH has text T1 & T5 Assigned.
    My issue is that when the item category is changed from ABCD to EFGH, if one goes to the "Texts" Tab at line item level, the nodes shown are the same as those for item category ABCD.
    I cant find any exit to redetermine the text sequence.
    I tried USEREXIT_MOVE_FIELD_TO_TVCOM_I & TVCOM_H but they dont seem to work.
    I would really be very grateful for any help/ideas on how to get this resolved.
    Many Thanks,
    Preet

    Hello,
    Actually I dont need to either rename the text or change the contents (please correct me if wrong).
    Basically if PSTYV (itm_cat) = ABCD then text id's
    0001      Desc1
    0002      Desc2
    0003      Desc3
    0004      Desc4
    are shown.
    If PSTYV = 'EFGH' then text id's
    ID Node    Description
    0001       Desc1
    0006       Desc6
    0008       Desc8
    are to be shown ( this is what I want ).
    However right now if I change Item category from ABCD to EFGH then the nodes on the "Text Tab are
    0001       Desc1
    0002       No Description Shown
    0003       No Description Shown
    0004       No Description Shown
    0006       Desc6
    0008       Desc8
    I cant get a screenshot which would probably explain it better.
    In short is there any way of not displaying specific test-id's in the long texts for line items.
    I realise its a Friday here but any help will be deeply ..deeply appreciated.
    Many Thanks,
    Preet

  • BAPI:Create sales order from an existing open sales order for open items

    Dear All,
    Could any one suggest me any BAPI that can create sales order from an existing OPEN sales order for OPEN items. since we are closing all open orders and creating new orders with reference to existing open orders.   please suggest, its would be great help.
    Regards,
    Reddy

    hi suresh,
    we are changing tax procedure from formula to condition based, so this is the reason we have close all the open orders and recreate in TAXINN procedure, it is going to be large number of records( open orders), so....
    Regards,
    Reddy

  • LSMW : Sales Order DI : Extend the stucture?

    Hello Friends,
    We are currently using Direct Input approach for LSMW Sales Order. It all working fine and SO is uploaded
    But there are some 20 odd fields which our clients wants to be uploaded from legacy system [eg MUEBS (Char Display), AUDAT [Which currently is sy-datum internally]....
    Now these fields are not present in BVBAKKOM, BVBAPKOM etc structures..
    Over this I have following doubts...
    1 If we want to extend the structure how should we go about it ?
    2. If we extend the structure then do we need to regenerate the LSMW program? How to do it ?
    Please consider my case as very urgent...
    Thanks in advance.

    hi
    60000001
    This direct input program creates purchase orders using function modules. In a second step, program RM06EEI1 supplements these newly created POs with the purchase order history and the necessary accounting documents.
    Please note the following restrictions:
    The net price is based on one condition only (standard: PBXX): additional conditions (discounts, surcharges) are not supported
    Change documents cannot be compiled for the POs
    PO items with multiple account assignment cannot be transferred
    "Goods-receipt based" invoice verification is not supported
    The PO items may not relate to materials subject to split valuation
    Down payments and subsequent debits involving PO items are not possible
    Inbound deliveries are not transferred
    Subcontract orders, third-party orders, stock transport orders, service orders and release orders are not transferred
    The program reads a sequential file containing records of the structures MBEPOH (PO header) and MBEPOI (PO item), and generates purchase orders from them.
    The data is expected in the sequential file in the following order:
    For each PO header, a record of the structure MBEPOH,
    For each PO item, a record of the structure MBEPOI.
    All PO items up to the next PO header are assigned to the last-read PO header. Accordingly, the first record of the sequential file must be a PO header, whereas the last record of the file must be a PO item.
    For further information on the structure of the sequential file and on the expected field formats and contents, please refer to the Implementation Guide.
    For test purposes, you can use program RM06EEEX to generate a sequential file on the basis of POs that already exist in the system.
    Program parameters:
    You can maintain the following parameters on the initial screen:
    File name: please specify the logical file name under which the sequential file can be accessed.
    Update or test run: with these parameters you specify whether or not the program is to be run in test mode only. If you specify the test mode, all the data transfer checks are carried out without the database being updated. If you decide on the update run, the purchase orders will be added to the database after successful checking.
    Scope of log: via this parameter, you specify whether or not you wish to have detailed output of the error messages per PO item with error identification and short error text.
    60000002
    Before you begin with the actual transfer of your purchase orders using this program, certain activities must be carried out. Among other things, the data extract for this program must be created and Customizing settings checked or altered. For further information, please refer to the Implementation Guide.
    60000003
    The program log contains:
    Program statistics (start, end, number of records read etc.)
    A listing of PO numbers added
    A listing of PO numbers not added (i.e. faulty POs)
    The detailed error log per PO item supplements this, provided you have activated the output of this log via the relevant program parameter.
    This latter log contains:
    PO number
    PO item
    Message class
    Error category
    Error number
    Error short text
    60000004
    The same checks are made as in the case of the manual creation of purchase orders.
    In addition, the system checks whether the order types and item categories are allowed for automatic PO transfer (see restrictions).
    If the PO history is to be compiled using program RM06EEI1, (as per the specification in field MBEPOI-WEREF), additional checks relating to the amount and quantity fields of the invoice and goods receipts are made.
    A purchase order is only created if all PO items have passed the checking process without errors.
    60000005
    Prior to transferring purchase orders with database updating, you should carry out a database back up. Reset programs for automatically created purchase orders are currently not available.
    Restarting at the existing sequential file is possible. The program recognizes that the PO in question is not to be added again by reference to the external PO number assigned by you.
    A database commit is initiated after each newly created purchase order.
    By means of the appropriate organizational measures, please ensure that the POs created via program RM06EEI0 are not changed manually before program RM06EEI1 has been run successfully. Inconsistencies cannot otherwise be ruled out.
    The program run-time depends largely on your installation, your organization structure, and the quantity structure of your master and transaction data.
    As a rough estimate, however, it can be assumed that approx. 4000 PO items per hour can be handled.
    The complete documentation on data transfer with regard to purchase orders is available in the SAP Library:
    CA Cross-Application Components -> CA Data Transfer Workbench -> Data Transfer Objects by Application -> MM Materials Management -> MM Purchase Orders: Data Transfer Workbench.
    You may have to use one file for this. Your structure would include all of the fields for both the header and detail.
    regs
    Arun

  • Bdc sales order multiple line items

    hi friends,
    i prepare multiple sales orders multiple line items through  single flat file
    in bdc program.
    i know information about ...
    H
    I
    I
    I
    BUT my problem is
    H
    I
    I
    H1
    I
    I
    H2
    I
    I
    how will develop this code?

    George Bush,
    Answer fir this question is, you need to do basic ABAP Training.
    Search for SAP ABAP Training Courses.
    You need to build logic in you program by defining appropriate internal table and use loop events to build BDC.   BDC is old style of programming. I would advice you to use BAPI with immediate order processing.
    If you want BDC, you can also try to use LSMW by defining appropriate inbound data structures.
    If you need help let me know.
    Thanks & Regards,
    Mahesh Apte

  • Free Goods - Not showing in sales order as subsequent item

    Dear Gurus,
    I have created a Free Goods procedure determination and maintained it at Customer/ Material level in VBN01.
    The procedure is inclusive as follow:
    For every 100 units purchased, the customer gets 10 units free
    However at sales order level there is no indication at all that the Free Goods are being triggered.
    When I check the pricing procedure, the condition record NA00 that I have used doesn't show-up.
    There is no subsequent item in the sales order under the main item showing the Free-Goods discount.
    Could you please help me go through the customizing process to correct the error?
    Many thanks for your help
    Chris

    Hi,
    FYI
    Free goods can be configured in SAP by following two methods.
    (1) Manually
    (2) Automatically
    Manually: By specifying higher level item category for a line item we can determine free goods as a free of charge
    items during sales order processing.
    Automatically: System proposes free of goods automatically in the sales order. In automatic free goods
    configuration system follows two methods.
    (1) Exclusive
    (2) Inclusive
    Exclusive: System configures free goods in exclusive option like free goods quantity is going to be excluded in
    order quantity. Ex: For 10 items 1 item is free. Then system configures free goods as 10 + 1.
    Inclusive: System configures free goods in inclusive option like free goods quantity is going to be included in order
    quantity. Ex: For 10 items 1 item is free. Then system configures free goods as 9 + 1.
    NOTE: In exclusive method other items also can be given as a free of charge items for order item.
    Configuration steps: INCLUSIVE
    SAP follows condition technique to configure free goods automatically.
    Maintain pricing procedure
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Condition technique for free goods
    Maintain pricing procedures
    Choose free goods procedure NA0001 and select it
    Click on copy icon on application tool bar and rename it Ex: SRI001
    Condition type is NA00 and Access sequence also NA00
    Save it and Exit
    Activate free goods determination
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Condition technique for free goods
    Activate free goods determination
    Go to new entries
    Specify our sales area, document pricing procedure, customer pricing procedure and specify our free goods
    procedure Ex: SRI001
    Save and Exit
    Control free goods pricing
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Control free goods pricing
    Control pricing for free goods item category
    Choose item category TAN from position button
    Specify the pricing as X = Pricing standard
    Choose item category TANN from position button
    Specify pricing as B = Pricing for free goods (100% discount)
    Save and Exit
    Maintain condition type for 100% discount
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Control free goods pricing
    Maintain condition type for 100% discount
    Check whether condition type R100 is available or not (R100 = is 100% discount)
    Exit
    Maintain pricing procedure for pricing
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Control free goods pricing
    Maintain pricing procedure for pricing
    Choose our pricing procedure form position button and select it
    Click on control data icon under dialog structure
    Include condition type R100 between the steps of discounts.
    Specify requirement = 55 and Routine No: 28 (100% discount) in Alt. CBV.
    Save and Exit
    Requirement 55: The Routine No. 55 is assigned to condition type R100. If the user wants to look both revenues
    and sales deductions for the free items since the product that we are going to give as a free of charge item can be
    sold separately in the same sales order. Then the item category of free goods TANN has the pricing value as B.
    Then the system calculates value of the free goods as 100% discount as we discussed above the same material [that
    is going to be given as a free of charge item]. Some times the same item is going to be given as a normal item.
    Then system calculates price for normal item and system should not calculate price for same item [free of charge
    item]. So as to perform this calculation we have to assign Requirement/Routine 55 is to assign condition type
    R100.
    Alt CBV = 28: [100% Discount] Condition type R100 should be taken as a ZERO value. The formula 28
    calculates condition type R100 value as a ZERO.
    Set Transfer of cost to Main item: [Copy control]: Transaction code: VTFL
    Copy control is a concept by which the system copies the data from source document to target document.
    Path:
    IMG
    Sales and Distribution
    Basic functions
    Pricing
    Free goods
    Control free goods pricing
    Set transfer of cost to main item [copy control]
    Choose Billing type F2 Delivery document type LF from position button
    Select it and click on itemicon under dialog structure
    Choose item category Ex: TAN
    Click on details icon
    Click on display or change icon
    Choose item category as TAN again
    Select it and click on details icon
    Check cumulative cost
    Save and Exit
    Cumulative cost controls whether the cost value (VPRS) is to be copied from relevant sub items into main items.
    Sub items cost are not relevant for billing.
    Maintain copying control: Transaction code: VTAA
    Path:
    IMG
    Sales and Distribution
    Basic functions
    Free goods
    Control free goods pricing
    Maintain copying control
    We maintain copy control at item level category for free goods. In this field we can control whether the
    free goods should also be transferred when we copy from one document to another document.
    Choose source document type as QT and target document type as OR from position button
    Select it and click on item control button under dialog structure
    Choose AGN item category from position button
    Click on display or change button
    Again click on AGN
    Click on details icon
    Check Re u2013 explode structure/Free goods
    Save and Exit
    This indicator controls whether the free goods are copied from source document to target document or redetermined
    again.
    Maintain condition records for Free goods [INCLUSIVE]: Transaction code: VBN1
    Path:
    Logistics
    Sales and Distribution
    Master data
    Conditions
    Free goods
    VBN1 u2013 Create
    Specify condition type NA00
    Click on key combination
    Specify all the data
    Choose inclusive by clicking the INCLUSIVE/EXCLUSIVE push button
    Specify the Material No., Minimum order quantity (Ex: 10), Specify [from] the free goods quantity (Ex:
    10), Unit of measure u201CEAu201D (Each), Free goods (are free goods) as u201C1u201D.
    Calculation procedure: We can specify the Routines for calculation procedure as 1 or 2 or 3
    1 = Pro u2013 Rata (Proportionate): Ex: If the customer places order for 100 cases of material u201CXu201D, then customer
    receives 20 cases of same material as free. That means, the business can say that buy 100 and get 20. If the
    customer orders for 162 cases, then system automatically grants 32 cases as a free of cost (162x20/100 = 32 Cases).
    2 = Unit of reference: When customer orders for 100 cases of material u201CXu201D, then the customer receives an
    additional 20 cases as a free of goods. That means business can say that buy 100 get 20 free by granting 200 free
    for every full of 100 cases. The customer places order for 162, then system automatically grants only 20 cases
    (100x20/100=20).
    3 = Whole unit: When a customer places order for 100 cases of material u201CXu201D, then the customer receives additional
    20 cases of material u201CXu201D as a free of goods item. The business can say that buy 100 and get 20 free of charge items.
    If the customer orders for increment of 100 that means 200 (100 + 100) items, then he gets 40. If he placed the
    order for 101 u2013 199 items he gets only ZERO.
    Save and Exit
    Condition record for EXCLUSIVE: Transaction code: VBN1
    Path:
    Logistics
    Sales and Distribution
    Master data
    Conditions free goods
    Specify the discount type u201CNA00u201D
    Click on key combination
    Click on Choose inclusive by clicking the INCLUSIVE/EXCLUSIVE push button
    Specify the sales organization, distribution channel
    Specify customer number and validity periods, material, minimum quantity, order quantity, unit of
    measure, calculation procedure, free goods (3)
    Specify additional material free goods (if other goods is going to be given as a free of charge item.
    Save and Exit
    Go to VA01 and raise the sales order for INCLUSIVE and EXCLUSIVE.
    See the Free Goods effect.
    Condition type NRAB = Free goods: Requirement = 59, Alt CBV = 29: [only for INCLUSIVE purpose]
    Requirement 59: We have to assign requirement 59 to the condition type NRAB. If the customer buys 100 cases
    of product u201CXu201D, then he receives 10 cases of the product free. If the user would not like the additional line item in
    the sales order for free goods rather than the discount of the 10 cases is represent in the same line item as other 90
    cases. If the free goods discount should not apply on credit for returns that do not make reference in the previous
    document.
    Alt CBV 29: The condition type NRAB is to be assigned with 29 formula to support inclusive free goods
    agreement where the user would have to apply the discount to the order item rather than having a sub item
    generated for the free quantity.
    Ex: The customer orders for 100 cases of product u201CXu201D, 10 cases are free instead of having a free sub item generated
    b the system to represent the free 10 cases, the user would like to have a discount applied to the 100 cases line item
    equal to the value of the 10 cases.
    NOTE: Free goods can only be configured on document category type u201CCu201D (OR). That means we cannot configure
    free goods on Inquiry and Quotation.
    Header Conditions
    SAP has delivered two kinds of condition types: (1) Header conditions
    (2) Item conditions
    Header conditions: The value of the header condition applies to the whole items in the sales document.
    Header conditions do not have any access sequence.
    So that, value of the header conditions should be maintained manually.
    Ex: HA00, HB00
    Configuration settings:
    Include condition types HA00, HB00 in V/08 in between the discount condition types.
    Go to VA01 and raise the sales order
    Select line item and go to Go to button
    Header Conditions
    Include condition type HA00 HB00 with values [HA00 is percentage discount and HB00 is absolute
    discount]
    If HA00 = 1%, then system applies 1% on base value on all items in the sales order.
    If HB00 = 100/- Rupees, then system applies 100/- Rupees proportionately to all items in the sales order. If sales
    order has two items, then system applies 50/- Rupees to each item.
    Click on activate button
    Go to item condition screen
    Check how system applied header conditions for line items
    NOTE: Make sure that sales order contains more than one item.
    Condition Scales
    We can maintain scales for each and every condition type. So that we can determine pricing conditions values
    depending upon the range of the order quantity.
    Ex: If you maintain condition record for PR00 for material one as a 100/- Rs. For 1 material, then we can maintain
    scales for this material like below:
    From Quantity Price
    1 u2013 10 1000
    11 u2013 20 999
    21 u2013 30 998
    31 u2013 40 997
    Configuration settings:
    Go to VK11
    Maintain condition record for PR00
    Select line item and click on scales icon on the application tool bar
    Maintain scales and scale rates accordingly
    Save and Exit
    Go to VA01 and raise the sales order
    Enter the order quantity according to the scale and see the scale effect
    Regards,
    Siva

  • Creation of sales order from idoc; items referencing to different contracts

    Hi All,
    My requirement is to create sales order from an idoc.
    IF a sale order contains multiple items , then the order should be created with contract referenced
    -at the So item level, the valid contract found for each material is different
    hence am not able to use the following bapis
    BAPI_SALESORDER_CREATEFROMDAT2  is not triggering the copy controls.
    BAPI_SALESDOCUMENT_COPY  i can give only one reference document
    Please help
    Thanks
    Deepa

    Hi Deepa,
    Following link can help you for creating sales order with reference
    http://msdn.microsoft.com/en-us/library/cc185190.aspx
    http://www.sap-img.com/fu036.htm
    Award points if useful
    Thanks,
    Ravee..

  • Problem with Sales Order BAPI  Update...Very Very Urgent....Pls Help me out

    I am trying to update the sales order text using "BAPI_SALESORDER_CHANGE" But i am getting an error as " Sold-to party E455 not maintained for sales area E901 C1"
        I passed the sales order no, and the text to be upated and the Update flag is set to "U".
        When i try giving the same values in se37 it updates the sales order text successfully but when i use the same BAPI in the report i am getting the above error. Can anyone pls help me out.

    hi
    the message is very clear that the sold to party ur refering is not from the same sales area. if u have the customer already then extend the same to the said sales area, by common division and distribution channel
    <b>reward points</b>
    Regards

  • Mass maintenance of Sales orders,or/and items

    Hi friends
    Need some help.
    Is there a transaction in SAP by which we can reject large numbers of sales orders, or/and items in sales orders in a mass maintenance way.
    We dont want to use MASS or VA05.

    HI
    Being an SD consultant if u know about how to record transactions in LSMW or BDC
    it will be very useful
    for exampl like if u want to create condition records for 12000 maaterials if u create lsmw and do recording u rwork will be easy
    if u dont know about LSMW or BDC
    just sit with u r abapper and ask him to do LSMW also u try to learn
    it is not mandatory but having an idea about LSMW and BDC or SCAT will be more useful
    regards

  • Restricting Sales Order Form header notes appearing on delivery header

    Hi,
    Can someone please advice as to how to we can restrict the sales order form header text appearing on the delivery header?
    Thanks
    Keshi

    Dear Keshi
    In VOTX find out the procedure for your sales order header and Delivery header
    Go to delivery procedure for header you will find Text Id (which you want to remove in delivery header) which is also present in sales order header.
    Remove that text id from the procedure .
    Please check if that procedure is not used for other deliveries, if it is used than define new procedure for your deliveries.
    Regards
    Jitesh

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • Closing sales order containing cancelled item

    Hello,
    This is the scenario.  You create a sales order containing 3 items and add the order.  One of the items then gets cancelled (in item master data).  You then try and close or cancel the order.  A red line error message is displayed saying 'Item cancelled' with the item code after it.  Is there a way of closing a sales order which contains a cancelled item? I have tried removing the item from the order but am unable to update it afterwards - it shows the same error.
    Many thanks,
    Kate

    Hello Kate,
    A precaution is always needed when you cancel any items.  You need run a simple query such as:
    SELECT * FROM RDR1 T0 WHERE T0.ItemCode = '[%0\]' to check any Sales Orders contain this code.
    Thanks,
    Gordon

  • How I can get the Billing Type for the sales order and its items

    How I can get the Billing Type for the sales order and its items. I mean from which SAP tables and how?

    Hi,
    You need to use two tables.
    First use VBFA. Enter the sales order number in the field Predecessar and the value M in SubCt field. This will give all the billing document number for the sales order items.
    Then use the billing document numbers in table VBRK, where in you can get the billing document type.
    Regards,

  • Sales order doc and item fields in customer line item report(FBL5N)

    Hi All,
    We have some billing documents and the accounting docs are created as well. However, in the FBL5N report, we are not able to display the sales order doc and item info even though the columns are avaliable in the layout.
    Anyone can help?
    Thanks,
    Teo

    Hiya,
    You said you had the Order/Sales Doc field on the layout already.
    Have you ever been able to view the Order? All I can view is the Billing Doc, and I would think that is logical, since the Order is not the immediately prceeding document for the Accounting Doc. The Accounting Doc is created off the Billing Doc and that is what is updated in BSEG. The Sales Order is not updated in BSEG (I haven't seen that happen).
    In the event of a GR into stock posting, the Product Cost Collector or PO is the immediately preceeding document and hence updated in BSEG.
    Cheers.

  • Is there any report to get the header/item text at GR stage together?

    Hi gurus,
    Is there any report to get the header/item text at GR stage together with a date range?
    at the point of goods receipt?  Or a report that could be run to search for header/item text at GR stage together with a date range?
    Text that was entered at the point of goods receipt?

    Hi
    Check MB51 report with posting dates for materials/vendors and use the display variant document header text (which is GR header text). I hope this is the one you are looking for.
    Thanks

Maybe you are looking for