Display a variable d'user exit as text in the title of a colomn

Hi, experts,
I would like to calculate the number of days of a certain month. This calculation would be done in the user exit.
Then in the report, this number will be displayed in the title of the colomn.
Is it possible to realise this requirement and what is the configuration regarding as this variable?
Thanks in advance.

Hi,
Yes you can do it.
Create text variable 'ZNO_MNTH', with processing by Customet Exit.
Variable Entry = Mandatory
Length of Input field = 0008
Uncheck ready for input.
Note: Here I'm using based on SY-DATUM, for your requirement you can change the LOGIC. Insted of SY-Datum you can pass your Date.
WHEN 'ZNO_MNTH'.
*ZDATE = SY-DATUM.
DATA: NODAYS TYPE INT1.
LOOP AT i_t_var_range INTO loc_var_range.
        IF sy-subrc = 0.
          CLEAR: l_s_range.
CALL FUNCTION '/OSP/GET_DAYS_IN_MONTH'
  EXPORTING
    IV_DATE       = SY-DATUM
IMPORTING
   EV_DAYS       =  NODAYS        .
  L_S_RANGE-LOW    = NODAYS.
  L_S_RANGE-SIGN   = 'I'.
  L_S_RANGE-OPT    = 'EQ'.
  APPEND L_S_RANGE TO E_T_RANGE.
  ENDIF.
ENDLOOP.
In Report you just gve text variable and check it, don't give any Alphabets in heading, just give this Text Variable.
Thanks
Reddy

