Enhacement

Hi All,
Have any body worked on EXIT_SAPLFYTX_USER_001 for changing the out put which is passed to third party to calculate the tax. We found this to change the functionality. If any body worked on this please guide us to achieve this.
Thanks in advance

Hi,
  i have got a code relevant to this ,just check it out ,it might help u.
Program function: This user exit does the following things
1. Fills the information about frieght from the relevant pricing
    condition
2. Hardcodes the information about order acceptance to xyz plant
3. obtaines the shipping point information and then fills the tax
    jurisdiction information from the central address repository(ADRC)
4. Adds ship to information from KOMk
Note : To fill in shipping point we have added a append structure
        field zzvstel to condition structure KOMP. The value is
        filled to the structure using sales user exit
        USEREXIT_PRICING_PREPARE_TKOMP in program MV45AFZZ
        To fill ship to we have added a aapend structure in
        KOMP. A field zzkunnr has been added. The value is filled
        in the sales user exit USEREXIT_PRICING_PREPARE_TKOMK in
        program MV45AFZZ. The field kunnr in KOMP could not
        be used as it was blank in the user exit.
EXECUTE THIS ONLY FOR ACCOUNTS RECIEVABLE
  IF I_T007A-MWART = 'A'.
1.Freight Information
    CH_USER_CHANGED_FIELDS-FREIGHT_AM = I_INPUT_USER-KZWI4.
2.Order acceptance Information( Hardcoded to minden)
    CH_USER_CHANGED_FIELDS-TXJCD_POA = '2900502311'.
3.Shipping point location in terms of plant is available so we need
  to get the tax jurisdiction information from table TVST AND ADRC.
    DATA : W_ADRNR_TX LIKE TVST-ADRNR,
           W_VSTEL_TX LIKE VBAP-VSTEL.
  if this user exit is getting called from an area other than the
  sales document we need to get the shipping point from the sales
  order
    IF I_INPUT_USER-ZZVSTEL IS INITIAL.
      SELECT SINGLE VSTEL INTO W_VSTEL_TX FROM VBAP WHERE
      VBELN = I_INPUT_USER-AUBEL AND POSNR = I_INPUT_USER-AUPOS.
    ELSE.
      W_VSTEL_TX = I_INPUT_USER-ZZVSTEL.
    ENDIF.
  information from shipping point master
    SELECT SINGLE ADRNR INTO W_ADRNR_TX FROM TVST WHERE
    VSTEL = W_VSTEL_TX.
    IF SY-SUBRC EQ 0.
   information from address table
     SELECT SINGLE TAXJURCODE INTO CH_USER_CHANGED_FIELDS-TXJCD_SF
     FROM ADRC WHERE ADDRNUMBER = W_ADRNR_TX AND DATE_FROM LE SY-DATUM
     AND DATE_TO GE SY-DATUM.
    ENDIF.
  If these SELECT statemens fail the default SAP value will be
  returned to the tax interface.
4.Sold to party
    DATA : W_KUNNR_TX LIKE VBAK-KUNNR.
  SINCE THE FIELD IS BEING FILLED IN A SALES ORDER USER EXIT
  IT WILL BE BLANK WHEN ACCESED THRU BILLING DOCUMENTS.
  WE THEN NEED TO GET DATA FROM SALES ORDER
    IF I_INPUT_USER-ZZKUNNR IS INITIAL.
      SELECT SINGLE KUNNR INTO W_KUNNR_TX FROM VBAK WHERE VBELN =
      I_INPUT_USER-AUBEL.
      CH_USER_CHANGED_FIELDS-ACCNT_NO = W_KUNNR_TX.
    ELSE.
      CH_USER_CHANGED_FIELDS-ACCNT_NO = I_INPUT_USER-ZZKUNNR.
    ENDIF.
  ENDIF.
  If these SELECT statemens fail the default SAP value will be
  returned to the tax interface.
Hope this helps.
Regards
Syed

