Enhancement - sales order item

Hi friends,,
We have enhanced the 2lis_02_vaitm datasource with new field lfsta and gbsta(delivery status) from vbup table.
The field is populated and we are getting the values in the BW
The problem is,the changed values of delivery status is not picked.
Say, on 22th july the delivery status is pending,and the value is 'A'-pending in the gbsta field,this is coming to my bw.
The delivery is completed on 25th,and the filed value is changed to 'C'-delivery completed , when i run my delta on 26th july,the changed value is not picked,so my value 'A'-pending remains in the data target for this completed delivery..
And one of the note suggested the following suggestion to pick the delta of the user defined fields.
•     Add the required fields to the the SD communication structures using the Append method and use the LIS customer exits to fill the field.
            For information on enhancing the communication structures, see the documentation for the enhancements MCS10001, MCS50001 and MCS60001 (provided in transaction SMOD).
After you enhance the communication structures (for example MCVBAP), you can then enhance the extract structure (for example MC11VA0ITM) with the relevant field in the Customizing cockpit (transaction LBWE), provided that the comunication structure is available in the selection.
            To display a delta, you must make sure that you can determine the status in the user exit before and after the document change.
            This varies from case to case and depends on from which table the field is filled.
            For example, you may occasionally have to obtain the information from the internal document tables (such as xvbap and yvbap).
Q1.I want steps to enhance my communication structure to include lfsta and gbsta.
Q2.By doing this,will the changed values of my lfsta and gbsta will come to the bw in the delta load?
Q3.What is the meaning of the statement “To display a delta, you must make sure that you can determine the status in the user exit before and after the document change.””??
q4.How can i see the values of xvbup and yvbup table?
Thanks & regards
Ragu

Hi Ragu
Answering your Q 1
If your data source in Non-LO cockpit:-
1. Go to RSA6, click on data source and go to extract structure.
2. In extract structure maintenance you will find Append structure button on upper right corner, click on that.
3. Name the new append structure, insert required fields.
4. Activate the structure & also activate the extract structure.
5. In LBWE go to datasource maintenance and uncheck the Hide check box for newly added fields and Save the data source.
6. Write code in user exit in CMOD to populate newly added fields.
If your datasource is LO cockpit datasource then
Option 1- Enhance in LBWE
1. check in LBWE- Maintenance -> check if your required field is available in pool (right hand side).
2. If it is available then send it to left hand side.
3. Save and you will find the new field as part of your extract structure.
4. In LBWE go to datasource maintenance and uncheck the Hide check box for newly added fields and Save the data source.
5. No need to write user exit code for these fields.
Option 2- Append & user exit code
If your required field is not available in LBWE Manitainance then follow all steps given above in "If your data source in Non-LO cockpit".
Ans for Q 2
You need to test it after enhancement of extract structre & writing the user exit code if needed.
Ans for Q3
User exit code should take  care of this. Take help from your ABAP person to do the coding.
Regards
Pradip

