User exits query

Please send me some documents on User Exits based scenarios in SD.
You can forward the scripts to [email protected]
Thanks
Adi

Hello Aditya,
Could you please fwd the mail to
[email protected]
[email protected]
Thanks n advance
Regards
innova

Similar Messages

  • Material Master User-Exit Query?

    Hi..
    I want to implement a change pointer for a material master in my system.
    Can I use the already existing message type / IDOC type or do I need to create a new IDOC type.
    And if yes, please tell me the step by step procedure in short:-)
    I was thinking of using a user-exit EXIT_SAPLMGMU_001 wherein I will fill a customised Z-Table on the basis of Plant ie. if it is my plant then I'll capture that material in my Z-table(Used a simple If-Endif)
    And later I will create a customised report to run BD10 with those materials and then I will delete all those records from my Custom report.
    But now I am facing a strange problem, that if the user changes only the basic data(first and second views in the material master screen) then , I can't capture that material in my Z-table because, I am using Plant key in my IF-Endif condition(that coding is done in the user-exit itself) and the plant is coming from the Structure WMARC which is one of the import parameter in the user-exit-->EXIT_SAPLMGMU_001.
    So, I think unless and untill the user makes changes in the views related to Plant, we wont be able to capture those materials.
    So, I want to know that is there any alternative to it?
    Thank you.

    Hi,
    The plant and all the plant dependent data for a material will be in importing parameter WMARC. If this table is not being populated is becouse you are creating only the basic material views, otherwise, that table should contain data.
    Regards,
    Jose

  • User exit for string input in a query

    Hi All,
    I am writing a query where the user would enter a string for materials, depending on which all those materials which match that pattern should be displayed in the result set of the query.
    This report is to display the stock value of all such materials.
    I want to write a user exit for the same but have no knowledge of how to do it.
    Pl help me with the code and some documents on writing a user exit.
    Thanks,
    Sharmishtha

    You have to write Customer Exit for it.
    Take help of this how to guide:
    https://websmp103.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
    Basically nur exit code you have to make use of CP (compare pattern) in opt paramter of code:
    http://help.sap.com/saphelp_nw04s/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm

  • BI 7 Bex Query - User exit variables after variable screen re-processed

    User exit variables are not re-calculated after the variable screen is called up to re-run report with a new selection.  Is there some way to force the user exit variables to change?   I am aware of note 1064273 but this doesn't seem to help in these circumstances.
    Example:
    My Bex Query uses OI_FYPER for a static characteristic selection and  I have defined a customer exit formula variable which uses the values in OI_FYPER.
    All works fine when the query is run first time but if the user calls up the variable screen to change the selection and re-run the query, the customer exit formula variable is not re-calculated (customer exit is called but only with ISTEP = 3).
    Software version is NS2004S (BI 7.0)  SPS10, BI ABAP SP11, BI JAVA SP10, BI Front End Package 1401 rel 354.

    hi.. i just came to know about this in another thread..
    I_STEP 3 does not have I_VNAM stored. So, to access values at I_STEP3 :
    data: l_range TYPE RRS0_S_VAR_RANGE.
    if I_STEP = '3'.
    read table I_T_VAR_RANGE into L_RANGE with key VNAM = 'OI_FYPER'
    if SY-SUBRC = 0.
    ...code as required...
    endif.
    endif.
    Customer-Exit for analysis Authorizations: i_step = 3, i_vnam is empty

  • BW User Exit - Code in function of the query name

    Hi,
    I would like to create an user exit code which execute a algorithm different in function of the query executed. do you know in which variable is store the technical name of the query.
    CASE query
        WHEN 'Z_ZAPO_001'.
           V1 = 1
        WHEN 'Z_ZAPO_002'.
          V1 = 2    WHEN '10' OR '11' OR '12'.
    ENDCASE.

    Yaroslav,
    I_S_RKB1D-COMPID will never be filled for authorization user-exits (I_STEP = 0). Don't ask my why, I once raised this question to OSS and they replied it was never foreseen to work with authorization user-exits. God knows why, it's very unlogical and it wouldn't cost them a lot of work to get it working...
    I could solve this problem by applying a little trick. In our queries we included a user-exit keydate variable. This will push the user-exit first in I_STEP = 1 mode where I_S_RKB1D-COMPID is filled. Then save the query name by exporting it to the ABAP-memory. Afterwards, the user exit with code for I_STEP = 0 will be processed and then you can import the query name from the ABAP memory.
    I agree it sounds a little bit tricky but there is no better option I'm affraid.

  • User exit  for a query

    Hi Experts,
    I have to design a query wherein the user has to compare the forecast and the actual figures.Forecasting is done on weekly basis for next 12 months.
    Now in my selections i have
    period before forecast is frozen : say if user enters 6
    month interval : say Jan 2006 to march 2006
    now the requirement is
    that i have to display the forecast values of month january done 6 weeks prior to the week in which 1st of jan falls..
    this 6 weeks is because user entered 6 in the 'period before forecast is frozen'this is again variable as user may enter any number ..
    now again for the month of feb we need to consider the forecast value done 6 weeks prior to the week in which 1st of feb falls...
    and so on ....till the last month of the range...
    now if i write a user exit to find the week , 6 weeks prior to first month and restrict my forecast key figure with that variable it will pick the forecast value of all the months in that week and not 6 weeks prior to each month...
    please let me know if i'm right or wrong and also if u have ne solution for the same..
    is it possible thru some coding in user exit...
    i hope i'm able to word my problem ..
    Thanx in advance..

    Hi Bwer,
    True that my data in cube has 0calweek but my query requirement is that i have to calculate the 6 weeks prior not once but for all the month in month range ..that is if the user enters jan to july so for july i need to calculate 6 weeks prior to the week in which 1st of jan falls ,then for feb again 6 weeks prior to the week in which 1st of feb falls and so on..
    so say if for 1st of jan2006 lies in calweek 1 so 47th week of 2005 has to be considered and for feb 51st week of 2005 has to be considered then for march calweek 3 has to be considered...and so on till july...
    so its not that i have to pick up data from 47th week of 2005 for all the months...
    thanx...

  • Writing a User exit for a Variable in Bex Query

    Hi Guys,
    I need some urgent help on this.  I appreciate your help.
    I have a variable ZVAR1 ( Store id) in a query.  This processing type is manual entry.
    There is another variable ZVAR2 (0Orgunit).  The value in ZVAR2 should be populated by converting the ZVAR1 value that the user entered.
    The master data 0orgunit has the marriage between these two.
    So i guess I need to write a user exit to populate ZVAR2 from ZVAR1.  How can I do that.
    Please help me out on this.
    Thanks a lot,

    Hi,
    You can read the value of ZVAR1 from I_T_VAR_RANGE in your exit coding.
    Then perform the required manipulation to populate ZVAR2.
    Thanks,
    Balaji

  • User Exit for line item query

    HI There,
    I'm not good at ABAP coding and need some help from experts.
    Working on Line Items Query and enhanced the 0FI_AP_4 to include fields from BSEG table, the fields are:
    GEBER - Funds
    FISTAL - Funds Center
    KOSTL - Cost Center
    GSBER - Business Area.
    I used the below code to enhance the datasource 0FI_AP_4, and its taking toooo long to load the data, but its pulling the line item data into BW.
    Please find another code after this....its very quick, either in extract checker or loading into BW, however its not loading all fields into BW. Specially line items like Cost Center, Fund center and Fund fields.
    Please go through the below codes and suggest me what changes i have to make to work as it should be.
    DATA: L_TABIX LIKE SY-TABIX.
    DATA: ZADTFIAP_3 LIKE DTFIAP_3.
    CASE I_DATASOURCE.
    WHEN '0FI_AP_4'.
    LOOP AT C_T_DATA INTO ZADTFIAP_3.
    L_TABIX = SY-TABIX.
    SELECT SINGLE GEBER FROM BSEG INTO ZADTFIAP_3-GEBER
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    SELECT SINGLE FISTL FROM BSEG INTO ZADTFIAP_3-FISTL
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    SELECT SINGLE KOSTL FROM BSEG INTO ZADTFIAP_3-KOSTL
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
    ENDLOOP.
    ENDCASE.
    Below code is extracting data very quickly but not bringing data for all fields specially line items like Fund Center, Cost center and Fund fields.
    DATA: L_TABIX LIKE SY-TABIX.
    DATA: ZADTFIAP_3 LIKE DTFIAP_3,
    wa_bseg Like bseg.
    CASE I_DATASOURCE.
    WHEN '0FI_AP_4'.
    LOOP AT C_T_DATA INTO ZADTFIAP_3.
    L_TABIX = SY-TABIX.
    Select single * from
    bseg into wa_bseg
    where BUKRS = ZADTFIAP_3-BUKRS
    and GJAHR = ZADTFIAP_3-FISCPER+0(4)
    and BELNR = ZADTFIAP_3-BELNR
    and BUZEI = ZADTFIAP_3-BUZEI.
    IF SY-SUBRC = 0.
    Move: wa_BSEG-GEBER to ZADTFIAP_3-GEBER,
    wa_BSEG-FISTL to ZADTFIAP_3-FISTL,
    wa_BSEG-KOSTL to ZADTFIAP_3-KOSTL,
    wa_bseg-GSBER to ZADTFIAP_3-GSBER.
    ENDIF.
    MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
    ENDLOOP.
    ENDCASE
    Thanks
    Vandana

    Hi,
    You can try this.
    USEREXIT_MOVE_FIELD_TO_VBEP                                      
    Use this user exit to assign values to new fields at the level of
    the sales document schedule lines.                               
    The user exit is called up at the end of the FORM routine        
    VBEP_FUELLEN.                                                    
    Thanks
    Krishna.

  • User Exit at Query start

    Hello,
    I want to log the BW query starts. So I'm searching for a user exit in which I can implementate a abap code to fill a log-table.

    Hi Stefan,
    What kind of stats are you looking for? Have you looked at transaction ST03N?

  • Bex Query: make data pass through user exit calculation at navigation time

    Hi all!
    I have a new requirement and I don't know how to solve it...
    Now, when I execute a web model containing a query, the system "reads" a date and calculate the query based on that date in a user exit defined in CMOD, for example, filtering data with an interval between january and the date read.
    Besides, I have in the web model a dropdown item where user can choose other months. The dropdown item only shows single values but now if I choose a month, the query only shows data for that month.
    I need the system filters the query with the new interval. For example, between january and the new month the user has just chosen.
    Does anyone know a way to make a query pass through the user exit calculation after executing the query for the first time? Any other ideas? I need the query to "reexecute" and filter the data (create a new interval) based on the value a user chose.
    (sorry about any inconvenience, because I posted the problem in another sdn specific forum but as I received no answer I've decide to explain it in here...)
    Thank you! Points will be assigned.

    Any ideas please?

  • How to find whether user exits are  used in the query or not??

    Hi ,
    I have to make the list of queris in which user exits are used.
    Please any body help me how to find the queries in which user exits are used.
    Thanks
    Maruthi

    Hi Maruthi,
    Using table RSZGLOBV you can find out the queries that have customer exit variables.
    Set filter VRPROCTP (processing type) = 3 means customer exit.
    and the field COMPID will give you the Query name.
    Best Wishes,
    Mayank

  • Query on user  exit varible

    HELLO
    ALL
      When user executes the report, BW throws variable screen on that enduser wants to (see)enter the required company codes from the company code groups(in order to see the results according to company code wise in the coulmns ).actually we have 2 company code groups.one company code group having 7 company codes and the other company code group having 2 company codes.(company code is a characteristic).actually i have an idea it is move that company code char into coulmns and restrcit the company codes according to their groups by creating user exit variables .is it work out .if it is plz send how can i approach.  Explain the complete procedure .really appreciate if you send the funtionality...
    Thanks in Advance
    krishnan

    hi krishnan,
    there's no need for a user exit. Create company code group as a navigational attribute for company, activate it for the InfoProvider and then add it to your query.
    You can use the group for selection (variables), slice&dice, etc.
    Regards,
    Marc
    SAP NetWeaver RIG

  • How to Broadcast Control Query based on User Exit Variable

    Hi Gurus,
    How to Broadcast dashboard based on Control Query based on User Exit
    Variable to different users via mail in BW 3.5 version. Any document or
    steps to achieve this will be very helpful.
    Regards
    Vishwanath

    Hi Surendra,
    Thanks for the reply and your suggestion. It will be great if you can help me to answer the below:
    1) What exactly we mean by Control Query - Any example will be very helpful
    2) As you mentioned, yes the user exist to be written will be for user-exit variable for dynamic period selection - An Example on how to create this will be helpful
    3) Once the above variable is created, what are the steps to include this variable in the Bex Query?
    4) Once all the queries to be used in dashboard are implemented with the exit variable, how to create a variant to be used in Broadcasting?
    5) How and where to configure the email recipients (to whom this dashboard will be sent via mail)?
    6) How to set up the BW broadcaster in BW 3.5 using the control query ?( My question is though we have to send the dashboard to the users, which has multiple queries, how a single control query with variant will help us).
    Awaiting your reply.
    Thanks and Regards
    Vishwanath

  • Neeed User Exit in Query Help

    Hi Guys
    We have to find the nr of days between the current date (which is report run date) the posting date of the document. We have to posting date character in the query, but we do not have the Current date in the query. So in order to find out the differece between these two dates do we need to use user exit variable ?
    Also, We have some RKF & CKFs in our query. These are Numbers and Amount colums.... We have to find the aggregated values for the amount for the all the currencies.
    Ex : Now we are getting the amount for US05 comany code in USD and GB05 company code in GBP. So if we want to get the amount GBP in USD, where should I write the Conversion Exit.
    Please advice me ASAP also let me know if you need further details
    regards

    Hi,
    As i understand, you need to write a virtual key figure to store the number of days from posting date and current date. You can't do it by RKF / CKF as the posting date of individual data record would be different. Hence you need to use the virtual key figure exit.
    For translation from GBP to USD you can use the translation keys and use those translation keys in the key figure properties.
    For creating translation keys use transaction RRC1 (BW 3.x) and RSCUR (BW 7.0).
    Hope it helps.
    Thanks & Regards,
    Soumya Mishra

  • Query with user-exit hierarchy variable and input ready hierarchy node var.

    Hello everyone.
    we are using several hierarchies (2005, 2006 and 2007) of the same info object 0FUNDS_CTR (one for each fiscal year). We would like to be able to use same reports regardless of chosen fiscal year (selected hierarchy) and ever more, to select node inside proper hierarchy. At the moment reports use 3 parameters:
    1) fiscal period from - fiscal period to
    2) hierarchy name
    3) hierarchy node
    Our goal is to get report with only 2 parameters:
    1) fiscal period from - fiscal period to
    2) hierarchy node
    since hierarchy name could be derived (user exit) from fiscal period.
    When user selects hierarchy node he is being asked to select hierarchy name (despite of user exit for hierarchy name) and key date (populated with current date).
    We would like to avoid step of user selecting hierarchy. Is it possible?
    Any other approaches to problem would be appreciated.
    Kind regards,
    Josko.

    Hi Jörg,
    As mentioned, I_STEP = 3 is  processed once per query, not once per varaiable.
    If this statement is placed within case-endcase for I_VNAM it never will be processed.
    Please take a look on this, it might be helpful..
    Regards
    Joe

