Use of PRFB in CMOD

Hi All,
Can anybody tell me the use of PRFB in CMOD? If i want to add a new field in the standard transaction screen can i do that using PRFB in CMOD?
As far as i know this is for field validation.
If any body know how to add a new field using this method please help me with the steps.
Sameer.

Hi sameer s,
Please see thread:
about field_exits
[Note 29377 - FAQs: Field exits (CMOD)|https://service.sap.com/sap/support/notes/29377]
Regards
Bruno Xavier.

Similar Messages

  • Security Restriction : Deactivating PRFB in CMOD

    Hi everyone,
    If you use CMOD, and type in PRFB, you will see the "Field Exits for Data Elements"
    Is there a way to deactivate PRFB in CMOD?
    This is for security measurement.
    Thank you.
    Regards,
    Lee

    @ Ashok... Do not do that again!
    Regarding the function codes: If they can be selected, then generally you need to work with the authority-checks available in the called transactions / functions.
    But to hide function codes behind the ok-code which do not have a plausible reason to call an application which has functionally almost nothing to do with the calling application, would in my opinion be a programming error.
    I would report it to SAP via service.sap.com. Whether you use the component area of CMOD or that of VEB9 is up to you
    Cheers,
    Julius

  • Using SAP Exit Variable twice on the same report

    Hello all,
    I need to use the same variable -Current Calendar Day (SAP Exit)- to filter against 2 characteristics on the same report.
    Unfortunately it's not possible, here the error:
    " Variable 0DAT is used in both (structure) element 11T4741S4XTWZUAJ9IQ6DUDE1, and element AZLK9YCS4XGJ940MRPMLXMDS9 for various characteristics (ZCBBIDATE, ZCBPHTDT). This is not permitted as the characteristic is required for the F4 value help structure."
    May you please suggest me a way to do it ? Thanks in advance.

    Hi
    As the 0DAT varaible check the other standard varaible which provides the same function in business content.
    Or create a varaible with Customer exit and use it.
    In CMOD write the code in like this
    WHEN 'ZDAT'
    L_ZDAT = Sy-datum.
    L_S_RANGE-low = L_ZDAT.
    and follow the other codes as you define for other varaibles.
    REgards
    M.A

  • Diffrence B/W CMOD and SMOD

    Hi All
    What are the difference B/W SMOD and CMOD? In which cases we us these different variables? In our system all are in CMOD. Thatu2019s why I need to know the differences.
    Thanks
    Sravani

    Hi
    we can Make enhancements using the transactions SMOD/CMOD  
    CMOD has the project global patterns. If you used transaction SMOD to migrate customer exits, the enhancement projects of the customer that belong to the customer exits must be migrated to implementations of business add-ins, in order to preserve the functionality of the enhancement. After the upgrade, start migration in transaction SPAU via a button.
    Pls chk this links;
    http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7ceb940e11d295df0000e82de14a/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/content.htm
    Dinesh Sharma

  • Private Key Not Found Error in Ldaps

    Hi,
    I am facing "Private Key Not Found" Error in ldaps. The key and the SSL certificate is stored under the same location. The certificate is self signed certificate and in .pem format. When I am trying to install the certifcate through SUN ONE Console it throws the following error
    "Either this certificate is for another server, or this certificate was not requested using this server".
    can any one help me in this regard.
    Regards
    Senthil
    Edited by: senlog80 on Dec 30, 2008 3:18 AM

    Or even better, check the note <a href="https://websmp110.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=924320&_NLANG=E">924320</a>.
    <b>Symptom</b>:
    When you execute a query with virtual characteristics or key figures, the system issues the following error message:
    Object FIELD I_S_DATA-<key figure> not found
    <b>Other terms</b>
    RSR00002, RSR_OLAP_BADI
    <b>Reason and Prerequisites</b>
    This problem is caused by a program error.
    <b>Solution</b>
    If the virtual characteristics or key figures are implemented using the enhancement RSR00002 (CMOD), implement the corrections.
    If the virtual characteristics or key figures were created directly as implementations of the RSR_OLAP_BADI BAdI, compare the source code of the INITIALIZE method with the corresponding source code example. During the call of GET_FIELD_POSITIION_D, <L_S_SK>-VALUE_RETURNNM must be transferred instead of <L_S_SFK>-KYFNM.
    Import Support Package 08 for SAP NetWeaver 2004s BI (BI Patch 08 or SAPKW70008) into your BI system. The Support Package is available when Note 0872280"SAPBINews BI 7.0 Support Package 08", which describes this Support Package in more detail, is released for customers.
    In urgent cases, you can use the correction instructions.
    To provide advance information, the note mentioned above may be available before the Support Package is released. In this case, the short text of the note still contains the words "Preliminary version".
    Assign pts if helpful.

  • Populating the value of Sel Screen Parameter in the Free Characrtistic

    Hi  ,
    The requirement is that we have 2 dates - Touched Date and Created on Date .
    The Touched date is present in the Selection Screen .
    Now we need to use th value entered  for the Touched Date as default value of the created on Date in  the Free Characteristics.
    Please provide inputs on the same .
    Regards
    Edited by: Garima on Dec 10, 2010 4:07 PM

    As you said touched date is present in selection screen, you might be having a manula i/p variable for it. Right?
    Now create a cust exit variable for "created on Date".
    In cmod transaction use the following code to populate values from touched date to created on date.
    when '+Variable name of created on date+'.
        loop at i_t_var_range into lwa_var_rng where vnam = +'variable name of touched date'+.
          lwa_range-low  = lwa_var_rng-low.
          lwa_range-high = lwa_var_rng-high.
          lwa_range-sign = 'I'.
          lwa_range-opt  = 'EQ'.
          append lwa_range to e_t_range.
          clear lwa_range.
        endloop.
    This code u should write inside  if i_step = 2. condition.
    Now the cmod variable of created on date will have the same values of the touched date populated.
    Now u can use the filter as cmod variable of created on date and use created on date in ur free characteristics.
    Hope this helps. Revert back for any queries.
    Rgds,
    Guru

  • Structures and Data

    hello, i have a question. i think i know the answer already just want to make sure with you gurus. someone told me that structures don ot contain data. but i have seen code where people enhance structures that are on LBWE screen. so if they append structure where is the data kept? like i know there are underlying tables like vbap, vbak etc. ok. so the data comes from those tables in structure if i had to append the structures? then what happens? does it then go to setup table? or where does it go and what triggers the data to come into structures from those tables?  please help. thanks.  e.g. structure like MC02_0SGR etc.
    I did some search and found some stuff.so when user hits save button ok it saves the data in database table and also that record will be sent to LBWQ in logistics appalication case. ok. so if i append some structure and do some enhancement on it. let's say i add a field called quantity in it ok, and i do some coding. i bring the record in internal table and say something like MC02_0SGR-Quantity - Internal table-Quantity if some condition meet. ok so then. next time when user saves a record it will go straight to lets say vbak table and the same record will also go to lbwq. am i correct? at the time when user saved the record it didnot have that quantity field calculated because it has not gone through my code yet. right? i am just trying to understand the flow. i don't know if there is any documentation on this or not. can someone help me please? i am confused. thanks guys.
    Edited by: Vik1900 on Jun 13, 2009 2:28 PM

    Hi,
    If you enhance the DS in ECC..
    Eg: I enhanced XYZ- Structure and added ZQty field, and it will fetch the data from ABC Table using some code in CMOD, when users enter the data through some TCODE in ECC, the data wil store in base tables from there using Code we are fetching and extracting into BW. You can see the data in LBWQ/RSA7 in ECC, which contains the data for all fields which are there in Data Source.
    If you want to load data to BW, using setup tables, you must take some down time in ECC and load tha data..
    Steps:
    1. Take down Time in ECC
    2. Delete setup tables in ECC.
    3. Clear RSA7 in ECC, by running V3 job 2/3 times and loading deltas in BW.
    4. Check whethee it is cleared or not in SMQ1 and RSA7.
    5. Fill the setup tables.
    6. Load Init data in  BW.
    7. Set V3 job in ECC and Load deltas in BW.
    Thanks
    Reddy

  • Screen enhancement in ME51N - control is not passing to PBO and PAI of exit

    HI ,
    I am doing screen Exit for the Tcode : Me51N / Me52N.
    I have to add 3 Text fields in item level, i am using Enhancement:MEREQ001(in CMOD).
    Initially i added those 3 fields in Structure CI_EBANDB.
    Then i designed Screen in Screen Exit:SAPLMEGUI Screen Num:111.
    Here in the PBO and PAI Module
    MODULE STATUS_0111 , MODULE USER_COMMAND_0111.
    the control is not going , i tried with break-point inside these modules.
    But while executing ME51N , debugger is not working.
    Code i wrote in both PAI and PBO
    MODULE STATUS_0111 and MODULE USER_COMMAND_0111.
    loop AT SCREEN.
           screen-output = '1'.
           screen-input = '0'.
           MODIFY SCREEN.
    endloop.
    I need to display the three screen in Display format not in editable format.
    Thanks and Regards,
    Prakash K

    Hi
    You need to write the code in PBO of that screen based on TRANSACTION TYPE.
    there is a method call 'get_transaction_state' from this you will get the transaction type (H -  create , 'V'-  change  'B' -display) at run time.
    If run time transaction type = B
      LOOP AT screen.
          IF screen-name eq c_name . "field names
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    endif.

  • Multiple account assignement for PO

    Hi!
    i've this problem about purchase data: to extract these data i'm using 2lis_02_itm and 2lis_02_Scl DS.
    but i need in the same query the account assignement for PO (these data are in EKKN table).
    in a first time i've enhanced the DS, but with Multiple account assignement i don't have correct data (because i've used select single in CMOD).
    now i don't know how to enhance the DS with Multiple account assignement, could you help me ?
    (a solution is doing an ODS with EKKN data and make an infoset with an other ODS with data from LIS extractor, but i prefer to enhance the DS)

    Hi Alex
    You are not able to enhance 2lis_02* datasources to give you the information wanted. The problem is that you need to split one line into multiple lines. I'm as well not sure that you'll get a good result from an infoset as you’ll get performance problems due to the needed join on document , line level and a possible outer join (not all documents will show up in EKKN). A better solution will be to source EKKN to a separate ODS, source 2lis_02* into separate ODS’s and then create a new ODS sourcing data from the 2lis_02* ODS where you read the EKKN ODS in the start routine and uses that info to create extra rows if needed.
    With Kind Regards
    Kristian

  • Field in Append Structure for Generic Datasource

    Hi:
    I created a Generic Datasource based on a view. After that, I created an Append to the Extraction Structure to include a field not originally on the view (and not related to any table in the view) to be calculated using customer exit in CMOD.
    At the moment of activating the Datasource, this new field doesn't appear in the selection window but in RSA6 it shows there with options "Hide Field" and "Field only Known in Customer Exit" checked.
    Again, I try to edit the Datasource but this field is not in the list to change those two checks.
    Any idea?
    Thanks.
    Luis Sales

    Dear Luis Sales,
    I was having the same requirement. I tried it hard for removing the tick mark on the HIDE option. But it was not working at all.
    I tried these steps.
    1. From RSO2 went to Extract structure. Edit Mode-> append structure.
    2. Appended required fields and activated both append structure and extract structure.
    3. Back to datasource and Save it.
    4. Came out of transaction RSO2. ( latter Logged of system )
    5. after re login - RSA6 selected given Datasource and change. there I could change the selection of HIDE field. ( Even earlier I was not able to do that)
    May be these steps help you out.

  • User-exit altering NAST-SPRAS in purchase order

    Hello,
    During purchase order creation, I need to overwrite the communication language of the output NAST-SPRAS. Can you suggest a suitable user exit?
    Regards,
    Ognian

    Hi  Ognian,
       Apologize for the mistake, I had a misunderstood.
      You can use enhancements in transaction CMOD:
      XEXP0001  Selection of Purchase Order Headers and Purchase Order
    XEXP0002  Determine Event Reference Data
    XEXP0003  Subitems Field Catalog
    XEXP0004  Update Event Data for Expediting
    XEXP0005  Determine Event Scenario
    XEXP0006  Event Assignment
    XEXP0007  Field Catalog for Enhancement of Expediting Data
    XEXP0008  Print Status Information for Expediting Object
    XEXP0009  Event Reference Dates at PO Creation
    Kind regards

  • Additional validation for the Start investigation in investigation tab

    Hi all ,
    In health safety->overview -> incidents .
    I want to add additional validation for the start investigation based on the custom field values .
    so that the values in the custom field are not entered it should not allow the user to proceed for the investigation .
    In this case i have displayed an error message and return statement In needs_confirmation_method  method but still unable to stop the process . Please suggest any other method .
    Thanks ,
    Venkat Ratnam Naidu

    You can use these solutions:
    1) use the fields control (CMOD), insert a new rule that if the field is empty action is disabled.
    2) insert a custom validation before the action
    3) modify feederclass to on/off the action

  • Enhancement Spots

    Hi,
    Can any one tell me about enhancement spots?
    What is the difference between the classic BAdI Builder
    and the new one?

    Hi Yamuna,
    Using transactions SMOD and CMOD you can access and implement user exits. BADI serve the same purpose but it is based on OOPS.
    Please refer the following for more information.
    Difference between BADI and user exit - http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
    Re: User Exit / BADI
    http://www.sapfans.com/forums/viewtopic.php?t=172792
    Cheers
    Vinod

  • Custom Exit variable

    Hi ,
    I need to support a Bex report and need to understand the existing custome exit they have for a variable.
    Eg : in the BEx Query, i see they have created a custom variable and used that to automatically get the current month and populate the query.
    I went to BEx change mode and variable Display/change mode but that just gives the details that it is the custome exit and technical n
    Can you please tel me the steps to get to the code level behind it to understand the logic ?
    Thanks.

    Hi Chris,
    to get the what they have written,
    goto T-code   SE38 >>>> Give program name ZXRSRU01  click enter
    It will open a new window which has all the customer exit codes
    For ex:
    case i_vnam.
    when 'VAR1'.
    SOME LOGIC
    WHEN 'VAR2'.
    SOME LOGIC
    WHEN 'VARN'.
    SOME LOGIC.
    END CASE.
    Here var1 var2  and .. varn are the  customer exit variables {techical names].
    When ever user run the query which contains the customer exit it will trigger the above include program and it will trigger respected when logic.
    Do debugging through T-code RSRT  [  give query name [execute + debug } }  in order to understand the logic step by step.
    Note : you can also use the
    T-code CMOD> project >> enhancement RSR00001>>> EXIT_SAPLRRS0_001>>>ZXRSRU01
    to check / to change the customer exit program.
    Regards,
    Ranganath

  • Cost center set-up

    Hello,
       Can anyone let me know if there is any field in the cost center master data to populte the legacy cost center number.
    Aslo , kindly let me know how do we decide the funcational areas to be assigned to cost centers and what kind of reporting does func area provide.
    please let me know.
    Thanks

    There is no specific field to record the legacy cost center in the cost center master data. Said that, one can, however, add additional fields to cost center master data, if it is absolutely critical in the long run.
    To do this, use enhancement COOMKS01 Cost centers: User-defined additional fields in master data record. You can maintain the additional fields on a tab page in the relevant individual processing of the master data. You can use these additional fields to select master data in selection variants for deletion or for list display
    You create additional fields in Customizing (IMG) for Cost Center Accounting. Choose Master Data > Cost Centers > Program Enhancements for Cost Center Master Data .
    For more information on enhancement COOMKS01 see the documentation for the enhancement. You can display this documentation when using the enhancement transaction CMOD by choosing Display SAP doc.
    You may, also want to consider any existing fields to be renamed via CMOD as legacy cost center. These fields could be probably used in evaluation for reporting purpose.
    Functional area are used to classify operating expenses according to functions (for e.g)
    ·         Production
    ·         Admin.
    ·         Sales
    ·         R&D
    Functional area is used in Cost of Sales accounting!

Maybe you are looking for