Status of line item of order (CRM)

i am using the 'CRM_ORDER_MAINTAIN'  funtion module but it is working for updating the status of line item, my problem is that in our system order status is maintaing on the basis of item category Z used in Z order type is having the object type as SALES ITEM and which are automatically deliver relevant. We have noticed that the Z order line item status remains at "In Process" rather that moving to "Completed" status after running billing in R/3 system. At the same time the header status of the order reverts back to completed.
SAP has given the option of modifying the ORDER_SAVE badi or modify the include LCRM_STATUS_ECF09 to change the status
completed whenever there is Z item category appears (which looks for deliver document) .
I applied the logic but when i maintain the status as completed for item category then it will not showing the billing doc number in doc flow .
ip_guid = ls_orderadm_i-guid.
ls_status-ref_guid = ip_guid.
ls_status-ref_kind = 'B'.
ls_status-status = 'I1005'. "'E0007'.
ls_status-user_stat_proc = 'CRMORD_I'.
ls_status-activate = 'X'.
INSERT ls_status INTO TABLE lt_status.
ip_guid = ls_orderadm_i-guid.
ls_status-ref_guid = ip_guid.
ls_status-ref_kind = 'B'.
ls_status-status = 'E0004'. "'E0007'.
ls_status-user_stat_proc = 'CRMORD_I'.
ls_status-activate = 'X'.
INSERT ls_status INTO TABLE lt_status.
ls_status-ref_guid = ip_guid.
ls_status-ref_kind = 'B'.
ls_status-status = 'I1073'. "'E0007'.
ls_status-activate = 'X'.
INSERT ls_status INTO TABLE lt_status.
ls_input_field-ref_guid = ip_guid.
ls_input_field-ref_kind = 'B'.
ls_input_field-objectname = 'STATUS'.
ls_input_field_names-fieldname = 'ACTIVATE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
INSERT ls_input_field INTO TABLE lt_input_fields.
ls_input_field_names-fieldname = 'STATUS'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
INSERT ls_input_field INTO TABLE lt_input_fields.
INSERT ip_guid INTO TABLE lt_obj_guids.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_status = lt_status
CHANGING
ct_input_fields = lt_input_fields.

Hi ,
I think you need to change the status in the header also.
Did it work for updating item status?
Ajith

