How to change the Partner function code in Quotation

Hi All,
We have a requirement that whenever a Quote is cancelled,
We need to change one of the function codes in the partner tab and also the user status should be changed.
Can anyone give a quick solution on this?
Your response will be appreciated.
Thanks in advance.
Regards,
Ramya

You will best implement this as an action (tx. SPPFCADM), which is called on changing the status to cancelled. In this action you can call a function module changing the partner functions using e.g. CRM_ORDER_MAINTAIN as the appropriate function module.
Regards, Kai

Similar Messages

  • How to get the partner function code by partner function?

    For example, I need to know the partner function code for 'Reported By' and it's 'SLFN0002', How can I get this information by abap code?
    Best regards,

    Hey Blake,
    You can look up CRMC_PARTNER_FT( Db table ) which is used in the above  maintainance view...
    Use select stmt to populate an internal table.. then use Read Table( which key DESCRIPTION = < Sold to party > and so on...
    Just Get an Abaper and things would be easy..
    Reward points for usefull posts..
    Regards,
    Anand

  • How to change the Callback function of a GUI button?

    I would like to change the callback function associated with a GUI button dynamically in the programming way.
    Here is the code piece I tried, but it does not seem to work:
    const char* pstrLabelSaveJpeg = "SaveJpegCb";
    SetCtrlAttribute(pahel_id, ctrl_id ,ATTR_LABEL_TEXT, pstrLabelSaveJpeg);
    int CVICALLBACK SaveJpegCb(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
    Solved!
    Go to Solution.

    The attribute you used is about the "label" of the button.
    It is just an appearence attribute. You can write your own name on it, but that does not change the callback function.
    You should change the ATTR_CALLBACK_FUNCTION_POINTER attribute, and you should not pass the function name as a string.
    So your function call will look like this:
    SetCtrlAttribute(pahel_id, ctrl_id, ATTR_CALLBACK_FUNCTION_POINTER, SaveJpegCb);
    Of course, you have to declare the SaveJpegCb function somewhere above that line.
    I think you have already done that.
    S. Eren BALCI
    www.aselsan.com.tr

  • How to get the Partner Function of the corresponding index

    Hi experts,
    We have a requirement where in we need to fetch the corresponding partner function(PARTNER_FCT value) , when we click on the value help icon of a Partner_No_descr field of the component BTPARTNER.
    For eg:- When we click on the value help icon of second entry in the assignment block 'parties involved',
    we should fetch the Partner Function (PARTNER_FCT)value of the second entry.
    We tried using the GET_CURRENT ( ) ,GET_BY_INDEX ( ) etc method , but to no avail.
    Any helpful pointers would be rewarded.
    Kindly help.

    This thread remains closed.

  • How to change the Partner in Service Order

    Dear Experts,
      I am working in SAP CRM 5.0.I want to change the Partners of Service Order Using the Function Module 'BAPI_ACTIVITYCRM_CHANGEMULTI'.Can anyone give me the Sample code for Changing the Partners.It is very Urgent Requirement.Please help me.
    Thanks & Regards,
    Ashok.

    Hi,
        Following is the code for changing partner: Please go through it:
    "fill the details of partner which is
              "to be added as main partner or in place of Interaction Agent
              wa_partner_new-ref_guid = w_guid_ref.
              wa_partner_new-ref_handle = '0000000000'.
              wa_partner_new-ref_kind = 'A'.
              wa_partner_new-kind_of_entry = wa_partner-kind_of_entry.
              wa_partner_new-ref_partner_handle = '0000'.
              wa_partner_new-ref_partner_fct = 'Z_IA'. "
              wa_partner_new-ref_partner_no = wa_partner-partner_no.
              wa_partner_new-ref_no_type = wa_partner-ref_no_type.
              wa_partner_new-ref_display_type = wa_partner-ref_display_type.
              wa_partner_new-display_type = 'BP'.
              wa_partner_new-no_type = 'BP'.
              wa_partner_new-partner_fct = 'Z_IA'.
              wa_partner_new-partner_no = w_partner_no.
              wa_partner_new-mainpartner = 'X'.
              INSERT wa_partner_new INTO TABLE it_partner_new.
              wa_partner_newx-display_type = 'X'.
              wa_partner_newx-no_type = 'X'.
              wa_partner_newx-partner_fct = 'X'.
              wa_partner_newx-partner_no = 'X'.
              wa_partner_newx-mainpartner = 'X'.
              INSERT wa_partner_newx INTO TABLE it_partner_newx.
               IF it_partner_new[] IS NOT INITIAL AND it_partner_newx[] IS NOT INITIAL.
        "maintain all changes to be done
        CALL FUNCTION 'BAPI_ACTIVITYCRM_CHANGEMULTI'
          TABLES
            partner  = it_partner_new
            partnerx = it_partner_newx.
        CLEAR : wa_guid1.
        REFRESH : it_guid1.
        wa_guid1-guid = w_guid_ref.
        APPEND wa_guid1 TO it_guid1.
        "save the changes
        CALL FUNCTION 'BAPI_ACTIVITYCRM_SAVE'
          TABLES
            objects_to_save = it_guid1.
        "commit the transaction
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    Please reply if anything else os required.
    Please reward points if useful.
    Regards,
    Ashlesha

  • How to track the standard function code eg. PRI

    Dear All,
    I have a requirement that says that I will execute a report. Now when the user will click on the print button may be customized or can be taken from menu (Standard PRI) I want to update a table when the printout has been taken. I am not able to track down the print functionality through AT USER-COMMAND. Can anyone please help me out.
    Thanks and regards,
    Atanu

    open the standard program in se80
    check the standard menu items in GUI status.
    check the function code there..
    regards.
    santhosh reddy

  • How to trap the two function code in the bdc

    Dear All,
    I have a bdc program now i need to pick up function code based on some condition. means if some condition then goto one function code and else don't go. I tried it but not working. It is working in shdb but not in the program.
    eg.
        if not zcontract_no is initial.
           perform bdc_dynpro using 'SAPMZW_CREATE_SALES_ORDER_STD'
                                    '9000'.
           perform bdc_field using 'BDC_CURSOR'
                                        'P_CONTRACT'.
            perform bdc_field using 'BDC_OKCODE'
                                    <b>'=COPY'.</b>
          endif.
    perform bdc_field using 'BDC_OKCODE'
                                    <b>'=SUBMIT'</b>.
    Please suggest.
    Regds,
    Anup

    Hi ,
        In your second case u r not specifying the BDC DYNPRO screen number , your code should be
    if not zcontract_no is initial.
    perform bdc_field using 'BDC_OKCODE'
    '=COPY'.
    else..
    perform bdc_field using 'BDC_OKCODE'
    '=SUBMIT'.
    endif.
    Kunal

  • User exit to change the partner function in VA02

    Hi experts,
    I have a requirement to increment Volume field value everytime when the end customer ( partner function) is modified  at header and item level.
    Can you suggest some exits ?
    PLease suggest

    Hi
    Try with the following exits.
    EXIT_SAPLV46H_002
    EXIT_SAPLV46H_001
    Thank you,
    Sekhar.

  • Qosmio G20: How to change the DVD region code?

    My DVD is locked into region 1 is there anyway to fix this because I need it to be on region 2.
    I have been using it on the correct region which is 2 but for some unknown reason it has locked onto region 1 not allowing me to make any changes.

    Jeffrey speaks well.
    However, you must to right click My Computer -> property -> hardware -> device manager ->
    dvd/cdrom drivers -> double/click your drive -> dvd region/tab and if you have some
    remained possibilities, you can choose region 2.
    Bye

  • How to change the vendor code of site in SAP IS retail

    Dear All,
    In SAP IS Retail, At the time of site creation. we create Site Customer & Site Vendor with site creation. For example If Site code is "1228" then the Customer Code of site will be "C1228" & Vendor Code for site will be "V1228". If by mistake I entered wrong Vendor/customer code then how I can correct it ? "WB02" is not the doing it.
    So my questions is How to change the vendor/Customer code of a site in SAP IS retail ? Which T-Code which be required for it ? Please explain me the steps for doing it.
    Regards
    Birender

    Hello Rajat,
    Please provide us more information about the error you have and it's description so that we can help here arounfd here.
    thanks
    Willie

  • Bapi's or function modules to create, change( delete) partner functions

    Hi,
       Can anyone suggest BAPI or Function Modules for creating , changing the Partner Functions of the customer
    eg: To create customer XYZ as  bill-to-party of customer ZYX , i need  either a BAPI or Function Module.
    Thanks in Advance,
    Sabu

    Hi The following are the BAPI's to create and change the Partner Function.
    BAPI_BUS2001_PARTNER_CHANGE_M
    BAPI_BUS2001_PARTNER_CREATE_M
    Regards
    Vijay

  • I don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    i don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • How to change the profile value in the pl/sql code without making change in the database

    How to change the profile value in the pl/sql code without making change in the database.

    I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
    if these Profiles are set for the user running this program automatic printing should not be done.

  • How to Change the Alias name for Internet user in SU01 tr code through cod?

    Hi Guys,
                 My req is we have to change the Alias name(SU01 tr code) for the existing users thru code.So can anybody tell me how to change the Alias name like which we do it in SU01 tr code thru code or FM.?
                Is there any FM for tha changing Alias Name?
    Thanks,
    Gopi.

    Hello Gopi Anne ,
                                 You can use the following FM / BAPI :
    BAPI_USER_CHANGE
    MY_BAPI_USER_CHANGE
    For BAPI_USER_CHANGE :
    You need to make use of the IMPORT parameter :
    ALIAS     TYPE     BAPIALIAS                               User Name Alias
    ALIASX     LIKE     BAPIALIASX                               User alias change flag
    Thanks,
    Greetson

  • How to get access to the partner Functions of a PO header in BADI

    Hi All,
    I have a scenario where I need to get access to the PO Header Partner Functions to get the Vendor number, in the PROCESS_ITEM method of BADI ME_PROCESS_PO_CUST. I could not find any method to get the partner functions. Is there any way I can get this data in my BADI implementation. I'm talking about ME21n transaction code, and the PO is not created yet, hence the PO number is not available in the BADI.
    If the above is not possible, is there any other function module which I can call in the PROCESS_ITEM method of the BADI to get partner functions and their respective vendor numbers.
    Any pointers would be appreciated and points awarded. Thanks for your time and help.

    Hello,
    Use the methods of the class: CL_PO_ITEM_HANDLE_MM, in the method: PROCESS_ITEM of the badi:
    ME_PROCESS_PO_CUST, for example to access the po lines. the code is as follows:
    data: it_mepoitem type mepoitem.
    **Get the po lines.
      it_mepoitem = im_item->get_data( ).
    To look at the methods available: Go to SE24, Input the class:
    CL_PO_ITEM_HANDLE_MM
    Hope this helps.
    PS: Award points if my answer is helpful.
    Rajeev

Maybe you are looking for

  • Can I deploy the IDS applications to Weblogic?

    Can I deploy the IDS(Form 10g) applications to Weblogic? thanks!

  • [SOLVED] is the fsck hook needed if the systemd hook is present?

    Hiya. The Wiki isn't really clear about this. There are some instructions about building a systemd based init image here, but nothing about fsck. On the silent boot page there is a entry about fsck , more specifically letting systemd check the filesy

  • Business Objects Auditing Database

    Hi, Is there any way to filter events in the auditing database for a particular user, so that these events are not written to the audit database? Also, in terms of the management of the auditing database, i.e. purging old data, truncating, setting co

  • Photosmart c4599 is stuck on align cartridge

    My Photosmart C4599 is stuck on align cartridges.  I've turned it off and unplugged it from the computer and the outlet several times (as the HP print doctor has recommended this).  I can't get the display window to move from the screen telling me to

  • ¿Como agrego botones a la barra de herrramientas?

    En Adobe Reader ¿Como puedo agregar más botones en la barra de Herramientas? Ya que se pierde tiempo utilizando el botón derecho del mouse y buscando el botón en las ventanas emergentes. Muchas gracias.