Similar Messages

  • How to add a partner in sales order item by enhancement?

    Hi expert,
    Sales order item's bill-to and payer will be same with header if you do not change it manually. now I want to modify some item's bill-to and payer which different from the header automatically. Is there any enhancement for this function?
    Thanks and best regards
    Lance

    Hi Lance,
    You can populate the XVBPA structure with function module "VIEW_XVBPA_FILL".
    You have to pass the following values to the FM:
    COMWA-KUNNR <- the changed partner code
    COMWA-PARVW <- parter role
    COMWA-VBELN, COMWA-POSNR <- Salesorder and item: just fill it with VBAK-VBELN,VBAP-POSNR
    You'll get the result in parameter XVBPA, which can be used for append the internal
    table XVBPA in the userexit.
    BR,
    Barna

  • Where Can I settle an enhancement to delete a sales order item according to the data in BDOC from CRM?

    Hi expert,
    I have an urgent requirement from the client.
    Delete the sales order item totally in ECC.
    I planned to implement this enhancement in ECC. Check the data in BDOC from CRM middleware, according to the user status in the order item,decide whether the item can be deleted.
    My question is,where can I settle this enhancement? The BADI name,user exit?
    Thanks in advance.
    Jerry.

    Hi Jerry,
    It may be delayed. you may found the solution.
    Use BADI CRM_DATAEXCHG_BADI and try the code in MBDOC_FILL or BAPI_FILL method.
    Regards,
    Bala

  • Sales order item ontime delivery status at order level in Cube

    Hi Guys,
      We have a requirement, currently we have sales order item information in cube where we have some thing called OTD status
    this status is based on actual GI date and requested date so we have 3 staus at each sales order item level ontime, early, late
    but now the requirement is to change the order status either to ontime or late and this status should be at order level instead of
    order and item level, if any one item in order is late then the whole status of order should be late and if on time or early then it
    should be ontime, is there any why to achive this except adding new character in cube or creating new object in system???
    or if not by just adding new character in cube like order status by remodeling and populate data with customer exit?? pls note
    that we are not using 2lis_11_VAHDR we are using 2lis_11_Vaitm only.
    thanks,
    chandra.

    hi Chandra,
    We had similar kind of situation. but you need to implement the logic either by remodelling or creation of new object.
    What we did was as under.
    - Created new DSO with just Order no and the status.
    - After VAITM Delta load - by making it datamart we forwarded the data to that DSO and had the Status logic put up there so you dont need to change the existing model and you have the status at order level in other DSO.
    - this DSO was than included in Multiprovider for further reporting puprose.
    -This way you have very less things to manage and no need to further enhance exisiting model. This status logic may change in future and you have flexibility to do so easily in the system.
    Hope this helps.
    Regards
    Raj

  • Process to populate the new field added by AET in Sales Order item

    Hi
    We are on CRM 7.0 , EP1.
    I have added a new field in Sales order item view (UI comp : BT115IT_SLSO  , View :Items).
    The field is called MTO (made to order), it should be populated based on settings in material master.
    I would like to know how can I populate this field with custom logic.
    Thanks
    Swapnil

    Dear Swapnil,
    You can use the following steps to set the default value in field Made To Order:
    1. Enhance Component BT115IT_SLSO and View Items
    2. Redefine method DO_PREPARE_OUTPUT method of the View Controller Class and implement the following sample code:
    super->do_prepare_output( ).
    if iv_first_time = abap_true.
    lr_ent->set_property_as_string( iv_attr_name = 'ZXXX'    " Attribute Name
                             iv_value        = 'YYYY'  )     " Value to be set
    endif.
    This will make sure that the logic to set the value in this field is called only once and not after every event.
    You might not like to redefine the Getter and Setter method because these methods will be triggered after each event in that view.
    Hope this helps.
    Thanks
    Vishal

  • Create additional field in sales order item and copy to purchase order item

    Dear SAP Gurus,
    I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
    1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
    2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
    Can you please advise how I would go about implementing the above requirements?  I am assuming that there are exits to allow me to implement these 2 requirements.
    Many thanks
    Henry

    Hi,
    For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
    For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
    Regards,
    Eduardo

  • To Add Two ZFields to sales order Item (Column) of VA01

    Hi friends,
    My requirement is to Add Two Zfields at column level of Sales order Item of VA01.
    i found 8459 Screen Exit , but it will display in Additional Tab B .
    And aslo I need to get the zfield values for every line item .
    Example:
    ITEM  | MATERIAL    | SERVICIABLE MATERIAL | Service type(zfield)|
    10      |10000            | 10001                               | Cleaning
    15      |20000            |200001                              | Repair
    i hope u understand my query . so for each line item it will vary , i have to do the validation for all the line item fields.
    Please help me Very urgent.
    Thanks,
    Veera...

    Transaction Code - VA01                     Create Sales Order
    Exit Name           Description
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Rewards if useful.
    Minal

  • Sales Order item Delete

    Hi gyes,
        in va02 when i delete the sales order item,is any user exit is fiaring.please help me
    Thanks Jinna

    Hi,
    The following are the User_Exits in Va01/Va02:-
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    <u>Place a breakpoint in these user exit.
    Delete a sales order item and see which exits are called and in which order.</u>
    Regards,
    Sameena

  • Copy variant characteristics from Sales Order/Item to Production Order

    Dear All,
    I have a requirement wherein I have to copy variant characteristics fromSales Order/Item to Production Order. In this regard I was looking at Enhancement "CLFM0002". Is it possible to copy the variant characteristics automatically from the Sales Order/Item to Production Order?
    Thanks,
    Pravat.

    Pravant,
    If you are implementing Variant Configuration, or using configurable material in that case you will have to maintain
    Characteristics in CT04
    Classes in CL02
    Configuration Profile CU41
    The material that you are mentioning must have class and charcteristics activated or mentioned in material master. undre classification view. In production you maintain Configurable material BOM  we will be using the same material
    Regards
    Sathya

  • Free goods determined in Delivery over Order Quantity in Sales Order Item

    Hi Gurus,
    I've a problem about using free goods determination.
    First I created free goods master record with following information
    ZG1010012060075 From 100 PC -> Free good ZG1040012060075 2 PC
    Free goods Category = '2' (Exclusive)
    Free goods delivery control = 'E' (Delivery proportional to quantity in main item)
    Then I've created Sales Order with
    Item 10 ZG1010012060075 4,000 PC.
    Item 11 ZG1040012060075(Free good) has been automatically determined for 80 PC
    Then I've splitted Item 10 into 4 deliveries. The result of free goods determine in each delivery are as follow:
    Delivery#1)
    Item10 ZG1010012060075 = 1,176 PC
    Item20 ZG1040012060075 = 24 PC
    Delivery#2)
    Item10 ZG1010012060075 = 1,176 PC
    Item20 ZG1040012060075 = 24 PC
    Delivery#3)
    Item10 ZG1010012060075 = 1,176 PC
    Item20 ZG1040012060075 = 24 PC
    Delivery#4)
    Item10 ZG1010012060075 = 472 PC
    item20 ZG1040012060075 = 9 PC
    *Remark : Total quantity of 'ZG1040012060075'(free goods) = 92424+24 = 81 PC
    (Greater than 80 PC)*
    I think the system determined free goods in Delivery#4 correctly due to rounding up. But It might not be over the order quantity in Sales Order Item 11. Even though I've set the item category in delivery with Check overdelivery = 'B' (Situation rejected with an error message), the free goods are determined over order qty. BUT if I change delivery qty in delivery#4 Item20 from 9 PC -> 8 PC -> 9 PC, the error message occurred.
    My point is to fix the system not determine free goods in delivery items over order quantity in sales order item.
    Has anyone met this situation before? Do you have any idea about this issue?
    Best Regards,
    Prachya Lalitnorasate

    Dear Sai,
    Thank you for your advice, but it didn't solve my problem.
    I would like the system to determine free goods with proportional to main item AND In the last delivery main item delivered completely free goods must be determined equal to remaining open delivery item.
    Do you have any idea about configuration/customization?

  • Table Name to take report of Open Sales Order items&its relevant GL Number.

    Hi,
    I wanted to take a report with Output as Open Sales Order Items and its relevant GL account numbers. is there any T Code in the Standard or atleast the table name.
    I have already fetched the Open Sales Order Items from T code VA05, but i need the relevant GL account numbers also.
    Any pointers on this will be appreciable.
    Rgds,

    Hi
    There are no standard reports where in you can fetch the data of the open sales order items and its G/L accounts with the output. But  by creating your own report using LIS then it is possible
    Regards
    Srinath

  • Sales order item report based on results analysis key and status

    Hi,
    I am trying to find a a report to generate list of sales order items with following selection
            -invoicing status -invoiced/not invoices (other status)
            -result analysis key assigned to this item (VBAP-ABGRS)
            -system status /released/teco
    Basically i am CO consultant and not so familiar with the SD statuses. I tried VA05 and V.26 but all required selections are not available in these reports.
    If no standard report is available in ERP, i would like to have it in BI. Can some help me with table fields for statuses.
    Thanks in advance.
    Regards
    Raghu

    Hi Raghu
    Go to SE16 and give VBUK table and execute it there you can select the following feilds and then check wheather they are meeting your requirements or not.If they are meeting your requirements then create a new Z report by copying standard VA05 key feilds. and include the other feilds which you need.So you take your ABAP team help
    Billing status     FKSTK
    Posting Status  BUCHK
    Overall status  GBSTK
    Document category VBTYP
    Regards
    Srinath

  • Reg Open sales order item and the quantity

    Hi experts:
    I am getting open sales order item based on inner join of tables(vbak, vbap, vbep). Not using vbbe table in inner join as it doesnt carry all pending open records.
    can any one say how open sales order items  and their quantity can be retrieved?
    I searched forum and saw usage of vbuk and vbup tables, but it does not accomplish our scenario.
    Thanks in advance,
    Sashti.

    Hi,
    1) fetch the header information from VBAK table.
    2) Based on VBAK table fetch all the line items from VBAP table.
    3) Now fetch from VBFA table.
    *-Fetch from VBFA to get the delivered qty
      SELECT vbelv               " Preceding sales and distribution document
             posnv               " Preceding item of an SD document
             rfmng               " Referenced quantity in base UOM
        FROM vbfa
        INTO TABLE lt_vbfa
         WHERE vbelv   = gv_vbeln
           and vbtyp_n = 'J'.
    4) By comparing VBFA-POSNR just filter the records from the VBAP internal table. Remained lines are open lines of the sales order.
    Regards,
    ~Satya

  • FBL5N: Sales Order & Item columns

    Hi,
    The FBL5N report contains Sales Order and Item fields from the hidden columns.  However, there is no data when they are selected to be displayed.
    How are these fields populated? How can the SO and items be displayed in these columns?
    Thanks!

    Hi,
    I am able to see the Sales Order & Item in FBL5N when it was entered in the downpayment.
    How are these fields populated in FBL5N?
    Thanks!

  • Sale Order Item Level Text Field which table and field

    Hi,
    Thanks for your prompt reply and best solution.
    Can you please tell me one more thing, in sale order at item level the TEXT Field maintaining by user at transaction level now they want that field in one of the report, so can you please tell what is the table and field where i will get this sale order item level text details.

    Hello,
    is this going to work for item level text as well.
    can you tell how to proceed with this functional module
    or is there any other thing required.Please elaborate to
    understand better way.
    You can check out two table in respect to Sales TEXT i.e. STXH (STXD SAPscript text file header) and STXL(SAPscript text file lines).
    The best approach of tracing out the Text in respect to Sales Order would be to use the Function module READ_TEXT and put this FM in SE37 and execute with the following parameter.
    Client
    Text ID of text to be read
    Language of text to be read
    Name of text to be read
    Object of text to be read
    Archive handle
    Text catalog local
    When you are essentially looking to read item level Text with respect to Sales Order then your Text OBject would be VBBP.
    Regards,
    Sarthak