Similar Messages

  • Formula variable with User Exit

    Hi,
    Can we create a Formula Variable of processing type USER EXIT...which will display a constant Value Y
    Any syntax would be helpful
    Thanks

    Hi,
    check this for formula variables with user exits;
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/customer-exit-to-derive-formula-variable-to-text-variable-sap-bw-35-3030684
    Also Check the issues and solution :
    Formula Variable with User Exit....Problem
    Thanks
    Hemav

  • User exit/BADi to populate the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to populate the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the some text in Header text field (MIRO -> Details tab -> header text field). I need to populate this field in the MM document as well as FI document (Accounting Document). I have tried all the user exits and BADi's related to MIRO/MRRL. Doesn't work. If anybody knows please share.
    Thanks,
    Santosh
    Edited by: Santosh Ghonasgi on May 13, 2010 4:48 PM

    Hello santosh,
    I am not sure whether a suitable exit / BADI exists to update the header text in MIRO directly.
    there is one related forum:
    User exit/BADi to change the header text in MIRO transaction
    Hope, it may helpful for you to proceed with some other parallel solution.
    Regards,
    Selva K.
    Edited by: Selvakumar Krishnan on May 13, 2010 5:29 PM

  • Formula Variable with User Exit....Problem

    Hi
      My requirment is to create a Formula Variable on User Exit that will give me Current Cal Year...so that i can use that vale in Formulas
    Created Formula Variable with processing Type Customer Exit single Value,Mandator and Unchecked the Variable input ready
    The below code in CMOD
    WHEN 'XXXXXXX'.
    Year  = sy-datum(4).
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = Year.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND l_s_range TO e_t_range.
    But when i execute the query i am getting the below error
    No value could be determined for variable xxxxxxx.
    Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET
    Diagnosis
    This error diagnosis is specific only to the variables 0P_FVAEX or 0P_CTPCA !
    Termination message BRAIN 632 appears:
    Could not determine value for variable 0P_FVAEX (or 0P_CTPCA).
    WHAT WRONG I AM DOING...please update me

    Use the code:
    WHEN 'XXXXXXX'.
         IF i_step = 2.
              Year = sy-datum(4).
              CLEAR L_S_RANGE.
              L_S_RANGE-HIGH = Year.
              L_S_RANGE-SIGN = 'I'.
              L_S_RANGE-OPT = 'EQ'.
              APPEND l_s_range TO e_t_range.
         ENDIF.
    Let me know, if it is work or not!
      - Balajee Kannan

  • VARIABLES USING USER EXIT

    Hi,
    I am trying to populate a fiscal year period (from and to) dynamically  using a user exit variable. The fiscal year selection is for data slicing at the planning area.
    Anyone has an idea of how I can achieve this ?  Some function module lines will be appreciated.
    Regards,
    uche

    Hi Uchenna,
    i don't clearly understand your scenario, but i there's a great HOWTO for user exit variable. If you specify your mail i can send you.
    However i have created an user exit var filled with the entries on a customer table, follows the code:
    FUNCTION z_sem_bps_slice_comp.
    ""Interfaccia locale:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_VARIABLE) TYPE  UPC_Y_VARIABLE
    *"     REFERENCE(I_CHANM) TYPE  UPC_Y_CHANM
    *"     REFERENCE(ITO_CHANM) TYPE  UPC_YTO_CHA
    *"  EXPORTING
    *"     REFERENCE(ETO_CHARSEL) TYPE  UPC_YTO_CHARSEL
      CONSTANTS:
    *l_source_var TYPE upc_y_variable VALUE 'SOURCE',
    *l_source_area TYPE upc_y_area VALUE '4PERF001',
      l_use_restricted_values TYPE boole-boole VALUE ' ',
      l_buffer_call TYPE boole-boole VALUE 'X'.
      DATA:
      l_type LIKE upc_var-vartype,
      lto_varsel_all TYPE upc_yto_charsel,
      lto_varsel TYPE upc_yto_charsel,
      lto_var TYPE upc_yto_charsel,
      lto_chanm TYPE upc_yto_cha,
      z_noslice(1) TYPE n.
    BREAK-POINT.
      DATA: ls_varsel TYPE upc_ys_charsel,
            lt_chavl TYPE STANDARD TABLE OF zcompslice,
            ls_chavl TYPE zcompslice.
    HERE I FILL LT_CHAVL WITH THE VALUE IN THE CUSTOMER TABLE
      CLEAR:lt_chavl,ls_chavl,z_noslice.
      REFRESH:lt_chavl.
      SELECT zsocieta FROM zcompslice INTO TABLE lt_chavl
      WHERE zflag = 'X'.
      IF sy-subrc <> 0.
        z_noslice = 1.
      ENDIF.
    HERE YOU FILL THE "USER EXIT VAR" WITH PROPER VALUE EXTRACTED ABOVE, LT_VARSEL IS THE TABLE FOR THE OUTPUT VALUE OF THE USER EXIT VARIABLE
      IF z_noslice EQ 1.
        ls_varsel-seqno = '0000'.
        ls_varsel-chanm = '0COMP_CODE'.
        ls_varsel-opt = 'EQ'.
        ls_varsel-sign = 'I'.
        ls_varsel-low = '#'.
        APPEND ls_varsel TO eto_charsel.
      ELSE.
        ls_varsel-seqno = '0000'.
        ls_varsel-chanm = '0COMP_CODE'.  
        ls_varsel-opt = 'EQ'.
        ls_varsel-sign = 'I'.
        LOOP AT lt_chavl INTO ls_chavl.
          ls_varsel-seqno = ls_varsel-seqno + 1.
          ls_varsel-low = ls_chavl-zsocieta.
          APPEND ls_varsel TO eto_charsel.
        ENDLOOP.
      ENDIF.
    ENDFUNCTION.
    Hope it helps
    Fabio

  • Is there any user exit/ badi to populate the partner bank type for   F-63.

    Is there any user exit/ badi to populate the partner bank type (field name BSEG-BVTYP) in transaction F-63. There is exit ‘ZFI_FOAP_CDITEMS_00001011’ having BKPF and BSEG as only import parameters so I can’t change the value for BSEG-BVTYP.
    So could you please let me know any exit where I can change the value for BSEG-BVTYP for transaction F-63?
    Thanks in Advance,
    Steevan

    hi,
    Below r the user exit related to transaction  F-63.
    Check out if any of them will solve ur Query..
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    Reward points if helpful,
    Regards,
    Brijesh

  • User Exits or BAdis' for the Service Order create Transaction

    Hi all,
              I need to Replace a field, "Product" in the "Item Details" area  of the create Service Order Transaction(CRMD_BUS2000116) with some custom field.
    Are there any Exits/BAdi which will help me in doing this..
    Thanks in advance
    Sethu

    Hi Sethu,
    The user exits / BADI's for the Transaction(CRMD_BUS2000116 are not avaliable:
    The following info from one forum to search user exits / BADI's  that you can use: There are multiple ways of searching for BADI.
    • <b>Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).</b>
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.
    Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    <b>Go to TCode: SE84->Enhancements->Business Add-inns->Definition</b>
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    Also have a look at below report which will list BADIs.
    REPORT  Z_FIND_USER_EXITS.
    TABLES : TSTC,TADIR,MODSAPT,MODACT,TRDIR,TFDIR,ENLFDIR,SXS_ATTRT ,TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
                 P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
      IF NOT P_TCODE IS INITIAL.
        SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
      ELSEIF NOT P_PGMNA IS INITIAL.
        TSTC-PGMNA = P_PGMNA.
      ENDIF.
      IF SY-SUBRC EQ 0.
        SELECT SINGLE * FROM TADIR
        WHERE PGMID = 'R3TR'
        AND OBJECT = 'PROG'
        AND OBJ_NAME = TSTC-PGMNA.
        MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
        IF SY-SUBRC NE 0.
          SELECT SINGLE * FROM TRDIR
          WHERE NAME = TSTC-PGMNA.
          IF TRDIR-SUBC EQ 'F'.
            SELECT SINGLE * FROM TFDIR
            WHERE PNAME = TSTC-PGMNA.
            SELECT SINGLE * FROM ENLFDIR
            WHERE FUNCNAME = TFDIR-FUNCNAME.
            SELECT SINGLE * FROM TADIR
            WHERE PGMID = 'R3TR'
            AND OBJECT = 'FUGR'
            AND OBJ_NAME EQ ENLFDIR-AREA.
            MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
          ENDIF.
        ENDIF.
        SELECT * FROM TADIR INTO TABLE JTAB
        WHERE PGMID = 'R3TR'
        AND OBJECT in ('SMOD', 'SXSD')
        AND DEVCLASS = V_DEVCLASS.
        SELECT SINGLE * FROM TSTCT
        WHERE SPRSL EQ SY-LANGU
        AND TCODE EQ P_TCODE.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) P_TCODE,
        45(50) TSTCT-TTEXT.
        SKIP.
        IF NOT JTAB[] IS INITIAL.
          WRITE:/(105) SY-ULINE.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
          sort jtab by OBJECT.
          data : wf_txt(60) type c,
          wf_smod type i ,
          wf_badi type i ,
          wf_object2(30) type C.
          clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
          LOOP AT JTAB into wa_tadir.
            at first.
              FORMAT COLOR COL_HEADING INTENSIFIED ON.
              WRITE:/1 SY-VLINE,
              2 'Enhancement/ Business Add-in',
              41 SY-VLINE ,
              42 'Description',
              105 SY-VLINE.
              WRITE:/(105) SY-ULINE.
            endat.
            clear wf_txt.
            at new object.
              if wa_tadir-object = 'SMOD'.
                wf_object2 = 'Enhancement' .
              elseif wa_tadir-object = 'SXSD'.
                wf_object2 = ' Business Add-in'.
              endif.
              FORMAT COLOR COL_GROUP INTENSIFIED ON.
              WRITE:/1 SY-VLINE,
              2 wf_object2,
              105 SY-VLINE.
            endat.
            case wa_tadir-object.
              when 'SMOD'.
                wf_smod = wf_smod + 1.
                SELECT SINGLE MODTEXT into wf_txt
                FROM MODSAPT
                WHERE SPRSL = SY-LANGU
                AND NAME = wa_tadir-OBJ_NAME.
                FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
              when 'SXSD'.
    For BADis
                wf_badi = wf_badi + 1 .
                select single TEXT into wf_txt
                from SXS_ATTRT
                where sprsl = sy-langu
                and EXIT_NAME = wa_tadir-OBJ_NAME.
                FORMAT COLOR COL_NORMAL INTENSIFIED ON.
            endcase.
            WRITE:/1 SY-VLINE,
            2 wa_tadir-OBJ_NAME hotspot on,
            41 SY-VLINE ,
            42 wf_txt,
            105 SY-VLINE.
            AT END OF object.
              write : /(105) sy-ULINE.
            ENDAT.
          ENDLOOP.
          WRITE:/(105) SY-ULINE.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No.of Exits:' , wf_smod.
          WRITE:/ 'No.of BADis:' , wf_badi.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(105) 'No userexits or BADis exist'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(105) 'Transaction does not exist'.
      ENDIF.
    AT LINE-SELECTION.
      data : wf_object type tadir-object.
      clear wf_object.
      GET CURSOR FIELD FIELD1.
      CHECK FIELD1(8) EQ 'WA_TADIR'.
      read table jtab with key obj_name = sy-lisel+1(20).
      move jtab-object to wf_object.
      case wf_object.
        when 'SMOD'.
          SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
          CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
        when 'SXSD'.
          SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
          CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
      endcase.
    Hope it will help you.
    Regards,
    Arjun
    <b>Reward points if it helps</b>

  • How to find the ME29N 'USER EXIT' when our save the release PO after.

    How to find the ME29N 'USER EXIT' when our save the release PO after.
    which user exit will be used?
    thanks.
    alex.

    Hi,
      process :
        go to tranx code :   ME29N ,
           System---->Status , here copy the program name (SAPLMEGUI),
         go to abap editor and specify the program name SAPLMEGUI and find the package "ME".
         tranx code : CMOD ,  Utilites--->Sap Enanchement,
                                         specify the package name : ME
                                          and execute, displays a list of exits ,
                                 and find out our suitable exit based on requirement.
    check these :   EXIT_SAPMM06E_021
    reg
    Siva

  • How to find the list of USER-EXITS or BADI for the transaction ABSO

    Hi all,
    Please help me to find the list of USER-EXITS or BADI for the transaction ABSO & find the exact user-exit which meets the requirement.
    Thanks & Regards,
    gyanaraj

    Hi,
    Copy the problem  in SE38 and  Execute it
    Enter the Tcode  u want
    this  will the  list of Userexits and badis
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.

  • User exit to check/uncheck the GR Indicator at the time of PO creation

    Hi,
    Can anybody help me out in finding the right user exit/BAdi to control the GR Indicator flag.
    We already tried the user exits:
    EXIT_SAPLMEKO_001
    EXIT_SAPLMEKO_002
    EXIT_SAPLFYTX_USER_001
    EXIT_SAPMM06E_012
    EXIT_SAPMM06E_013
    EXIT_SAPMM06E_009 and also tried the BAdi ME_PROCESS_PO_CUST.
    Nothing is updating the GR Indicator flag.
    Please let me know if any other user exits exist.
    Thanks in advance. Quick response is appreciated.
    Bhaskar

    Hi,
    Try this code..I have used memory pointers....
    In the userexit <b>EXIT_SAPMM06E_012</b>
    DATA lwa_ekpo LIKE bekpo.
    data lw_field(50).
    FIELD-SYMBOLS <t_xekpo> TYPE STANDARD TABLE.
    IF sy-tcode = 'ME21'.
    lw_field = '(SAPLMEPO)POT[]'.
    ASSIGN (lw_field) TO <t_xekpo>.
    if sy-subrc ne 0.
    lw_field = '(SAPMM06E)POT[]'.
    ASSIGN (lw_field) TO <t_xekpo>.
    if sy-subrc <> 0.
    message e208(00) 'Couldn't find POT'.
    endif.
    endif.
    loop at <t_xekpo> into lwa_ekpo.
    Check the conditions..
    example..
    if ......
    Check the GR indicator..
    lwa_ekpo-WEBRE = 'X'.
    <b>MODIFY <t_xekpo> from lwa_ekpo transporting WEBRE.</b>
    endif.
    endloop.
    ENDIF.
    Hope this helps..
    Thanks,
    Naren

  • User exit/BADI for changing the exchage rate type in MIGO

    Dear guru's,
    Please help me in finding the user exit/BADI to change the exchange rate type in MIGO.
    Regards,
    Abdul Rahim

    did you check this one MB_GOODSMOVEMENT?
    also exchange rates needs to be changed at Purchase order level and those will be reflected while creating MIGO.

  • User exit/BADI to change the Accntg doc which gets created during Billing

    I am trying to do the following . Is this possible ?
    When a delivery related billing document is created an accounting document is created in the background , I want to modify the line items in the accounting document, Just before posting the accounting document.
    I am using  exit EXIT_SAPLV60B_008  as suggested but I don't see the accounting line items in any of the internal tables in this exit.
    My accounting document when it gets created looks like this. And I want to modify one of these lines before the document is posted.
    Thanks in advance.
    Regards,
    Ankur Bhandari
    1 01 32517 Jaaaa 3,700.83 USD
    2 50 3100000 MERCHANDISE SALES 3,199.96- USD
    3 40 3100000 MERCHANDISE SALES 160.00 USD
    4 50 3200000 DELIVERY INCOME 132.00- USD
    5 50 3200000 DELIVERY INCOME 10.00- USD
    6 50 2170156 SALES TAX COLLECTED 198.87- USD
    7 50 3400000 WARRANTY INCOME 320.00- USD
    8 15 32517 Jaaaa 3,700.83- USD
    9 40 1117217 RECV. VISA/MCARD Sto 3,700.83 USD
    Any answers on how can I delete line 1 8 and 9 and add another line which balances the amount ?
    Need to do this just before the accounting document gets generated.
    Is this possible ?

    Hi Ajay,
    I just want throw a light on your issue.
    There are couple of other user-exits also available here.
    Just check the required data is available or not?
    EXIT_SAPLV60B_001              User Exit AC Interface (Header Line)               
    EXIT_SAPLV60B_002              User Exit AC Interface (Customer Line)             
    EXIT_SAPLV60B_003              User Exit RW Interface (Cost)                      
    EXIT_SAPLV60B_004              User Exit AC Interface (GL Account Item)           
    EXIT_SAPLV60B_005              User Exit AC Interface (Accruals)                  
    EXIT_SAPLV60B_006              User Exit AC Interface (Tax Line)                  
    EXIT_SAPLV60B_007              User Exit AC Interface (Customer Line)             
    EXIT_SAPLV60B_008              User Exit AC Interface Transfer Tables             
    EXIT_SAPLV60B_010              User Exit Item Table for the Customer Lines        
    Thanks,
    Ramakrishna

  • User Exit & BADI for controling the END user in co06

    Hi
    I HAVE SOME 2 DOUBTS
    1.  I  need a user exit /  BADI  for controlling the user to edit a specific document type in co06 (BACKORDER PROCESSING) .
    the control should be actve for specfic order type for specfic users
    2  DEPENDS ON ORDER TYPE I NEED TO CONTROL THE ALLOCATION , AND HOW TO CHECK THE SAFETY STOCK

    Answer cannot be Provided properly , so has to Post more questions . i am jus closing my ques??

  • User Exit / BAdI to update the External Patient ID.

    Hello SAPients!
    I've been searching everywhere and I can't find a BAdI or User Exit to automatically update the External Patient Identification Number (NPAT-EXTNR). I've just found BAdIs to validate the correctness of the field but not a way to automatically change it. Anyone has done this before?
    Thanks!

    Solved on my own. I found the User Exit NEXTNR00.

  • User exit Used while defining the storage type

    Hi all,
      Can anybody tell me about the user exit Used while defining the storage type.
    or what is the user exit name?
    i want to define my own strategy.
    i.e combine manual sut entry with strategy 'k'

    HI all I Got the Exit     MWMTO003.
    Now  ,
    Following Logic is to be built. (Storage type strategy is K for putaway.)
    u201CManually selection of SUTu201D while Putaway , For Strg -K SUT selection is
    system guided.
    Which componant is required for this. Pls guide.
    Is the above requirement is possible?
    Edited by: dev .. on Feb 19, 2009 1:58 PM