Maybe you are looking for

  • Using XSLT

    I created an XSLT transformation called "ZSIMPLEXSLT" and wrote the following code to try and transform some data on a web server.  When the code gets to the CALL TRANSFORMATION line it bombs saying that I've tried to invoke a method on an object ref

  • Looking for an app for grooming business

    I have looked around but cant seem to find anything. I am looking for an app that allows us to enter customer information, such as address, telefon number as well as information about the dogs. Can anybody recommend anything? Thanks!

  • Balance sheet/ P&L

    Hi. I need to display period balances for the current and last 15 periods when input are the year and the period. another report to display the balances for the current quarter and 15 previous quarters when the input are current wquarter and the year

  • Reason for rejection in Quotation

    Hi SAP-Guys,    I'm creating a quotation and i won't set any reason for rejection for that,but while saving it reason for rejection is populating automatically, i was unable to find out the reason .   please help me on what basis it is fetching , any

  • Kindly let me the error in this code

    FORM transaction_bdc .   DATA :   v_cnt(2) TYPE n,   v_bst(2) TYPE n,   v_bn TYPE i,   v_bstpo(25),   v_ebtyp(25),   v_menge(25),   v_eeind(25),   v_xblnr(25),   v_xblnr1(25),   v_ebelp(2) TYPE n,   v_ebelpt(2),   v_menge1(11),   v_ebt TYPE i,   v_ve