Maybe you are looking for

  • Windows 8 and wifi Networks

    I've just received a replacement Dell Windows 8.1 tablet. I had the original for two weeks and it was connected to my "home" wifi network. My replacement tablet, once I'd set it up using my "Outlook" account, some how, automatically connected to my "

  • Issue when creating a CSV file

    Stupid issue but I've tried to fix it all day and it's not working... I need to create a CSV file made up of 3 columns, 2 number and 1 char. The char column is a company name that has spaces in it. When I run the query in SQL Developer, the char colu

  • 10.5.4 - Airport Utility

    I am not going to be among the first in the water. But I am wondering if the 10.5.4 upgrade includes an update to to the Airport Utility. It was 5.3.2 in 10.5.3, and seems pretty flaky.

  • After approval AR is not released

    Hi Friends, We have developed a workflow for approval of AR's. I am creating  appropriation request thro' IMA11 , and then I am sending it for approval now status FAPP for approval in progress now it came in my workflow inbox now I am approving the A

  • Iphone 4s videos will not play on Quicktime on my PC, the screen is black but there is sound.  Any ideas?

    I am not too computer literate.............. I took some videos of my daughter and went to view them on my computer (pc) and they will not play.  The computer recongnizes them as quicktime files (.MOV) but when they are selected for playback, the scr