CRM_ORDER_MAINTAIN  Changing status.

Hi All,
There are many similar posts on the subject which i have mentioned.I went through many of them but i am not able to close the status.Given below is the code which i have done for changing the status for ombudsman complaint and passing it to the FM CRM_ORDER_MAINTAIN .But it is not working.Pls have a look at the code snippet and suggest me any changes
Status:
REFRESH:lt_fieldname.
CLEAR: wa_status,lt_fieldname[].
CLEAR wa_status-ref_handle.
wa_status-ref_guid = lv_guid_header.
wa_status-ref_kind = 'A'.
wa_status-user_stat_proc = 'ZOMBD'.
wa_status-activate = 'X'.
wa_status-status = 'E0006'. " CLOSED status default
INSERT wa_status INTO TABLE lt_status.
CLEAR wa_fieldname.
wa_fieldname-fieldname = 'ACTIVATE'.
wa_fieldname-changeable = 'X'.
INSERT wa_fieldname INTO TABLE lt_fieldname.
CLEAR wa_inputfields.
wa_inputfields-ref_guid = lv_guid_header.
wa_inputfields-ref_kind = 'A'.
wa_inputfields-objectname = 'STATUS'.
wa_inputfields-logical_key = 'E0006ZOMBD'.
wa_inputfields-field_names] = lt_fieldname[.
INSERT wa_inputfields INTO TABLE lt_inputfields.
Then i passed it to the FM and called CRM_ORDER_SAVE and then commit.
When i tested this code ,i fetched guid and transaction number and passed it to BAPI BAPI_BUSPROCESSND_GETDETAILMUL
In the status iwas expecting 'E0006' but it is showing 'E0001' and also i expected status to 'Closed' but it is showing status as 'Received'.
Pls help
Regards
Arya

Hi,
in SE37 you will find a lot of function modules starting with CRM_STATUS*
Maybe one of this will help to solve your issue - maybe CRM_STATUS_CHANGE_INTERN.
Good luck.
Kind regards
Manfred

Similar Messages

  • Change status profile of Service order

    Hi,
    we like to harmonize all status profile of all incident process types  we have in our system. This means we like to create one status profile and assign this to 5 different process types. The problem is, we have in our system round about 20000 incidents and ( open and closed). This incidents have to be migrated. I think we have to change E-Status and Status profile and change documents. Are there any experiences with this task. I found nothing what really works (change status profile) in this time. I checked CRM_STATUS_PROFILE_CHANGE but dosn't work for me.
    Could anyone give some hints how to handle this problem?
    Kind regards Stefan

    Hi Stefan,
    You can try the below code to change the status and status profile
    ls_status_com-ref_guid = lv_guid."document guid
            ls_status_com-ref_kind = 'A'.
            ls_status_com-user_stat_proc = 'CRMACTIV'. " status profile
            ls_status_com-activate = 'X'.
            APPEND ls_status_com TO lt_status_com.
            ls_input_fields-ref_guid = ls_status_com-ref_guid.
            ls_input_fields-ref_kind = 'A'.
            ls_input_fields-objectname = 'STATUS'.
            CONCATENATE ls_status_com-status ls_status_com-user_stat_proc INTO ls_input_fields-logical_key.
            ls_fieldname-fieldname = 'ACTIVATE'.
            INSERT ls_fieldname INTO TABLE ls_input_fields-field_names.
            INSERT ls_input_fields INTO TABLE lt_input_fields.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
            EXPORTING
              it_status         = lt_status_com
            CHANGING
              ct_input_fields   = lt_input_fields
            EXCEPTIONS
              error_occurred    = 1
              document_locked   = 2
              no_change_allowed = 3
              no_authority      = 4
              OTHERS            = 5.
          IF sy-subrc EQ 0.
            INSERT lv_guid INTO TABLE lt_guids.
            CALL FUNCTION 'CRM_ORDER_SAVE'
              EXPORTING
                it_objects_to_save = lt_guids
              EXCEPTIONS
                document_not_saved = 1
                OTHERS             = 2.
            IF sy-subrc IS INITIAL.
              COMMIT WORK AND WAIT.
         endif.
    Best Regards,
    Dharmakasi

  • URGENT: Changing status at Header level in Service Ticket in Webclient

    Hi All
    Please reply ASAP.......
    I am changing status for service ticket in webclient at Header level.
    But at item level system status is not changing.
    Is there any config in CRM where user status or system status is copied from header to item level
    Basically need is to trigger item status when header status is trigerred....
    Can anyone help me in resolving this issue.
    Regards
    Pankaj Vispute

    Thanks Bhanu,
    I solved my problem with your answer.
    Thanks,
    Praveen

  • How to restrict user to change status.

    Dear All,
    we want to restrict users to change the status from set to assign to released status.
    is there any authorization object to restirct user to change status?
    i was trying with object CPRO_DPO Create Project Definition with activity 43 release ,but unable to do so.
    Please do need ful
    Regards
    Ravindra

    Hi Ravi,
    probably you need to create user status profile.
    Use TA BS02 to create status profile
    here you have to add authorization key which needs to be defined in BS52
    use b_user_stat auth object to give profiles in custom roles in PFCG
    Thus you can block access to change status
    Niranjan
    Let me know if it helps
    Points welcome
    Thanks Mathias
    Edited by: Niranjan Dandekar on Apr 2, 2009 1:21 PM
    Edited by: Niranjan Dandekar on Apr 2, 2009 1:21 PM

  • Changing Status of preceeding document in CHARM

    Hi Experts ,
    I need to change the status of a preceeding document in CHARM.
    I created a YDAD document from YDCR.
    When i change status of YDAD to cancelled i need to change status of YDCR to Cancelled.
    Steps i followed :
    1 . While changing status of YDAD to cancelled i added a new parameter PREDOC_STATUS and given status of YDCR as E0009.
    2. In "Assign actions" for  status "cancelled" of YDAD i hve given a action SET_PREDOC .
    3.In  "Specify Status Attributes"  for  status "cancelled" of YDAD  i hve given YDCR  YDCRHEAD  E0009.
    But still it is not working . Please help me on this .
    Thanks , Vijay

    Hello,
    please take a look to this Re: Change status of previous document
    If solution is not provided; please put break points as stated lines and tell us what you see
    Regards
    Khalil

  • Change status(Active/Inactive) of file adapter by the external command

    Hi, all.
      Is it possible to change status(Active/Inactive) of file adapter by the external command?
      Let's say, like
      "$ switch_file_adapter_status.sh <File Adapter name> <active|inactive>"
    or something like that.
      Actually, we have the following requirement for the file adapter.
      For example, we have many "file adapter to R/3" scenarios and we only want to allow data transfer between 9:00 a.m. to 9:00 p.m.(R/3 service time).
      In order to achieve this requirement, one option would be to switch file adapter status between active and inactive by external command line.
    And this command will be controlled by the job scheduler(like Tivoli).
      Does XI(3.0 or above) have this kind of feature?
      Best Regards.

    Hi,
    I don't think that this is possible.
    But one Solution for your problem could be a job on xi who execute the Queue.
    So that Adapter work the hole time and send the Message to XI Queue which process them not automatically.
    And the XI Queue you can trigger with a Job like normal R/3 Jobs.
    Hope that helps,
    Regards,
    Robin

  • Service Request disappears from the list of My Service Requests after changing status to In process

    Service Request disappears from the list of My Service Requests after changing status to In process
    Incident manager (resp.) > Agent Dashboard

    Hi,
    As far as I know, this is a new feedback, Please vote this customer voice, here is the link:
    http://feedback.azure.com/forums/216926-service-bus/suggestions/6062851-batching-in-rest-api, or create a new voice at azure feedback forum:
    http://feedback.azure.com/forums/34192--general-feedback
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • In Firefox 2.0+ you can go to Advanced JavaScript Settings and check a box to allow scripts to change status bar text. How do I do this is Firefox 10.0.1?

    In Firefox 2.0+ you can go to Advanced JavaScript Settings and check a box to allow scripts to change status bar text. How do I do this is Firefox 10.0.1?

    Two items in the Advanced JavaScript window were removed as of the Firefox 4.0 version, but they are still available thru about:config .
    Type '''about:config''' in the URL bar and hit Enter. <br />
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''dom.disable_window_status_change''' = double-click to toggle to '''false''' to allow websites to mess with status text.

  • Change status from active to inactive

    Hi Experts,
    How can I change status from active to inactive for the InfoCube?
    Thank you

    You can deactivate a cube by deactivating one of the infoobject in it:
    select one of the char in the cube
    menu option Extras/Unlock infoobjects
    The system will offer you to delete the cube content.
    If you agreed, the cube becomes inactive.
    Please assign if helpful

  • Change status notification for PM (update to 'NTBC' status)

    Hi everyone, i'm still newbie to using BAPI and BDC and i need your help. My problem is when i change status notification to NTBC using function module <b>'STATUS_CHANGE_EXTERN'</b>, this fm change status successfully but bypass validation to malfunction date and time, i want to save this error to my message log. Is there another BAPI that change status notification but also validate malfunction date and time (this validation arise when change status to NTBC only) ? Thank you
    Regards,
    Satria B

    TRY THIS FM "STATUS_CHANGE_INTERN"

  • Function to change status of the STS (Status and Tracking System)

    Hi experts,
    do you know a way to execute a function that changes status in the STS hierarchy?
    We have a web interface with a BPS layout in it, and want to change the status of the STS according to the legal entity that has been changed as soon as a user clicks on a button.
    Do you know a way (function or sth else) to do that?
    Any hint will be greatly appreciated!
    Thanks in advance,
    Thomas

    Have a look to these badis: CRM_ORDER_AUTH_CHECK (for authorization purposes), and CRM_ORDER_SAVE (To check the changes at save).

  • Function to change status in CRM.

    Hi..
    Let me introduce myself, my name is Daniel.
    I'm developing an application based on .Net & ABAP (CRM) & i'm getting problems.
    Do you know the function to change status, where that function can be called out from program?
    This time i've tried 2 functions :
    ZISA_STATUS_CHANGE_N_SAVEDOC
    CRM_STATUS_CHANGE_INTERN_OW'
    Those functions works if i run inside program, but if i build another program for calling that program (run those functions), the functions will not be worked.
    Is there any somebody help me to find out the functions?
    Thx so much..

    IF NOT gt_obj_guids[] IS initial.
        CALL FUNCTION 'CRM_ORDER_SAVE'
          EXPORTING
            it_objects_to_save = gt_obj_guids
          IMPORTING
            et_saved_objects   = gt_saved_objects.
        read table gt_saved_objects into saved_object index 1.
        OBJECT_ID = saved_object-object_id.
        COMMIT WORK.
    Like a line a code above, i have put a commit work. But it still can't work well.
    But, btw.. Is BAPI Commit that you mention before same with i mention in my code?
    I need your suggestion.. _.

  • Getting Changed [Status] rows between multiple rows in SQL Server 2012 based on MonthYear Field

    I am trying create Stored Proc which takes 2 inputs from user  @PreviousMonthYear,@CurrentMonthYear
    Below is my table schema.[TableIPPortStatus]
    Such 1000's of rows will be available in TableIPPortStatus for every IP Port combination for every Scan. Stored Proc will take input as @PreviousMonthYear = 'Jan-2013' and @CurrentMonthYear = 'Feb-2013'
    Expected stored proc o/p is to get changed status in @CurrentMonthYear rows compared with the same IP/Port combination from @PreviousMonthYear rows. so for for above e.g. expecting to get below result.
    Since in Scan 2222 Port 80 of IP 1.0.0.0 got closed & Port 80 of IP 1.0.0.1 got open and for 1.0.0.2 status was unchanged.
    Also, if any new IPPort combination is added in Feb-2013 that needs to make available in the output.
    Please suggest way to accomplish this in SQL. Thanks in Advance!

    DId you try this? ACtually you dont even need prevmonthyear parameter. you can simply get result using single parameter
    If its sql 2012 this is very easy
    DECLARE @CurrentMonthYear varchar(30)
    SET @CurrentMonthYear = 'Feb-2013'
    SELECT ScanId,MonthYear,IP,Port,Status
    FROM
    SELECT *,
    LAG(Status,1,'') OVER (PARTITION BY IP,Port ORDER BY CAST('01-' + MonthYear AS datetime)) AS PrevStatus
    FROM Table
    )t
    WHERE PrevStatus <> Status
    And if its sql 2008 or below
    DECLARE @CurrentMonthYear varchar(30)
    SET @CurrentMonthYear = 'Feb-2013'
    ;With CTE
    AS
    SELECT *,
    ROW_NUMBER() OVER (PARTITION BY IP,Port ORDER BY CAST('01-' + MonthYear AS datetime)) AS Seq
    FROM Table
    WHERE MonthYear = @CurrentMonthYear
    )t
    SELECT c1.*
    FROM CTE c1
    LEFT JOIN CTE c2
    ON c2.IP = c1.IP
    AND c2.Port = c1.Port
    AND c2.Seq = c1.Seq - 1
    WHERE c2.Status <> c1.Status
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Change status of workitem in his method (ABAP OO)

    Hello!
    I have class Z_TTT with implementation IF_WORKFLOW. And I have method DISPLAY of this class.
    This method executing in task.
    How can I change status of this task inside method DISPLAY thus task not to be completed after executing.
    (In BOR I could use SAP_WAPI_SET_WORKITEM_STATUS (to ready) and then exit_cancelled.)
    How in ABAP OO?

    Thanks a million. Didn't know that    I'll edit my post, that it's more correct.
    In the method definition you declare the Exception class CX_BO_ACTION_CANCELLED to be thrown.
    In the method coding you use the following statement to raise the exception.
    RAISE EXCEPTION TYPE cx_bo_Action_Cancelled.

  • How to change status icons in Kopete?

    Default icons are really bad. There is an option to change smilies, but I can't find the option how to change status icons (online, offline, etc.).

    I think you'll have better chance of getting an answer for this on forum.kde.org.
    Or you could search KDElook for special kopete icons...

Maybe you are looking for

  • Adding a new stage to UAR Workflow

    Hello Colleagues, Wonder whether you can provide some guidance on something I am struggling with. I simply want to add an additional stage to GRAC_USER_ACCESS_REVIEW workflow to pass the request back to the Security Team once it is approved by the ro

  • After Saving File get Message "Could not find the included template"

    I have a strange issue going on and it's becoming very, very annoying.  When I edit a file on our web server (it's a virtual machine running Windows Server 2008) and then try to view it in my browser, I get the error message "Could not find the inclu

  • Missing navigation buttons

    When I started my computer this morning, all the navigation buttons, home, bookmarks, reload etc. are missing from the toolbar at the top of the FF screen. The 'Restoring Default Toolbar set' option does not work because right clicking does not open

  • Create a DocumentReference in GW8

    Hello I try to switch our dev (VBscrit, VB6 and .Net) from GW 6.5/7.03 to GW 8.0.0 I have got a bug Here is my code whitch work fine before GW 8.0 path = "C:\somefile.txt" set DocNew = MyLibrary.documents.Add(Path,"Document") Set MailObjRef = MyAccou

  • HT1414 Can't open web links due to to many redirects

    I am getting a message at times that says safari cannot view a link due to too many redirects