Code in enhancement

hi,
i have a program  RVTPSC00 from where the FM IDOC_OUTPUT_TPSDLS is called. From there an include LV56IF2D is called.
i am extending the idoc with some segments and want to populate the data in these segments before idoc is sent as outbound. this code was previously existing in an user exit named EXIT_SAPLV56I_004. but now i want to get rid of the user exit and include it based on the  enhancement concept framework. any sugegstions how and where to do this ?
thks

Hi,
Enhancement Framework works only for Business process for which it has been enabled i.e switch framework.
Under Enhance framework you also get the User exits and BAdis so may be you should look at whether for the required fucntionality as per the ehancement Switch framework guide whether you can enable the Activation.
Then also you will have to use the Badi or User Exit.
So hope that you retain the User exit as you are using now.
Hope this helps you.
Help U.N World Food Program by suitably rewarding which would have helped to answer your queries.
Thanks
Venugopal

Similar Messages

  • ABAP code to Enhance Master data

    Hi Friends,
    can  you send me a sample ABAP code to enhance the master data
    Regards
    Hari

    Dear Adluru Hari Varma ,
    Hereunder an example of code to enhance Master Data
    0ART_SALES_ATTR for 0MAT_SALES:
    EXIT_SAPLRSAP_002
    DATA: l_biw_mvke_s LIKE biw_mvke_s,
    l_tabix LIKE sy-tabix,
    v_satnr LIKE mara-satnr.
    CASE i_datasource.
    WHEN '0ART_SALES_ATTR'.
    LOOP AT i_t_data INTO l_biw_mvke_s.
    l_tabix = sy-tabix.
    clear v_satnr.
    SELECT SINGLE satnr FROM MARA INTO v_satnr
    where matnr = l_biw_mvke_s-matnr.
    IF sy-subrc = 0.
    l_biw_mvke_s-zzsatnr = v_satnr.
    ENDIF.
    MODIFY i_t_data FROM l_biw_mvke_s INDEX l_tabix.
    ENDLOOP.
    ENDCASE.
    Also
    the user exit code zxrsau02 to populate the new fields .say you add field zzfield1, user exit code zxrsau02 can be like
    data : l_s_custattr like BIW_KNA1_S,
    l_zzfield1 like tablexyz-fieldabc,
    l_tabix like sy-tabix.
    case i_datasource.
    when '0customer_attr'.
    loop at c_t_data into l_s_custattr.
    l_tabix = sy-tabix.
    fill the new field
    select single fieldabc into l_zzfield1
    where ....
    l_s_custattr-zzfield1 = l_zzfield1.
    modify c_t_data from l_s_custattr index l_tabix.
    endloop.
    take a look some links on enhancement
    Enhancement
    User exit
    and download pdf 'enhancements in sap bw'
    here you can find the steps ...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
    hope this helps.
    Re: enhancements
    Check in SDN you will find more programs
    Hope it helps.Revert back to me if you have any queries
    Regards
    Bala

  • How to pretty printer of a code in enhance framework of a standard FM

    Hi,
           I have written a code in a <b>enhancement point of a standard Function Module</b>. But i am unable to pretty printer that portion of code. Doed any one have any idea how to do that??
    Thanks & Regards,
    Abhishek Sarkar

    Hi,
    Pritty printer gives a pritty view to your code, so that it can be easily readable.
    You can set the functionality of pritty printer by doing some setting.
    The path for setting is
    Utilities>Setting>ABAP Editor-->Pritty Printer.
    Thanks.

  • Abap Code TO ENHANCE DATASOURCE with KEY FIELD OF SOURCE TABLE

    Dear Friends, Please help me to resolve this important issue at my end.
    <b>Requirement</b>:  enhance the STRUCTURAL data source which is
    based on the table VISTSU , now this table has a <b>key INTERNO</b> (Data Element : SECAINTRENO) which i want to enhance in datasource 
    SGONR = STRUCTURAL NUMBER present in extract structure of datasource
    Solution: I am not able to see any records for zzinterno enhance field in datasource rsa3 (Extractor CHECKER). Can u help me correct the ABAP code or tell me the way to pull the records for ZZINTERNO from VISTSU table.
    Thanks
    Poonam Roy
    ABAP Code
    data: l_s_REIS_STRUCTURAL_ATTR like REIS_STRUCTURAL_ATTR.
    case i_datasource.
    WHEN '0STRUCTURAL_ATTR'.
    loop at C_t_data into l_s_REIS_STRUCTURAL_ATTR.
    l_tabix = sy-tabix.
    clear  I_VISTSU .
    select single * from VISTSU  into i_VISTSU  where SG0NR = l_s_REIS_STRUCTURAL_ATTR-SGONR.
    if sy-subrc = 0.
    l_s_REIS_STRUCTURAL_ATTR-ZZINTRENO = I_VISTSU -INTRENO.
    modify C_t_data from l_s_REIS_STRUCTURAL_ATTR index l_tabix.
    endif.
    endloop.
    endcase.

    Try the below code.
    data: l_s_REIS_STRUCTURAL_ATTR like REIS_STRUCTURAL_ATTR.
    data: temp_interno like VISTSU -INTRENO.
    data:  h_tabix LIKE sy-tabix.
    case i_datasource.
    WHEN '0STRUCTURAL_ATTR'.
    loop at C_t_data into l_s_REIS_STRUCTURAL_ATTR.
    MOVE SY-TABIX TO H_TABIX.
    clear temp_interno.
    select single INTERNO from VISTSU into temp_interno where SG0NR = l_s_REIS_STRUCTURAL_ATTR-SGONR.
    if sy-subrc = 0.
    l_s_REIS_STRUCTURAL_ATTR-ZZINTRENO = temp_interno.
    endif.
    modify C_t_data from l_s_REIS_STRUCTURAL_ATTR index H_TABIX.
    ENDLOOP.
    ENDCASE.
    Regards, Siva

  • Need help in ABAP code to Enhance the Extract Structure ?????

    Hi all,
        I want to enhance the extract structure to get KBETR & KBRUE fields of KONP table since it didn’t allow me to add those fields while creating the generic extractor because of currency key problems. I want to read all KONP records into internal table with KNUMH (Key). Next, I want to fill them into ZZKBETR & ZZKBRUE of Extract Structure ZOXUR40065 in loop.
    DATA:
      i_t_zrebate like ZOXUR40065 occurs 0 with header line,
      reb_tabix like sy-tabix.
    TABLES: KONP.
      Could you please help me in completing the ABAP code?
    Thanks,
    Venkat.

    Hello Manga,
        I have included the following code in ZXRSAU01:
    WHEN 'ZREBATE'.
    PERFORM ZREBATE_EXIT TABLES C_T_DATA.
    After Double click on ZREBATE_EXIT on perform statement, it created ZXRSAF01 include and the following code is added in it:
    FORM ZREBATE_EXIT TABLES FP_C_T_DATA STRUCTURE ZOXUR40065.
    DATA:
    i_t_zrebate like ZOXUR40065 occurs 0 with header line,
    reb_tabix like sy-tabix.
    FIELD-SYMBOLS: <l_c_t_data> TYPE ZOXUR40065.
    LOOP AT fp_c_t_data ASSIGNING <l_c_t_data>.
    reb_tabix = sy-tabix.
    select single KBETR KBRUE
    into (<l_c_t_data>-ZZKBETR,
    <l_c_t_data>-ZZKBRUE,
    from KONP
    where KNUMH eq <l_c_t_data>-KNUMH.
    if sy-subrc eq 0.
    MODIFY fp_c_t_data FROM <l_c_t_data> INDEX reb_tabix.
    endif.
    CLEAR:reb_tabix.
    ENDLOOP.
    ENDFORM.
    When I tried to Activate this ZXRSAF01 include, it fails with 'The FORM "ZREBATE_EXIT" does not exist'.
      Should it be FP_C_T  or P_C_T? I found P_C_T in ZXRSAF01 include.
      What is wrong with it, please ?
       Can't I add this whole code in main include ZXRSAU01itself?
      The Extractor ZREBATE is based on KONA, KONH & KONP tables. This Extractor and KONA table have the same 4000 records and KONP has 13000 records. I want to extract KBERT & KBRUE from KONP.
       Thanks in advance.
    Regards,
    Venkat

  • ABAP code to enhance a standard data source

    Hi BW experts,
    I am a novice in BW and I need to append a standard datasource <b>0DAT_SRC</b> with a field <b>FLD1</b> from table <b>TABL1</b>.Extract structure: <b>EX0001</b>.
    Can anybody please suggest how this can be done?I guess it requires some ABAP coding to be done in the conversion exits.
    <b><i>Many,many thanks in advance!!</i></b>

    Following are the steps to enhance Standard Data source.
    1. goto tc RSA6.
    2. Select the Data Source which you want to enhance.
    3. Select display Data Source (Ctr+f2)
    4. Double click on the Extract structure.
    5. click on the Append Structure.
    6. Add the required fieds starting with ZZ*.
    7. Avtivate the Append Structure.
    To populate the data into this field you must have a project created to access the FM 'EXIT_SAPLRSAP_001'.
    to Create Project code goto tcode: CMOD
    1. Enter the Project name and click on create
    2. go to components select the required function module.
    EXIT_SAPLRSAP_001 for Transactional DS (RSR000
    EXIT_SAPLRSAP_002 for Master DS
    Goto SE37 and enter the Respective Function module (ex . EXIT_SAPLRSAP_001) and click on the include zxxxxx. then write the code to populate the extra fields added to the DS.
    Sample code:
    CASE i_datasource.
    WHEN '2LIS_11_VAITM'.
    loop at c_t_data into work_ar.
    do some selections, some calculations ....
    append work_ar to c_t_data. " add a new record
    modify c_t_data from wa. " change the existing record
    endloop.
    endcase.

  • Need ABAP Code to enhance the 0PRODORDER_ATTR?

    I want to enhance the datasource 0PRODORDER_ATTR with the below JCDS Table fields like UDATE,STAT,OBJNR,INACT,CHGNR.
    Can anyone please let me know the ABAP Code need to be written in the CMOD to populate the data for the above fields in the 0PRODORDER_ATTR?

    Hi,
    You can use below code to enhancemnt .
    You need to change the table, structure and field names
    Below code you have to write in tocde CMOD if you are enhancing the master data. It applies for any master data, although, I have taken 0VENDOR_ATTR as the example. I assume that You have already added/appended  the fields in the extract structure of 0VENDOR_ATTR  i.e. to the structure BIW_LFA1_S. ( Check this link for how to enhance the DataSource : https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46 )
    We have enhanced the datasorce for the following two fields from table LFA1:
    ERDAT- Date on which the Record Was Created
    KRAUS - Credit information number.
    We have also enhaced the structure for the following fields from table LFB1.
    MINDK - Minority Indicators
    ZTERM - Terms of payment key
    CERDT - Certification date.
    Now we will poulate these two fields in the code written in CMOD tcode. Here is the code:
    Go to the tcode CMOD in R3 and select the component EXIT_SAPLRSAP_002. Write this code in INCLUDE ZXLOFU01.
    data : l_t_data like biw_lfa1_s.
    data : l_tabix like sy-tabix.
    CASE i_datasource.
    WHEN '0VENDOR_ATTR'.
        LOOP AT  i_t_data INTO l_t_data.
          l_tabix = sy-tabix.
          CLEAR:  l_t_data-yyerdat,
                 l_t_data-yykraus.
          SELECT SINGLE  erdat kraus FROM lfa1 INTO
              ( l_t_data-yyerdat, l_t_data-yykraus)
                WHERE lifnr EQ l_t_data-lifnr.
          SELECT SINGLE mindk zterm cerdt FROM lfb1 INTO
                  (l_t_data-yymindk, l_t_data-yyzterm, l_t_data-yycerdt)
                  WHERE lifnr = l_t_data-lifnr.
          MODIFY i_t_data FROM l_t_data INDEX l_tabix.
          CLEAR: l_t_data, l_tabix.
        ENDLOOP.
    ENDCASE.
    Labels parameters

  • Code Inspector: Enhancement / Adding own rules?

    Hi All,
    I wonder whether there is a way to add own rules to the Code Inspector.
    With own rules I mean checking the coding against our development guidelines, just two examples:
    1) Before SELECT ... FOR ALL ENTRIES it needs to be checked, whether the internal table is not initial.
    2) No direct table update to SAP tables.
    I locked to SCII. I believe it is not a solution to define a new check variant, since I haven't found the possibility there to add own rules (just naming conventions, searching for characters).
    Thus, I wonder whether there is any user-exit, BAdI etc. I could use - or do I really have to write my own parser - which would be a nightmare (multiple meanings of statements (INSERT can change an internal table or database table - depending on the table / variable given); considering global variables, method parameters etc.).
    Any advise is welcome!
    Best regards
    Lars

    Hi Lars,
    Check the below link to customize SCI as per your requirement.
    http://sapignite.com/enhancement-of-code-inspector/
    <removed by moderator>
    Thanks
    SA
    Edited by: Thomas Zloch on Feb 18, 2011 5:44 PM - please do not beg for points, age old thread by the way

  • Code editor enhancement request

    I would like to be able to do the following in the Code Editor:
    Type in a call to a method that does not exist.
    For example:
    String s = getSomeUnknownMethodResult(5, "foo");The Code Editor would of course highlight this as a semantic error. At this point I would like to be able to type some special keystroke (a la Alt+Enter) and have an empty method generated for me in the current class:
    public String getSomeUnknownMethod(int p0, String p1) {
      return null;
    }Or perhaps a dialog could appear allowing me to customize the call before it's generated: protected instead of public, parameter and return types, parameter names, etc.
    This isn't quite the same as the Extract Method feature, since it's the method call that we're starting from, not the method implementation.

    Sounds reasonable.
    I went ahead and logged an enhancement request for this.

  • Debugging code in Enhancement implementation

    Hi,
       I want to debug code inside an Enhancement-Point and Endenhancement Section. The enhancement point is already implemented.
    When i execute the transaction in Debugging mode, the control does not go inside the code in the implementation. Please give some pointers on this.
    Thanks,
    Lakshmi.

    HI,
    just put a line..
    break-point
    or
    break <USERID>
    and try

  • Enter code in enhancement point

    Hi,
    Please tell me how i can insert code into an enhancement point. My enhancement point is ENHANCEMENT-POINT MM06BF0B_BUCHEN_01 SPOTS ES_SAPMM06B.
    <removed_by_moderator> Thanks.
    Edited by: Julius Bussche on Aug 26, 2008 12:51 PM

    Hi Charles,
    Click on the 'Enhance' button (button lying before the 'check' , 'activate' buttons) of the include MM06BF0B_BUCHEN which contains the enhancement point.
    Then right click on the enhancement point and select Enhancement Implementation -> Create. Give your enhancement implementation a name and description. Provide ur code under the enhancement point. Finally activate the implementaion by clicking on the button having symbol '(Activate symbol) Enhancements'.
    Regards,
    Soumya.

  • Is there a way to create QR codes through Enhanced Datamerge in color rather than black?

    Trying to find a way to create QR codes through the data merge feature in a color other than black. The only way I know to attempt it is to try to give the placeholder a color attribute, but no matter what I try the QR codes generated come in as black. Wondering if there is a way to color them, like you can when you just generate an individual QR code.

    aggieweather,
    See the following post. I think should help out. Thanks!
    Chris C
    Applications Engineering
    National Instruments
    Chris Cilino
    National Instruments
    LabVIEW Product Marketing Manager
    Certified LabVIEW Architect

  • Where to see the code of enhanced field

    Hi experts,
    there is field called ZZEDATU , for 2LIS_12_VCITM i want to see the coding for it where do i see
    Thanks in Advance,
    Nitya

    Hi,
    Thanks for your answers, Resolved my problem
    Thnaks,
    Nitya

  • Dtaa source Enhancement code

    Hi All,
    I am enhancing the DS: 2LIS_11_VAITM with fields EDATU,ZZADATE from VBEP Table.
    Could any body provide me the code for this
    Regards,
    Madhu

    Hi.....
    Check this........
    Data source Enhancement Code Samples
    Data source Enhancement
    Re: writing custom code for enhancing the generic data source
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/302d4b15-5847-2a10-93bb-9c45d9f06b16
    Hope this helps you.......
    Regards,
    Debjani.......

  • Enhancement code to 0cs_om_opa_1

    Hi Guru's,
    I am looking for code to enhance the datasource.
    Fields need to append.
    KDAUF,KDPOS,AUART----AUFK Table
    GWLEN-BGMKOBJ Table
    Aufnr is key for AUFK table and objnr is key for BGMKOBJ table.
    Thanks,
    Rakesh

    Hi,
    The below code should help you to get your field populated.
    Tables: AUFK, BGMKOBJ.
    DATA: L_S_ICORDCST LIKE ICORDCST.
    CASE I_DATASOURCE.
    WHEN '0cs_om_opa_1'.
    LOOP AT C_T_DATA INTO L_S_ICORDCST.
    SELECT SINGLE KDAUF KDPOS AUART FROM AUFK
    INTO (L_S_ICORDCST-ZZKDAUF, L_S_ICORDCST-ZZKDPOS, L_S_ICORDCST-ZZAUART)
    WHERE AUFNR = L_S_ICORDCST-AUFNR.
    SELECT SINGLE GWLEN
    FROM BGMKOBJ
    INTO L_S_ICORDCST-ZZGWLEN
    WHERE OBJNR = L_S_ICORDCST-OBJNR.
    MODIFY C_T_DATA FROM L_S_ICORDCST.
    ENDLOOP.
    Hope this helps
    Regards,
    Akhan

Maybe you are looking for

  • MRP RESULT TABLE

    Hi I am developing a report to display the MRP results collectively. what is the table from which i can get the MRP results like current stock, Purchase requisition and purchsae orders for various time periods. Solai [email protected]

  • Manually register rman backup with oracle database 10g

    Dear All. I want to restore full backup of database. I have not configure flash_recovery_area. how i can manually register full rman backup of database with oracle database 10g.? Please help me. Thanks & Regards Ravi Kumar

  • Backflush error & COGI

    Hi, How to correct the goods issue for materials which have not been issued through backflush? Is the error automatically removed from COGI once the goods issue has been successfully done? Thanks, Nicky

  • How to change admin account name?

    My parents started up my MacBook Pro and gave it a stupid admin account name. I though I knew how to change it, but I still see it in the User list and in the terminal. I read about logging in as root user to change it, but just thought of doing a fa

  • Temporary tablespace and alert log

    If a temporary tablespace is actually filled and users get error when they are running some query, will it be updated in the alert log? Thanks