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.. _.

Similar Messages

  • 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 Module Changing Status of ECR

    Hello,
    Is there any function module/ BAPI to change the status of ECR?
    If i take the transaction cc32, click on status button.
    A user has options to do the following Actions
    Check ECR                     
    ECR Checked                 
    Approve ECR                  
    Convert ECR
    Close ECO
    Release ECO
    Reject ECR
    Withdraw Approval
    Order Incomplete
    Order Complete
    Are there any BAPI/FM for Convert ECR/Clode ECO/Release ECO?
    Please help.
    Regards,
    Remi

    Wrote a BDC program that runs cc32n and release ECR

  • To create the follow up transaction automatically on status change in sap crm?

    To create the follow up transaction automatically on status change in sap crm? If yes, how to make the setting for this?

    Hi vishal,
    As per the requirement transaction type is activity(ACTI) & sales order(TA). when the take order objective is complete system automaticaly craete a new activity of tele sales call or metting with wholesaler.
    this is requirement of client.
    now i am already create all type of transaction types of activity & sales order & create follow up transaction also. i have doam already create action profile also but when i am assign this action profile to transaction & try to create an sales order no follow up transaction could be create automatically. i think the condition is not right so please help me out in this. what should be the start & schedulec condition for this scenerio

  • 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 the change access in CRM for OLTP orders

    Hi Guru's,
    Please let me know  how to restrict the change access in CRM for the orders that are created in ECC. The ECC orders will only for display in CRM but not for change,
    We have  the orders that are  created in ECC, it will flows to CRM and should restrict the access to get in to the change mode in CRM but as of now CRM  system is allowing change mode for ECC orders and ending up with errors.
    Is there any additional middleware parameter that needs to be added to SMOFPARSFA table to get this functionality! Please advice! Thank your for your help.
    Regards
    Suneel

    Hi.
    You can use the PFCG role to control if the user is able to create, change, delete or only display a business transaction type.
    Regards.

  • Planning function to change date field value in layout

    Hello experts,
                          I have 1 BPS layout with 2 date fields ( Start date, End date ). With a filter conditions, set of data comes in BPS layout on execution and 2 date fields also contain some value...I want to change values of these 2 dates...both the date fields are char infoobjects..in BPS layout, in planning function I got only 1 function ( Repost function ) to change the value of char infoobject based on some condition. but date field value is not the status field...i want to enter new date instead of old date..if i right exit function in that also i can change only keyfigs values..so please help me to solve this problem..
    Thanks & Regards,
    Priyanka Joshi

    Hi Priyanka,
    As of now master data planning is not so flexibly supported.
    Still u can refer the below link which is enhancement of standard Repost function,and can be used to change master data.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d2b273-0e12-2c10-fab3-a34bde559f92]
    As far as my knowledge goes u cannot directly input date in rows.
    regards,
    Rajendra

  • Using Javascript function to change the value of a request variable

    Have a javascript function that activates onchange within a form variable. Would like the javascript function to change the value of a request variable.
    The javascript function is able to obtain the current value of the request variable ( which is 0 ) however I am unsuccessful in changing the value to 1.
    I have been trying to use the following:
         var vchange = 'request.changes_made = 1 ;' ;
         eval(vchange);
    Any ideas?

    If the user makes a change to the content of the form, and then attempts to leave the form, a javascript alert pops up giving the user the option of cancelling the submit, returning to the form and saving it.
    If there have been no changes, then the user is free to migrate to another page.
    This process is to protect users from losing valuable information but not to annoy them with "R U Sure" messages.
    Knowing the status of the form content is important to the functionality of the application.
    G

  • 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

  • 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"

  • Is there any function to change the width of froms'graphic ?

    Hi All,
    Is there any function to change the width of froms'graphic ?
    May be like set***property.
    Thanks,
    ke xiong

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
    Regard
    Helios

  • Change status on a SC as an administrator

    Hi, Im running on SRM 6.0 and I would like to change status on a SC from staus completed to cancelled, no follow-on-doc has been created. Can I do that as an administrator?
    Best Regards
    Jonas

    Hello
    the standard method without the use of Debbug, such is not possible.
    look at the function BBP_PD_SC_STATUS_CHANGE.
    but the change that status can lead to errors
    Edited by: DAV_999 on Jan 17, 2011 2:29 PM

  • Sort of Change Pointer on CRM

    Hi all,
    I want to send difference value of master and transaction data like ALE Change pointer from CRM to Customer system.
    Can you tell us available function ?
    The IDoc sending mechanism of CRM is different from ALE of R/3. CRM creates Change document. I activated the Change pointer using BD61 and BD50 for message type of CRM(BP). But CRM doesn't create Change pointer record after creating Change document.
    And CRM doesn't have any selective IDoc creating function like BD10. IDoc is created after BDoc process on CRM.
    Is SMD(ALE Change pointer) not available on CRM ?
    Thanks,
    Keiko

    Hi Keiko!
    I don't have access to a CRM system, but you can test your customizing yourself:
    Go to transaction SE37, test function CHANGE_POINTERS_CREATE_DIRECT. Here you fill in your message type and some (random) values for the pointer in table T_CP_DATA.
    There are no syntax checks, just change pointer activation is checked in the function module. See, if an (artificial) CP is created.
    If this is working, go on to function CHANGE_POINTERS_CREATE. Fill in existing change document data, run a test.
    In case no change pointers are created, you can debug these rather small (compared to the 'real' transactions) functions to identify missing / wrong customizing.
    If change pointers can be created, but your transaction still does not create change pointers, then your problem might be the CRM system.
    Regards,
    Christian

  • Replicate System Status to CRM

    Hi,
    we integrated quotation management in CRM and ECC using Scenario A. the quotation is created in CRM and beautifully replicated to R/3. when we create order in R/3 using reference to the quotation, the quotation in the R/3 will have system status "completed" as it should be.
    but somehow, the quotation status in ECC does not replicate back to CRM as we find the quotation status in CRM remains "in process". is there any way i can get it replicated?
    thanks in advance
    JD

    Hi Gunawan,
    how are you doing?
    i have implemented similar notes #1008685 which is relevant for CRM 5.0 and ECC 6. but still no luck yet.
    so what i did i tried making simple change in ECC such as entering PO#, to see if it replicates back to CRM. but the change in fact is not replicated while in data exchange scenario A it's supposed to. i guess to fix this issue i need to solve the replication issue from ECC to CRM.
    regards
    JD

  • 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

Maybe you are looking for

  • How can I use adobe flash player on iPad2

    How can I use adobe flash player on iPad 2?

  • PLC Communicat​ions with Labview

    How do I view and record data from my plc to labview, currently we are using autmation directs DL205 with the 260 processor

  • How do I turn off auto calibration of HP Deskjet 2542?

    I swear this is the biggest scam.  Calibrating a printer should be an OPTION, not something that is done automatically.  But then HP might sell less ink, eh? This is my second HP printer.  The first was pretty much crap.  I was hoping that the second

  • Cannot Import Files Into Logic Pro 7.1!

    I just recieved Logic Pro and I cannot import any files. My goal is to import XML's from FCP and OMF's from FCP. In the file type drop down menu it only lists: MIDI Files OpenTL Files and SysEx Files There is no option for XML or OMF or even AIFF...

  • Lose of license to use quickoffice on my e63

    jeff here,i'm using a nokia e63. I updated my quickoffice from the original version(the one that comes with the handset)to quickoffice premier 6. After some duration,somebody accidentally deleted the quickoffice license,so everytime i try using the a