Similar Messages

  • Status of line item of order

    Hi,
    My req is have to change the status of line item of order from in progress to completed .
    Please tell me the function module .

    i am using the same funtion module but it is working, my problem is that in our system order status is maintaing on the basis of item category Z used in  Z order type is having the object type as SALES  ITEM and   which are automatically deliver relevant. We have noticed that the Z order line item status remains at "In Process" rather that moving to "Completed" status after running billing in R/3  system. At the same time the header status of the order reverts back to completed.
    SAP has given the option of modifying the ORDER_SAVE badi or modify the include LCRM_STATUS_ECF09 to change the status
    completed whenever there is Z item category appears (which looks for deliver document) .
    I applied the logic but when i maintain the status as completed for item category then it will not showing the billing doc number in doc flow .
      ip_guid = ls_orderadm_i-guid.
            ls_status-ref_guid = ip_guid.
            ls_status-ref_kind = 'B'.
            ls_status-status = 'I1005'.                         "'E0007'.
           ls_status-user_stat_proc = 'CRMORD_I'.
            ls_status-activate = 'X'.
            INSERT ls_status INTO TABLE lt_status.
            ip_guid = ls_orderadm_i-guid.
            ls_status-ref_guid = ip_guid.
            ls_status-ref_kind = 'B'.
            ls_status-status = 'E0004'.                         "'E0007'.
            ls_status-user_stat_proc = 'CRMORD_I'.
            ls_status-activate = 'X'.
            INSERT ls_status INTO TABLE lt_status.
            ls_status-ref_guid = ip_guid.
            ls_status-ref_kind = 'B'.
            ls_status-status = 'I1073'.                         "'E0007'.
            ls_status-activate = 'X'.
            INSERT ls_status INTO TABLE lt_status.
            ls_input_field-ref_guid = ip_guid.
            ls_input_field-ref_kind = 'B'.
            ls_input_field-objectname = 'STATUS'.
            ls_input_field_names-fieldname = 'ACTIVATE'.
            INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
            INSERT ls_input_field INTO TABLE lt_input_fields.
            ls_input_field_names-fieldname = 'STATUS'.
            INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
            INSERT ls_input_field INTO TABLE lt_input_fields.
            INSERT ip_guid INTO TABLE lt_obj_guids.
            CALL FUNCTION 'CRM_ORDER_MAINTAIN'
              EXPORTING
                it_status       = lt_status
              CHANGING
                ct_input_fields = lt_input_fields.

  • Changing ship to address at line item level in CRM order

    Hi All,
    Is it posible to change the ship to address at line item level in CRM order either at the time of order creation or order change. if yes please let me know if we need to do any settings for this.
    Thanks in advance.
    JM

    I agree with the previous comment, Please go to the Partner Determination procedure attached to the Transaction and in the partner functions associated with the that procedure, find Ship-to-Party and there will be a check box to "make it changeable" once determined. Check that and save it.. You should be all set
    Thanks
    Raj

  • FM for Actual cost line items for orders.

    HI EXPERTS,
    I was working on Actual cost line items for orders / Internal orders of an employee.
    standard program RKAEP000 is present through TCODE KOB1.
    I want some customization of report, so debugged the program and found that its using a FM 'K_LINE_ITEMS_SELECT_AND_LIST' to calculate internal orders.
    But the FM has used REUSE_ALV_* and displaying output itself.
    the requirement is to customize the output display .
    I searched with K_LINE_* and found some other function modules too.
    K_LINE_ITEM_CHECK                                                                               
    K_LINE_ITEM_APC_SIGN_GET                                         
    K_LINE_ITEM_GET_CONTEXT_MENU                                     
    K_LINE_ITEM_GET_TOOLBAR                                          
    K_LINE_ITEM_LOGICAL_KEY_GET                                      
    K_LINE_ITEM_TECH_SETTINGS_SET                                    
    K_LINE_ITEM_VALUE_TYPES_GET                                      
    K_LINE_ITEM_VALUE_TYPES_SET                                                                               
    K_LINE_ITEMS_ACT_GRID                                            
    K_LINE_ITEMS_SELECT                                              
    K_LINE_ITEMS_SELECT_AND_LIST                                     
    K_LINE_ITEM_ACT_CALL_WITH_DATA                                   
    K_LINE_ITEM_ACT_DATA_GET                                         
    K_LINE_ITEM_CM_CALL_WITH_DATA                                    
    K_LINE_ITEM_DEV_CALL_WITH_DATA                                   
    K_LINE_ITEM_PLN_CALL_WITH_DATA                                   
    K_LINE_ITEM_PROCESS_UCOMM_ACT                                    
    K_LINE_ITEM_STEERING_GET                                                                               
    Can anybody tell which FM should i use so that result i will get in an internal table?
    or suggest any other methods
    Thanks in Advance.
    Lucky

    I also had the same requirement and used function module K_LINE_ITEM_ACT_DATA_GET
    this function is calling K_LINE_ITEMS_SELECT_AND_LIST function with  I_NO_DISPLAY parameter
    and returning the result.
    Already they are in same function group,
    I wrote this for future requirements of people  after 4 years of this thread

  • Actual cost line items for orders (KOB1)

    Hello everyone,
    I need to pull a certain field for an order to the
    Actual cost line items for orders report (KOB1), but the field is not available when I
    go to the change layout. Can someone let me know how I can have this
    field listed?
    Thanks in advance for your reply.
    Daniel Nicula

    Hi Christian,
    Ok, so I would need some ABAP support for this right? I was hoping to do it myself.
    But, the strange thing is that the field that I would like to bring in my layout is available in 2 clients in the same system and not in all the clients. I have one client in which this field is not available.
    How can that be possible?
    Bye!

  • 750 to 1200 line items per order

    Hi
    Does any body have the experience of creating order with 750-1200 line items per order, in such scenario how the performance of the e-commerce was handled, was any custom development made to achieve.
    please let us know
    thanks
    vignesh

    Stefan, as stated, this was not well thought through solution (but with some work would be possible to achieve).
    Regarding memory leaks. We have spent quite a bit of time looking in-depth at the shop code over the years and have so far seen very little evidence of actual memory leaks.
    MASSIVE memory consumption, yes, definitely, but no actual leaks
    If you have a suitable OS and JVM running that will allow you to crank up your JVM memory settings then you will most likely see that the memory usage will plateau...it might just be at a much higher level than you would have reasonably expected.
    To give you an example. One of our customers was running a very large catalog (900 000 items) and the shop used 22 GB of memory when running. One of the main reasons in their case, with such a big catalog, was how the web shop chooses to create web cat items and cache them. Deep in the standard shop code you can find that there are lots and lots of ArrayLists initiated and they are all given a >0 default length, which consumes memory even when empty. In this particular case this became such a big issue that we sent SAP the proof that if they would initiate the ArrayLists with 0 length the memory consumption would drop significantly for each WebCatItem instance.
    We estimated at the time after some in-place replacements of the CatalogAttributeValue, class out of the pcatAPI.jar where we set it by default to null instead of size of 10 that we would have saved about 40% of memory consumption. We even prepared the test case and sent it all to SAP, but don't think we ever got it implemented in standard code.
    Another suggestion was that SAP would implement a LRU cache for catalog caching for larger catalogs....again would help with memory usage challenges.
    With another customer we had 1 Million+ hits per business day (8 h period) and I can't remember us ever having to chase up memory leaks in the standard shop code...they might exist, but perhaps the usage scenarios I've been involved in have just not brought most of them to daylight.
    Purely out of interest...if you have found memory leaks in the shop it would be interesting to hear where you found them.
    Cheers
    Kalle

  • Not displaying Actual cost Line Items for Order

    Hi Gurus,
    Recently we did patching from SPC6 to SPC8. After patching we noticed that could not able to see displaying Actual cost Line Items for Order from work order.
    System is not throughing error message when I double cline on line item at Plan/Actual Comparison screen in work order cost tab.
    We can able to see the same from KB01 with out any problem. I have attached the details.
    Could any one suggest me please. Appreciate your thoughts
    Regards,
    Srini

    Hi Paul,
    I have implemented this note and get it sorted out.
    Thank you for support.
    Regards,
    Srini

  • Display Variance line items for Orders

    Hello Sapients,
    I am trying to execute Transaction code KOB3 (Display Variance line items for Orders) ( /n > Accounting> Controlling > Product Cost Controlling > Cost Object Controlling > Product Cost by Order > Information System > Reports for Product Cost by Order > Line Items > KOB3 )
    But for some reason I do not see any thing.
    Your Advise is greatly appreciated.
    Thanks and Regards
    Ravi

    There is no problem with Authorization.
    And i am checking for the correct cost elements and prorcess orders.
    Not only KOB3 but also the related reports are not working (viz: GR55-> 7KV9)
    thanks and Regards
    Ravi

  • Retrieving the Change Texts per Line Item (Purchase Order) - Very urgent

    Hi,
    How do you retrieve the Change Texts per Line Item (Purchase Order).
    Table T166T does not list these values per line item.
    Please help. This is very urgent & important.
    Best Regards,
    John

    if you are lookin out for change of item texts ...
    then use the function module ... READ_TEXT.
    and 2 tables r used ... STXH and TLINE ....
    double click on item data ...
    goto PO TEXT tab ....
    double click on text ...
    from menu ...
    goto header ... u'll get 4 fields that u need to consider ...
    TDID
    TDOBJECT
    TDHEAD
    TDNAME
    ALL THESE U'LL FIND IN  STXH
    ITEM TEXT is stored in TLINE
    Edited by: anjali rana on Mar 5, 2008 4:55 AM

  • System status and user status in Line Item Reports

    Dear PS-friends,
    I have to extend the CI CI_PROJ with some new fields. These fields should be shown in diverse Line Item Reports (CJI3 u2026).
    I know how to get these customer fields into the field catalog for the reports (maintain include table CI_RKPOS, EXIT_SAPLKAEP_001 and ViewCluster V_TKALV).
    Now our customer wishes that 2 of the new fields are: system status and user status. The status should be shown in CJI3 as a concatenated field as you see it in CJ20N.
    In CN42 there is the column system status as a standard column. But I cannot find the structure CNJ_STAT included in V_TKALV for Line Item Report Object=PD.
    Has anybody an idea how it works to show the system status and user status in Line Item Reports.
    Thanks in advance!

    Problem is solved.
    I wrote a function module using FM 'STATUS_TEXT_EDIT' and concatenated line and user_line.

  • Table where i see actual cost line item for order (KKBC_PKO)

    Dear.
    Using transaction KKBC_PKO i can see the actual cost line item for order.
    In which table I see these data ?
    Thanls

    Hi,
    check COEP (CO actual line items) the objectnumber is OR+the order number.
    Best regards, Christian

  • Table where i see actual cost line item for order (KRMI)

    Dear.
    I need to know the table of every single document number of a cost element that I see in the actual cost line item for orders using transaction KRMI.
    Thanks
    Moderator: Please, search SDN

    Hi
    Refer the field Object No (OBJNR) in COEP.. In your case, the OBJNR would be ORXXXXYYYYYYYYYYY, where OR means Order, XXXX = Contr Area and YYYYYYYY = Int Order No with preceeding zeroes
    Qty is also recorded in COEP
    BR,Ajay M

  • Additional Data On Actual Cost Line Item for Orders. Possible?

    Is it possible to show on display of Actual Cost Line Item for Orders the cost center for both settled and not yet settled? As for now we can only view the cost centers that are already settled. Please see attached file for a snap picture of the display.
    Thank you in advance.

    Hi,
    How this would be possible? If the document is not yet settled, then cost centre is unknown. Of course, it is stored in settlement rule, but no actual posting was done yet.
    Regards,
    Eli

  • How to change line item column order in FV50

    Hi,
    I need to change the line item column order in GL document entry screen. I tried drag and drop but it didn't work for all the columns. Is there a setting I can change for all the users?
    Thanks for the help.

    It does not work for all the column, but those columns that you can change can be fixed. First change the column to the desired sequence, then click on small icon at the right end of the column. When you take the cursor over that corner icon, it displays "configuration".
    There, give a zname and enable set as default. and save.

  • Where does the Remaining quantity of a Sales Order line item reside in CRM

    Hi Experts,
    When a Sales Order from CRM flows to ECC and is partially delivered, it can be observed in the CRM system that the remaining quantity of the line item gets updated.
    In which table does this remaining quantity value reside in CRM ?
    Any pointers/suggestions would be of great help. Points Assured.
    Thanks in Advance,
    Kris

    The remaining quantity info is nowhere available.
    But the delivered quantity info is available in the table CRMD_CUMULATED_I.
    Solved Myself.

Maybe you are looking for

  • How to connect a Apple LED Cinema Display (24") to a PC with an ATI 4850?

    Help!!!! I have a new MacBook Pro and the LED Display just rocks with it, but my PC... how do I connect this MASSIVE investment to my PC with an ATI 4850?

  • Is there a way to create a keyboard shortcut to relink images in Illustrator CS5?

    I know you can in InDesign but doesn't look like it in Illustrator. Anyone know for sure? Thank you!!

  • 2 Mail apps opne when i open Mail 3.0

    I got the shortcut of Mail 3.0 on my dock. however, when i click on it once, 2 of the Mail windows will open at the same time although both are displaying the same thing and they sync on whatever instructions i perform including replying and unread m

  • IPod to iMac  Transfer of Songs

    PROBLEM: I want to transfer all the songs on my iPod to my iMac Computer. It states that you can't do this unless you originally created a folder on the iPod and placed the songs in the folder. Is there any way to work around this so I can put the so

  • An iView in the DTN

    Hello all, In the Dynamic Navigation of a page we embedded an iView. now - the DTN displays a role and below it - our new iView. Is it possible to invert the order so that my iView will be displayed above the role? Thanks for your time. Regards, Adi.