CRM_MKTPL BADI

We have couple of custom fields (added by EEWB) at Marketing Plan and Campaign level.
Few custom fields on Marketing Plan level need to be inherited and greyed out at Campaign level.
I am not able to figure out which method in CRM_MKTPL badi should be used (for inherit and grey out).
Which method will have details about Marketing plan (parent) as well as Campaign (child) custom field data?
Thanks
Message was edited by: Jitendra dagur

You should be able to use Check_Attribute & Set_Attribute. Check attribute is called each time information is fetched of a particular marketing plan object. Set attribute is called whenever you try to save something for a marketing plan object.
You should be able to fetch all info about child & parent objects even if they are not available directly.
Hope this helps.
Regards,
Kaushal

Similar Messages

  • Checking Campaing Status

    Hi everyone, I need some help, I´m trying to save some campaign information in a structure when the campaing has the  status "Released", But I´m not really sure what method to use , I'm using CRM_MKTPL badi 's method CHECK_ATTRIBUTES , part of code:
    method IF_EX_CRM_MKTPL~CHECK_ATTRIBUTES .
          DATA:   PROMO TYPE linea_camp,
                  lt_status TYPE CRMT_JEST_BUF_TAB ,
                  wa LIKE LINE OF lt_status,
                  Estatus(5) type C.             
          DATA: lt_header TYPE CRMT_JEST_BUF_TAB.
          CALL FUNCTION 'CRM_STATUS_READ'
              EXPORTING
                CLIENT                 = SY-MANDT
                OBJNR                  = IM_MKTELEMENT-GUID
               ONLY_ACTIVE            = 'X'
              IMPORTING
                ET_JEST_BUF            =  lt_status
             EXCEPTIONS
               OBJECT_NOT_FOUND       = 1
               OTHERS                 = 2  .
            IF SY-SUBRC = 0.
              READ TABLE lt_status into wa
              WITH KEY mandt = sy-mandt
                       INACT = ' '.
              Estatus  =  wa-stat.
            ENDIF.
    if Estatus = 'I1004' .
    Here I want to fill the structure.
    endif
    endmethod.
    could give me some advices, please i´m new in this thing and it is driving me crazy.
    Message was edited by: Ali Sanchez

    Please check the BADI 'CRM_CAMPAIGN_BADI'.It has got methods like CHECK_CAMPAIGNS,CHECK_CAMPAIGN_EXT etc.
    If its not useful then I would even look at the BADI 'CRM_MKT_EXP_CAMP_DAT'.
    Thanks,
    Thirumala.

  • BADI for PRODUCT tab in CRM_MKTPL

    Hi,
    we have to control the entered products and maybe delete after this check in Product tab in transaction <b>CRM_MKTPL</b> - trade promotion.
    I need a BADI when the products are entered in this tab. I find the badi definitions like <b>PRODUCT_ID_R3_ADJUST</b>,  <b>COM_PRD_ECM_ACTIVE</b>, <b>COM_PRODUCT_ADD_DATA</b> but implementation can't created for these definitions, the error message returned like this <b>"BAdI definition COM_PRODUCT_ADD_DATA is only provided for SAP internal use"</b>.
    Is there any BADI that controls the entered products? Or is there any other way to control the products??
    I need an urgent help

    yes..you can use  above Badi..
    check this thread for sample..
    Re: New tab and it's updation in VL31n

  • BADI CRM_MKTPL and Status Change button! (Hide the standard system status)

    Hello,
    In transaction CRM_MKTPL, i need to delete some status that appears when i click on button Change status.
    I am trying to use the BADI: CRM_MKTPL using the method 'GET_DROPDOWNBOX_VALUE', but i didn't get what i
    want because this method is only valid (i think) for Listboxes for a field and not for a button, that is my
    requirement.
    Also i am trying to use the method 'p_fill_dropdown_listbox', but i don't know how to use this, and where, in
    whick part of the BADI CRM_MKTPL.
    I want to hide the standard system status in the dropdown list.
    Any ideas?
    Thanks in advance
    Best regards
    Message was edited by:
            yukimai maio

    just check in your badi there is any option is there for menu area customization or not in the implementation you can find attribute,interface ,subscreen like tab there check any menu area tab is there or not.. if it is not there then try for any menu exit and lastly you can try for transaction variant tcode SHD0.
    regards
    shiba dutta

  • BADI CRM_MKTPL

    Hi,
    In transaction CRM_MKTPL - Marketing Planner I need to set by default the field Profile (CRM_JSTO-STSMA).
    I'm trying to use the method MODIFY_FIELD_ATTR in the badi CRM_MKTPL.
    But.... i'm a bit confused.
    Has someone already done this kind of thing? Can someone help me understand a bit more this method on this BADI?
    Thanks a lot.
    BR

    Hi,
    Arjun Pawar. Can you show me an example how did you used the BADI CRM_MKTPL to defaulting the value of status profile please???
    Is really what i need.
    Thanks in advance
    BR

  • Userexit/BAdi to run custom code on "Save" in CRM_MKTPL

    Hi,
    I am trying to identify a userexit or BAdi I can use to run some custom code during the SAVE event of the CRM_MKTPL transaction.
    My background is mainly with ECC and I have no experience doing this in CRM. What steps are required to achieve this?
    Thanks,
    Will

    Hello
    I can see it by entering SE18-> Badi Name CRM_MKTPL_OL_OBJ -> Open the dropdown in the left hand pane and choose "Interface".
    How did I find it? Experience, I had a similar issue, but didn't remember the name, so I went to SE18, open the matchcode and chose "information system". Since transaction CRM_MKTPL belongs to package CRM_MKTPL, I enter this as a search criteria. I found 10 hits, but only CRM_MKTPL_OL* ones sounded right to me. A little navigation and...voilà!
    Sometimes, you can also run report SNIF, but it didn't help in this case.
    Regards
    Joaquin

  • BADI for CRM_MKTPL

    Hi everyone,
    I want a BADI for transaction CRM_MKTPL that, when I push save bottom execute the BADI. I try with others interfaces (IF_EX_CRM_MKTPL) but they have many methods and they execute many times quen push "SAVE" (I want that only execute one time, becase y want to do an insert into a Z-table)
    Thanks

    I ran the crmd_mktpl application in PCUI which has a save exit but never found it in the GUI.
    How did you solve this one?

  • Userexit, Badi, ... for the SAP Solution Manager: SOLAR02

    Dear community,
    i need to find a badi or a userexit for the SAP SolutionManager in the transaction code SOLAR02. I have no idea how to find theses things on my own. Has anyone an idea or can give me an advice how to find them or which Badi I can use?
    Many thanks in advance.
    Christian

    Dear ALL,
      I have got he table ARCDEL_OBJ ( Control Table for Archiving / Deletion) table I guess in this table  the archiving objects will be stored.
    The objects i got in this table are
    CA_BUPA
    CMS_PRJASM
    CRM_ACT_ON
    CRM_COMP
    CRM_IPMCON
    CRM_IPMPUC
    CRM_IPMSAC
    CRM_LEAD
    CRM_LEAS
    CRM_MKTPL
    CRM_MKTSC
    CRM_OPPT
    CRM_RAGR
    CRM_SACONT
    CRM_SALDOC
    CRM_SDBPBL
    CRM_SDBSOL
    CRM_SERORD
    CRM_SRCONT
    CRM_SRVCON
    CRM_SUR
    CRM_UBBPOL
    CRM_WTYCLM
    PRODUCT_MD
    CAN I ARCHIVE ALL THESE OBJECTS OR WHICH OBJECT HAS TO TO BE ARCHIVED IN THIS..............?????
    PLEASE LET ME KNOW THE  IMPACT OF ARCHIVING THESE OBJECTS.
    Regards,
    umesh

  • Reading dates in asic sata tab of CRM_MKTPL

    Hi, I enter the plan start date and plan end date in basic data tab of CRM_MKTPL and I want to use this data in Key Figures tab. In Key Figures tab, we use a badi that is copied from the CRM_MKTPL_COND_IF definition, we use the method COND_READ_AFTER_GET. How can I get the plan start date and end date in this badi?
    Thanks..

    Hi YGG,
    It would of help if you would of specified the CRM Release you are running on.
    Since you are using SAP Gui transaction CRM_MKTPL I assum you are using either 3.0 or 4.0.
    In both cases you can use FM <b>MKT_ELEMENT_READ</b> where you pass in the Guid of your mkt project and look back the exporting parameter. For example for a campaign you will look at exporting paremeter <b>EX_CAMPAIGN</b> (field <b>PLANSTART & PLANFINISH</b>)
    Sincerely,
    Alain Gauthier

  • CRM_MKTPL System and User Status coding

    In Market Planner (CRM_MKTPL) you can change system status (this is different from other areas of CRM)
    I've set up a status profile with system status.
    I've coded a BADI CRM_MKTPL to make sure users can only pick system status.
    But how (in the BADI) can I change the system status (There is a Status_change method in this badi) but I can't see the system status or see how to change it.

    sounds like you only want to show user status and not system status
    In the badi, there is a method status_change
    data: ls_bal_s_msg type          BAL_S_MSG
    if im_user_status is initial AND
         im_check_mode = 'X'.
        ls_bal_s_msg-msgty = 'E'.
        ls_bal_s_msg-msgid = '???'.
        ls_bal_s_msg-msgno = '???'.
        append ls_bal_s_msg to et_return.
        exit.
      endif.
    Where ??? is your own message id and number defined in SE91.  The system never shows the message, but takes the hint that you don't want the system status displayed.

  • Transaction CRM_MKTPL and Profile

    Hi,
    In transaction CRM_MKTPL - Marketing Planner I need to set by default the field Profile (CRM_JSTO-STSMA).
    I'm trying to use the method MODIFY_FIELD_ATTR in the badi CRM_MKTPL.
    But.... i'm a bit confused.
    Has someone already done this kind of thing? Can someone help me understand a bit more this method on this BADI?
    Thanks a lot.
    BR

    Hi,
    Arjun Pawar. Can you show me an example how did you used the BADI CRM_MKTPL to defaulting the value of status profile please???
    Is really what i need.
    Thanks in advance
    BR

  • Is there a badi at deleting a campaign

    I creat a Ztable whose key field is compaign id.  IF a compaign is in the Ztable , the user can delete the campaign in standard TCODE.
    BADI : CRM_MKTPL
    METHOD : STATUS_CHANGE
    METHOD : CHANGE_ICON
    After activing the two methods , the program can be broken in deleting a campaign.
    But i dont like the method names. 
    Is there any good solutions?

    Hi,
    Try these badis
    <b>
    CRM_MKTPL_ALLOC_UI
    CRM_MKTPL_ALLOC_BADI
    CRM_MKTPL_ALRULE</b>
    all these badis are called during deletion process.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • CRM_MKTPL get SALES_ORG data

    Hi,
    I'm creating Trade Promotions from the Marketing Planner and I'm implementing the Badi CRM_MKTPL.
    I cannot find where to get sales area data.
    There is the structure IM_MKTELEMENT I can access from the methods but the fields SALES_ORG, DIS_CHANNEL, DIVISION are not filled.
    Also I know I can make an instance of class CL_CRM_MKTPL_APPL_BASE and from there I can access buying dates but I cannot find sales area data.
    Could you help me?
    Thanks in advance,
    Piercarlo

    We found.
    In the attributes class.
    Bye,
    Piercarlo

  • BADI for changing fields during Creation of BP in CRM

    Hello to everyone,
      I need to find a BADI (or other way) to default several fields during BP creation in CRM (4.0 SR1 SP9). The fields I will like to set are TAX TYPE, TAX NUMBER, TAX CATEGORY, etc.. I have found the BADI BUPA_TAX_UPDATE but i dont see any suitable parameters (structures) to changes these fields. Please advice and thanks in advance.

    Hi
    If you use function BUPA_NUMBERS_GET then your BP number will already be buffered and you can avoid a DB read. It may also be that the BP is not in the DB yet anyway.
    You can only pass one GUID in at a time - loop through IT_CHANGED_INSTANCES into a variable of type BU_PARTNER_GUID and pass that into the function as input parameter IV_PARTNER_GUID.
    Cheers
    Dom

  • Implementing BADI MD_ADD_COL_EZPS for MD04 custom column

    Hi there,
    I'm using BADI MD_ADD_COL_EZPS to display 3 new buttons and three new columns in MD04.
    For each line item that is displayed, the custom column is filled, after the button is hit -This works fine.
    My Question is:
    Is there any way to limit the value that is filled into the new column so that it only appears on the FIRST line item/row?
    (At the moment it is repeated all the way down the page - the new value is a material characteristic, so doesn't change, will always be the same for each line)
    I've looked at all the available structures/tables in the FILL_ADD_COLUMNS method of the BADI, and none seem suitable
    to determine the "first" row. (ie. something like the way SY-TABIX or SY-INDEX might be used)
    Any help appreciated.
    Thanks,
    David.

    Hi Shubhendu,
    in the method 'ACTIVATE_ADD_COLUMNS', you can set the flag EZ1_MODE to '1' to make the first column visible always. (it's been a while, but I think setting it to '2' makes it visible when the button is pressed.)
    Same applies to EZ2_MODE for second column, EZ3_MODE for third.
    look at the flags/parameters in this method, and also in FILL_ADD_COLUMNS, to fill the data.
    here you need to fill structure EMDEZX_USEX1 (for column 1) etc.
    The code is hit for each record displayed in MD04
    Hopefully this helps you.
    Regards,
    David

Maybe you are looking for

  • Cannot login as sysdba

    Hi I am getting the following error while trying to connect DB as sys user. */ora/u01/app/oracle/product/9.2.0.1.0/dbs\> sqlplus / as sysdba*Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ] where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S]

  • Import Not Finding All Files in Folder Tree (which files were missed?)

    I'm a new LR4.1 user running on a 15" Macbook Pro (OS X 10.7.4). I exported my Aperture Library masters: mostly NEF files from Nikon D100, D200, D300, D800 cameras, and also JPG, TIF, and PSD files, etc. Aperture reported this export count:  51285 of

  • Can't select/change layers in main work area

    Been working with PSE11 for a few months.  Yesterday it developed a problem.  I can no longer click on the layer in the main work area but have to go to the layer panel to select it.  What do I need to do to change this back to where it works like it

  • HELP! Songs on iTunes dont show up on my iPod!

    I have songs on my iTunes and on playlists that wont show up on my iPod. I am so confused because songs i get in a group, only 1 or 2 show up. Its quite confusing. Can any one help?

  • What are you ping speeds?

    I am a bigger gamer and as such need connections with the lowest possible ping speed. I am considering changing from my regular broaband where I getting a 5.7MB down / 0.9MB up connection with 12ms on fastpath and 24ms with interleaved. (Getting BT t