Maybe you are looking for

  • When ODI calls a web service ,exception is thrown in the console

    Excetions are like below: My envirionment :ODI11g+AXIS2 1.2 com.sunopsis.wsinvocation.SnpsWSInvocationException: javax.xml.ws.soap.SOAPFaultException: {empservice/WSOdiEmpSrc/schema}OdiEmpSrc was expected, {http://emp.com/xsd}getOdiEmpSrc encountered

  • Funky Characters

    We convert many Word 2003 documents to PDF, every month. Lately, strange characters have been appearing in the PDF docs, like # or &, or @. These characters are not present in the Word document, so I dont think that the problem is font related. Is th

  • Alignment Issues with Buttons after disc is burned

    I have a Widescreen project that I set in iDVD 6, and everything looks great on the preview. Once I burned it out to a disc and played it in another DVD player, the highlight marks for the buttons were distorted out to the left or right, depending on

  • After a 4 days desperate downloading of PSE12 into my Windows Vista - nothing works!

    4 days ago I bought an upgraded PSE 12 version on Adobes web link to replace my well working PSE7 version. Probably the most stupid deal I have ever made. PSE 12 must posess all installation failures and problems in the world. After countless attempt

  • Caml query to retrive keyword from rich text field

    hi friends i am using below caml query to retrieve data from title field and Rich text field(Definition)  <View> <Query> <Where> <And> <Or> <Eq> <FieldRef Name=\'Title\'/> <Value Type=\'Text\'>'+letter+'</Value> </Eq> <Contains> <FieldRef Name=\'Defi