Similar Messages

  • How to  find an enhacement point in a standard FM.

    Hi All,
              I have to find an enhacement point in a standard FM.Please guide me on how to do this?
              Also what all things should i take care of while adding code at the enhancement spot as I
              know sometimes a dump comes in such scenarios.
    Please advice,
    Saket.

    Hi Saket,
    Do you want to find an Enhancement Point or an Implicit Enhancement Point?
    If you want to find an Enhancement Point, then the string ENHANCEMENT-POINT. Enhacement Points are marked as ENHANCEMENT-POINT <enhancement Point> SPOTS <enhancement spots> STATIC. or ENHANCEMENT-POINT <enhancement Point> SPOTS <enhancement spots>.
    If you want to find an Implicit Enhancement Point, then press SHIFT + F4 and then Edit -> Enhancement Operations -> Show Implicit Enhancement Options. This will show you the Implicit Enhancement Points in yellow color (if you are using the Old Front-End-Editor).
    You might get dumps for a number of reasons. In that case go to the dump analysis and sort the problem. Moreover you might even get Short Dump while creating implementations of Implicit Enhancement. This generally occurs because of certain missing patches/upadtes. In such a situation ask the BASIS or admin team to upload all the necessary patches or updates.
    Hope this helps.
    Regards,
    Abhisek.

  • 2LIS_02_SCL - How to Enhace it?

    Hi All,
    I have a request to add 2 field in 2lis_02_scl:
    1) Invoice Price, i checked in the extract estructured and i can add this field from Tx (LBWE), so its ok.
    2) Invoice Number, i couldnt find in the extract estructured, so i have to enhace the extractor.
    Here is my question, can anyone tell me which are the steps in order to add this field in the extractor, i've never did this.
    Point will be assigned.
    Regards

    1)Go to RSA6 and find the data source you need to enhance.--> Display
    2)Double click on the Extract structure.
    3)Now click on the append structure button to add the required field on to the existing structure.
    4) add your required fields with ZZ appended to your field.
    5) Save & Activate the append structure. Then go back and make sure you activate the extract structure also.
    6) Now again go back to RSA6 and select your Data Source. But this time go to change Data Source to remove the hide option to the enhanced fields. By default they’ll be in hide mode. If you don’t remove the hide field then this field will not be seen in BW side.
    7) Now go to SE38 to write the logic to populate the data into the enhanced field. Program name to write the logic is ZXRSAU01.
    8) Check + Save + Activate.
    9) Check in RSA3 if data is populated as per your requirement.
    10) Replicate your Data Source.
    11) Now go to Data Source/ Trans. Structure screen. Now you can see the enhanced field on the right hand side.
    Regards.

  • Problem In Enhacing field EKPO - BRTWR and EKPO-MWSKZ

    Hello SAP Experts ,
                                       I want to enhace two fields ekpo-brtwr and ekpo-mwskz  for Purchasing data source 2lis_02_itm .BUt Datasource dosnt contain field value not even as hidden filed.
    I tried to direct entry by structure maintain for that two fields but its not allowing me ...
    give any solution to Enhace these fields .

    Hi
    It will not allow to enter this fields directly
    Do following steps
    double click the data source in Rsa6
    double click the extractstructure name
    this will open Extractstructure in Data Dictionary
    Click on append structure button
    Give a name to append structure
    This will create a new struture
    Enter the New fields u want to Append
    like ZZBRTWR  give reference of  ZZWAERS in currency/quantity   fields tab
    ZZWAERS
    ZZMWSKZ
    Now you need to Code in exit to populate fields  using CMOD or BADI
    Hope this helps.. ask if you have further query
    Sonal...

  • How to enhace datasource 0CUSTOMER, 0MATERIAL AND 0VENDOR?

    how to enhace datasource 0CUSTOMER, 0MATERIAL AND 0VENDOR in general what are the steps required? it is on my resume and i have to answer it. please help

    Hi Les,
    in R/3 Tcode CMOD and create, if does not already exist a project, for example ZBW1 (is simply a definition). Then enter in Components of the project selecting the corresponding flag and then select EXIT_SAPLRSAP_002 Exit Function.
    Then double click on the word ZXRSAU... at the right of word INCLUDE.
    In the next screen you introduce your code.
    Hereunder an example for vendor:
    DATA: L_BIW_LFA1_S LIKE BIW_LFA1_S,
          l_tabix LIKE sy-tabix.
    CASE i_datasource. <i><b>(this is always necessary)</b></i>
    WHEN '0VENDOR_ATTR'.
       LOOP AT i_t_data INTO l_BIW_LFA1_S.
         l_tabix = sy-tabix.
         SELECT XEGLD FROM T005
                 INTO V_XEGLD
                  WHERE LAND1 = l_BIW_LFA1_S-LAND1.
           IF V_XEGLD = ' '.
              l_BIW_LFA1_S-ZZXEGLD = 'E'.
             ELSE.
              IF l_BIW_LFA1_S-LAND1 = 'IT'.
                 l_BIW_LFA1_S-ZZXEGLD = 'I'.
                ELSE.
                 l_BIW_LFA1_S-ZZXEGLD = 'C'.
              ENDIF.
           ENDIF.
         ENDSELECT.
         MODIFY i_t_data FROM l_BIW_LFA1_S INDEX l_tabix.
        ENDLOOP.
    ENDCASE.  <i><b>(this is always necessary)</b></i>
    Ciao.
    Riccardo.

  • Doubt with Implicit Enhacement in SAP ABAP

    Dear.
    I have the following doubt with the Implicit Enhacement in SAP ABAP created by me in several applications standard-
    If I Create an Implicit Enhacement in SAP ABAP for a function module or program standard , when the team basis is doing an upgrade the code abap created in the Implicit Enhacement not is deleted?
    I have created several Implicit Enhacement for Applications WD ABAP and FM, but I have this doubt.
    http://wiki.sdn.sap.com/wiki/display/ABAP/HowToDoImplicitEnhancement
    Thanks a lot in advance.
    Carmen G.

    Hi,
    you code will be retain after upgrade. If you have done implicit enhancements doesnt mean your code would get deleted after upgrades.
    In some cases you might have to activate your enhancments using SPAU.
    Thanks

  • Set field in enhacement doesnu00B4t work

    Hello Collegues.
    I´ve done a enhacement on ERP_H component.
    I added a field to the view Headerdetail called "name", but when I set a value in UI, I haven´t read this field in abap code.
    The SET method (SET_NAME) in the context node is ok, in debug I see that the method  current->set_property, is work fine.
    I tried read the atributte with lr_entity->get_property_as_string( 'NAME' ), but doesn´t work.   When I read other "standard field", the statement is ok and it has value.
    I added the field with a append to the structure "CRMST_ADMINH_ERPIL" and then  I assigned to the design layer "ERP" in BSP_WD_CMPWB transaction.
    Best regards.

    Hi,
    Enter trx. SM34 -> view cluster CRMVC_SDESIGN_G then press maintain.
    UI Object Type -> ERP
    Reference Design Object-> ERPADMINH
    In Design, Press new entries
    Attribute Name -> zfield
    Object -> ERPAdminH
    Attribute -> zfield
    Flag Standard radio button.
    Best regards,
    Caíque Escaler

  • Enhace IE36 to include additional field

    Hi
    I need to enahnce sap standard report for Vehicle Listing IE36/IE37 to include custodian info (Personall No and Name) at INPUT and OUTPUT.
    Custodian information is enter via custom transaction and display in equipment master under partner "custodian".
    IE36 report only display customer number. and in my case not all personell number are created as customers. so user have requested to include custodian detail into ie36 report.
    What would be the best solution?
    1- a complete new report or
    2- is there any way to enhace this report to I can include personell no?name fields are input and out of the report
    Regards

    Hi
    If you dont want to go for any enhancement, you can use some of the text fileds available while creating the master itself, where you can provide the user details which can be used for the said purpose. There are text fileds available in many TABS 'Location', 'Organisation', 'structure', Veh ID measurment etc
    Thanks
    Sachin

  • MAM30 Enhacement guide

    I remember for MAM25 was available a very nice document from Sap titled  'Enhacement Guide ' or something like that, which contained usefull hint about for example how to create own Z* syncbos, or to make appear a new field on the MAM client , or to change the MAM user menu....
    It was very complete, including the suggestion to modify the MAM both on the ABAP side and on the Java side.
    Unfortunately I'm not able to find this document anymore, and I would like to check also if it's available for MAM30 too.
    Where I can find it ?

    Hello Roberto,
    even MAM3.0 has some new features you can still live with the old document. Whatever version you select, you will find it under:
    http://service.sap.com/instguides
    Then drill down to SAp xApps -> xApps for Mobile -> SAP xMAM -> VERSION -> ....
    Now you should see the document you are looking for. There are a few enhancement guides for all different things - I guess you are looking for      xMAM Enhancement Guide (Front-End Architecture) .
    If you do not see this document - where does your path end? If the complete folder is empty - do you really have the ability to download xMAM3.0 from service marketplace? This could be an issue with your license then. But if you are just missing the correct document, please let me know exactly what you are looking for, perhaps we can find the document together.
    Regards,
    Oliver

  • Use enhacement M61X0001 for MD01

    I want to use the enhancement M61X0001 for MRP controller wise planning for the transaction MD01.
    i create a proyect in cmod an activate this.
    I have written the example code in both the includes (ZXM61U02,ZXM61U01) of 2  EXIT_SAPLM61C_001 & EXIT_SAPMM61X_001.After activating the enhancement through the project the desired effect is not showing.
    If I put breakpoint in the coding of the includes of FMs program doesn't stop at the breakpoint.
    the sap help,  explain that i can use this enhacement  =S
       Any suggestion !!!!

    Hi  Latish,
      Yes, i sure because in the sap help said that we can use that enhancement, also in the md01 in the program associated with this i found the sentence
    call customer-function...
       and when i click that sentence this go through the code of the function EXIT_SAPMM61X_001
       for this reason i don't understand what are happing ??

  • Enhacement S_ALR transactions

    Hi!
    I need to enhacement reports like S_ALR*. Some are querys and i copy this querys.
    But some are programs called by START_REPORT program. How can i enhacement this reports? Only copy and change the source code?

    Hi Rodrigo,
    That is one option.You can try bte if it is available for that transaction.
    Regards,
    Madhu.

  • Enhacement doesnt work on QA

    Hi people,
    I implemented a enhacement on MIRO and tested on DEV, it was ok, but when I test on QA, the enhacement is on SE38, but its like it does'nt exist on debug...
    someone know what can it be?

    HI,
    "First Check whether it is transported to QA
    "then go to SE20 and display. then find it in Where used List. then go there and activate the Main program where it is being used.
    "also check whether it is activated or not
    "This is a common problem with Enhancements
    Cheerz
    Ram

  • Enhacement component EXIT name for 0EQUIPMENT_ATTR

    Hello,
    I am enhacing 0EQUIPMENT_ATTR, and in CMOD i created a project.
    What is the Enhancement Component EXIT name for 0Equipment_attr to assign to my project?
    Please help me in this!
    Thanks in advance.

    Thanks for your reply Mti.
    I  could able to enhance the extractor by using:
    Enhancement component: RSAP0001
    Function exit: EXIT_SAPLRSAP_002.
    This Document helped me a lot:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46?quicklink=index&overridelayout=true

  • Enhacement ERP_H view doesnu00B4t work

    Hi colleagues,
    I am implementing an enhacement on the part ERP_H / HeaderDetail for CRM 7.0, but does not work.
    Steps performed:
    1.- creation set enhacement in view BSPWDVC_CMP_EXT .
    2.- creation enhacement in the  Tx BSP_WD_CMPWB, view ERP_H.
    3.- Enhacement to view ERP_H/HeaderDetail
    4.- Edition of headerdetail.htm: maxButtonNumber = "2"
    4.- breakpoint in headerdetail.htm (in standard htm and the enhacement).
    5.- when i debugging, the view called is the standar, with maxButtonNumber = "1".
    Best regards!!!

    After creating an Enahncement set, you need to activate the same enhancement set in BSPWDV_EHSET_ASG for a particular client so that you can test all your enhancements otherwise only the standard functionality will work.
    More details on http://wiki.sdn.sap.com/wiki/display/CRM/HowToEnhanceaWebUIComponentinSAP+CRM
    Rg,
    Harshit

  • Enhacement for xd01 customer save function

    Hi i want enhacement name for relevant customer enhancement which triggers during SAVE function during creation of customer from standard SAP transaction (XD01).
    Thanks,
    Manohar

    Hi
    Re: Screen exits avavilable for xd01/02/03 in 4.6c
    Regards
    Pavan

  • Enhacement points

    Dear Experts,
    Enhacement points and Enhacement Spots are same,plaese give clarrifiaction in this.
    How to create and implement Enhacement points.
    Thanx in advance,
    Sridhar.

    Hi,
    ENHANCEMENT-POINT
    ENHANCEMENT-POINT can either be static (for example, additional data declaration) or dynamic (for example, additional coding).
    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/ee9441026aae5fe10000000a1550b0/content.htm
    Refer the very useful links below:
    Enhancement-Point is a part of the new enhancement framework. He is some lite reading.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    Please check this blogs and wiki as well.
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/thenewEnhancementFrameworkandthenewkernel-basedBAdI&
    Please check these weblog for more information and sample codes.
    /people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    Look at this articles:
    New Enhancement Framework
    Enhancement Framework
    Enhancement Framework - The New Way to Enhance Your ABAP Systems
    Switch Framework Demo
    Introduction to the Enhancement Framework
    To now more about BADi Implementation see:
    How To Define a New BAdI Within the Enhancement Framework
    How to implement a BAdI And How to Use a Filter
    Enhancement-Point is a part of the new enhancement framework. He is some lite reading.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    Please check this blogs .
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/thenewEnhancementFrameworkandthenewkernel-basedBAdI&
    Enhancement frame work is the new concept using which SAP allows you to change the existing programs
    See the following blogs that talk about the same in detail
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    Defines a position in an ABAP program as an enhancement option, at which one or more source code plug-ins can be inserted.
    Syntax
    ENHANCEMENT-POINT enh_id SPOTS spot1 spot2 ...
                      [STATIC]
                      [INCLUDE BOUND].
    Extras:
    1. ... STATIC
    2. ... INCLUDE BOUND
    Effect
    : This statement defines an explicit enhancement option at the current position in the program at which a source code enhancement can be made. In program generation, the source code plug-ins of the assigned enhancement implementation that are available in the current system and have a switch in the status stand-by or on, are inserted at this position.
    If the addition STATIC is not specified, the source code enhancement is dynamic. This means that in program execution, only those source code plug-ins are executed whose switch has the status on. If a source code plug-in does not have a switch assigned to it, it is handled in the same way as a plug-in with a switch in the status on.
    With enh_id, an ID must be specified directly for the enhancement option, which is unique in the current compilation unit without the addition INCLUDE BOUND, and with this addition, is unique in current Include program. At least one enhancement spot must be assigned to the enhancement option using the specification simple enhancement spots spot1, spot2, and so on.
    Within enhancements, one or more source code plug-ins can be created for one enhancement option. A source code plug-in is created by the assignment of an enhancement implementation in the Enhancement Builder. This automatically generates an empty source code plug-in with a unique ID, which is displayed underneath ENHANCEMENT-POINT in the Editor, where the actual enhancement can be implemented between ENHANCEMENT and ENDENHANCEMENT.
    A source code plug-in is assigned to only one enhancement option. Multiple source code plug-ins of one enhancement implementation and the source code plug-ins of multiple enhancement implementations can be assigned to one enhancement point.
    Notes
    : In the terminology of the enhancement concept, the statement ENHANCEMENT-POINT includes both the enhancement spot element definition and the enhancement spot invocation of the enhancement option.
    The statement ENHANCEMENT-POINT can either be entered directly or created by choosing Edit ? Enhancement operations ? Create enhancement in the Enhancement Builder. After the program has been saved or created using Edit ? Enhancement operations ? Create enhancement, the statement can only be deleted by choosing Edit ? Enhancement operations ? Delete enhancement.
    In addition to the enhancement options explicitly specified by ENHANCEMENT-POINT, ABAP programs also contain implicit enhancement points, which can also be enhanced using source code plug-ins.
    Addition 1
    ... STATIC
    Effect
    : The addition STATIC is used to define a static source code enhancement. In a static source code enhancement, all incorporated source code plug-ins are taken into account when the program is executed, including those whose switch is in the status stand-by.
    Note
    : The STATIC addition is intended for the enhancement of data declarations, while the statement ENHANCEMENT-POINT without the STATIC addition is designed for the enhancement of executable coding. When the statement is executed using Enhancements ? Create enhancement, the addition is set according to this selection.
    Addition 2
    ... INCLUDE BOUND
    Effect
    : This addition can be entered in Include programs. It links the source code enhancement to the current Include program. Each program that incorporates an Include program only includes the source code enhancements that are defined with this addition. Source code enhancements created using the INCLUDE BOUND addition have their own namespace in each Include program. This ensures that if several Include programs are integrated into one compilation unit, no namespace conflicts arise, either between Include programs, or with the source code enhancements of the compilation unit.
    Without the addition INCLUDE BOUND, a source code enhancement is assigned to only one compilation unit. If the statement ENHANCEMENT-POINT is executed in an Include program without this addition, a compilation unit must be assigned to it in the Enhancement Builder.
    Note
    : In an Include program, Include-bound and non-Include-bound source code enhancements can not be defined at the same time. This also applies if an Include program incorporates other Include programs.
    Enhancement points are points provided by sap in standard programs to modify the source code. Go to any standard program, Locate the spiral button on the toolbar. Then press it and then navigate to edit->enhancement operations->display enhancement point menu. Then a no of yellow lines would appear, which are the available en points. You would have to change it and write the applicable source code.
    Reward if helpul.
    Regards Madhu.

Maybe you are looking for