Badi ME_REQ_POSTED  For CJ20N Transaction

Dear All,
I am creating PR from PS using tcode: CJ20N and i need to check PR Requisitioner fields through CJ20N ,
I am able to give error message for PR Requisitioner field through BADI ME_REQ_POSTED . My problem is as follows
Suppose First time I enter wrong value (Ex. ABC ) in Requisitioner field , then it gives error message, then I give correct  Value (Ex. 1101_003 ) in Requisitioner Field  At that time also it is giving the error message.
When I give correct value in Requisitioner Field the new value of Requisitioner is not coming in IM_EBAN
I need to check every time latest value of Requisitioner Field in IM_EBAN in CJ20N.
Following code I have written in IF_EX_ME_REQ_POSTED~POSTED
IF SY-TCODE = 'CJ20N' .
    C_ATINN = 'PR_REQUISITIONER'.
    CALL FUNCTION 'CONVERSION_EXIT_ATINN_INPUT'
      EXPORTING
        INPUT  = C_ATINN
      IMPORTING
        OUTPUT = C_ATINN.
    LOOP AT IM_EBAN INTO L_S_EBAN WHERE LOEKZ IS INITIAL.
      CLEAR W_AFNAM.
      SELECT SINGLE ATWRT  INTO W_AFNAM
          FROM CAWN WHERE ATINN = C_ATINN
                      AND ATWRT = L_S_EBAN-AFNAM.
      IF SY-SUBRC <> 0.
        MESSAGE E499(SY) WITH  'Invalid requisitioner'
      ENDIF.
    ENDLOOP.
  ENDIF.
Already searched on SDN.
Please help me why the latest value which we enter in requisitioner is not coming in IM_EBAN
Thanks in Advance
Regard's
Shabbir
Any Help !!!
Edited by: Shabbir Kureshi on Jul 15, 2010 1:01 PM
Edited by: Shabbir Kureshi on Jul 15, 2010 2:08 PM

Hello Shabbir
If I understand you correctly then you want to prevent the creation of a purchase requisition in case of an invalid Requisitioner.
In this case I would assume that BADI ME_REQ_POSTED is the wrong one because BAdI method implies that the PR will be saved. Why?
There is no exception (not usual for BAdI methods) nor a CHANGING parameter like CH_FAILED defined.
I assume that the correct BAdI for your purpose would be ME_PROCESS_REQ. Final checks BEFORE saving the PR are implemented in interface method IF_EX_ME_PROCESS_REQ~CHECK.
In case of failure you set CH_FAILED = 'X'. In order to set an error message you may have a look at the following coding:
METHOD if_ex_me_process_req~check .
  INCLUDE mm_messages_mac.
  DATA: ls_mereqitems        TYPE MMPUR_REQUISITION_ITEMS,
        ls_mereqitem         TYPE MMPUR_REQUISITION_ITEM,
        l_mereqitem          TYPE mereq_item,
        l_msgty              TYPE sy-msgty,
        l_msgno              TYPE t100c-msgnr.
*-Get the item data
  ls_mereqitems = im_header->get_items( ).
*-Get the configuration of the messages from T100S
  l_msgno = '173'.
*-Check if the PR date is in the future
  LOOP at ls_mereqitems into ls_mereqitem.
    l_mereqitem = ls_mereqitem-item->get_data( ).
    CHECK     l_mereqitem-badat > sy-datlo
    AND   NOT l_msgno IS INITIAL.
    CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE'
      EXPORTING
        i_arbgb = 'FICUSTOM'
        i_dtype = '-'
        i_msgnr = l_msgno
      IMPORTING
        e_msgty = l_msgty.
    IF 1 = 2.
      MESSAGE w173(ficustom). "WHEN POSTING
*    MESSAGE w170(ficustom). "WHEN HOLDING
    ENDIF.
    IF NOT l_msgty = '-'.
      IF l_msgty = 'E'.
        ch_failed = ' '.
      ENDIF.
      sy-msgno = l_msgno.
      mmpur_message l_msgty 'FICUSTOM' sy-msgno
      l_mereqitem-bnfpo space space space.
    ENDIF.
  ENDLOOP.
ENDMETHOD.
Regards
  Uwe

Similar Messages

  • Need a BADI/ exit for MIGO transaction

    Hi,
    I need a BADI / exit for tha transaction MIGO. My requirement is before displaying the materials in the item tab, check whether the user has authorization for that material or not. If he has no authorization, give error message. This should be done for all types of documents.
    Please let me know if you need more information.
    thanks,
    Kishore

    hi,
    You can have the authorization for the inventory management via authorisation..
    Check the path: SPRO --> MM --> Purchasing --> Inv. management nad physical inventory --> Authorization management  --> Maintain roles and assign users....
    Regards
    Priyanka.P

  • Finding out  BADI's for  a Transaction

    Hi,
        I want to find out the Badi's for a Particular Transaction. Is there any Specific Method for finding out the Badi's for a Transaction.

    Hi Krish,
    Check out this Prgm and execute it ...
    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.

  • What to do if there is no relavent BADI/EXIT for standard transaction

    Hi,
    Can any one say,What to do if there is no relavent BADI/EXIT for standard transaction.
    Helpful Answer will be rewarded.

    SAP provide some hooks to add our code to the standard program. This is what we called enhancement.
    It has following types:
    1. Personalization ( here the fields can be hide, display only etc. )
    2. Customer Exit ( Function module Exit, Menu Exit and Screen Exit )
    3. BTE
    4. BADI( Function module Exit, Menu Exit and Screen Exit )
    5. User Exit
    Suppose all these are not helpful, then you could create the code from scratch. But it is too difficult to develop because of its complexity.
    So what you can do is get SAP access key and change the code in the standard program. This is called as modification. Advantage of Enhancement and modification is whenever there is a new version come the changes made by us in standard code will be attached in the newer version also. 
    The final way is copy the source code into customer namespace and make changes according to your criteria. Eg. in the standard PO creation if you do like this, several disadvantages are the user has to give a new t.code, BASIS guy has to restrict the standard PO create T.code and you can't avail the new features of future versions.
    Hope this gives you complete picture and solution.

  • Badi name for cj20n tcode

    Dear All,
    My requirement is something like this . In cj20n tcode when i try to delete the third level WBS element i need to add some code can you plz suggest me a solution as what badi or useexit do i need to reach this functionality..
    Immediat reply will be appreciated .
    Thanks in advance
    Regards,
    Sana.

    Hi,
    There may be lots of Badi existing for every functionality.
    Hence, please put a break point on the function module: SXV_GET_CLIF_BY_NAME
    And, check for the BADI.
    Rgds,
    Ramani N

  • Need an user exit or BADI for CJ20n Transaction ,

    Dear Friends,
    In CJ20N ,  we have a Structure with Project definition>Top level wbs element>Network Header-->Network Activities
    For Network Activity it has main screen with one of the Tab named Necessary Fields.  It has a subscreen of Dates having Forecast Start and Forecast Finish Dates(Forecast start Date/ Forecast End date ). The dates format is DD.MM.YYYY. Now we want the Time format   00:00 to be added besides the Date format.
       Can anyone suggest if there is any user enhancement (screen exit ) or Badi can be implemented .
    Thanks & Regards
    Ramakrishna.K

    Plese check if enhancement CNEX0006 can be used for your requirement.
    Regards,
    Shyam

  • Method (se24) to search badi's for any transaction code

    hi,
    is there any other way to search badi except se18 name? my friend told me that we can search badi by using one method(se24) also but he also don't know the name of that method. can any one tell me?

    Hi
    1) First go to any transaction->iN THE menu bar SYSTEM->STATUS->Get the program name ->double click->u will go to the program attached to the tcode.Now search term will be CALL CL_EXITHANDLER.Now u will get list of BADI'S available..
    2) Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code and pass dat..U will see that it will be stopped on the break point which u set on the cl_exithandler...In the exit name u can find list of badi's attached to the tcode..
    or
    1) Go to Maintain Transaction  (TCODE- SE93).
    Enter the Transaction Ex:- VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI?s for the given package MB.
    Above replace VD02 by your Transaction for which you need BADIs.
    Regards
    Bala Krishna

  • BADI required for BP transaction

    Hi Experts,
    My requirement is:
    When a BP is created or changed, then the user should  be able to add only 2 roles - ( BP General and Prospect ) to the BP. The BP tcode should not allow the user to add any other roles while creating or changing the BP.
    Please let me know whether a BDT is required or a BADI.
    If a BADI is required, please let me know the name of the BADI.
    Regards,
    Sangeeta.

    Hi Sangeeta,
    The BADI approach will be a little complicated to program...but you can use BADI BUPA_INITIAL_SCREEN.
    This has interface IF_EX_BUPA_INITIAL_SCREEN, which has method INITIAL_SCREEN, with  parameter EV_REQUEST.
    EV_REQUEST can hold a lot of information on how the opening screen should look - and you need to fill this information in your implementation. E.g : it has method SET_BUPA_PARTNER_ROLE - using which you can ensure that the screen opens in a certain predefined role .
    If you want to use this solution only for organizations, then you cna only preset the type using SET_BUPA_CREATION_TYPE.
    THis is the BADI that will help you. Maybe you can have a look at the std implementation of this BADI for further tips. Also look at FM BUP_PARTNER_MAINTAIN,and its where-used list, which gives you tips on how to fill EV_REQUEST.
    Cheers,
    Rishu.
    Ps: The application transaction suggested by Smita is a great solution. If you only want to use it for organization, just disable creation of person for role Prospect (or through minor changes to UI).

  • BAPI for CJ20N transaction

    I have used following step to create project/WBS:
    1.BAPI_PS_INITIALIZATION
    2.BAPI_BUS2001_CREATE
    3.BAPI_BUS2054_CREATE_MULTI
    4.BAPI_BUS2001_SET_STATUS (To set the status at project level)
    OR
    BAPI_BUS2054_SET_STATUS (To set the status at WBS element level)
    5.BAPI_PS_PRECOMMIT
    but in PS our have custom field at WBS element level, these BAPI will create a project but won't  update custom field.
    how to resolve the problem?
    thks

    Hi !
    Please have a look to the transaction BAPI .
    The Bapis of the project-system described there do have completely other nemas the you've listed... i.e.
    BAPI_PROJECTDEF_CREATE or BAPI_PROJECTDEF_UPDATE ....
    There's a very good docu for the BAPIs in the transaction BAPI .
    Regards
    Rainer
    Some points would be nive if that helped.

  • BAPI_PROJECT_MAINTAIN for CJ20N transaction

    Hi
    I am new in BAPI. I have a requirement like this "create a new import option to look at unique field (Work Center) for import of resource information ". Can u tell me how to add new import option in BAPI_PROJECT_MAINTAIN. The T-Code will be CJ20N.

    Hi Ramya,
    If you want to add a import field u need to have a acess key.
    Else
    you need copy the function module and needs to implement your own Z F/M which import parameter to be inserted.
    After insertion go to T-code SWO1 and place bus 2054 then add ur z funtion module in BAPI: Project maintenance.
    I hope this may helpfull.
    Thank you,
    Thanks,
    AMS

  • User Exit/BADI's for MIRO Transaction

    Hi All,
    I need to modify the header text field  in DETAILS Tab of MIRO transaction. This text needs to be populated based on the line item conditions. I am not able to find any proper BADI or user exit where in i can get both header and line items details so that i can modify Header Text Field.
    Please help me out in same.
    Regards,
    Jayant

    Hi,
    in badi MRM_HEADER_CHECK try something like:
    * Get line item conditions
        CONSTANTS: c_ydrseg(18) TYPE c VALUE '(SAPLMR1M)YDRSEG[]'.
        DATA: wa_drseg TYPE mmcr_drseg.
        CLEAR wa_drseg.
        FIELD-SYMBOLS: <fs_ydrseg> TYPE table.
        ASSIGN (c_ydrseg) TO <fs_ydrseg>.
        DATA:  lt_ydrseg TYPE STANDARD TABLE OF t_mmcr_drseg.
        lt_ydrseg[] = <fs_ydrseg>.
    IF NOT lt_dyrseg[] IS INITIAL.
    LOOP AT lt_ydrseg INTO wa_drseg.
      IF wa_drseg-mwskz = 'WHATEVER'. "HERE GOES YOUR CONDITION
    * Modify Header text
        CONSTANTS: c_bktxt(21) TYPE c VALUE '(SAPLMR1M)RBKPV-BKTXT'.
        FIELD-SYMBOLS: <fs_bktxt> TYPE ANY.
        ASSIGN (c_bktxt) TO <fs_bktxt>.
        <fs_bktxt> = 'HERE_GOES_YOUR_VALUE'.
      ENDIF.
    ENDLOOP.
    ENDIF.
    Best regards.

  • User Exit for checking Purchase Requisitioner Field in CJ20N Transaction

    Hi,
    I want user Exit for checking Purchase Requisitioner field while making PR through CJ20N transaction. I have trie EXIT_SAPLEBND_001 user exit. Problem in this user exit is I am not getting Purchase Requisitioner No & Item No in I_CEBAN
    structure.
    Please suggest what to do ?
    Regard's
    Shabbir

    Hi,
    You can check with this BADI ME_PROCESS_REQ_CUST. 
    Kindly refer below mentioned link for further details:
    Badi ME_REQ_POSTED  For CJ20N Transaction
    Hope this will help you.
    Regards,
    Mudita

  • To find out BADI implementation for a standard transaction

    Like for User Exit is there any standard code to find the BADI implemetation for a Transaction Code.
    If so please paste the code.

    Hi pagal,
    The following is the code for the report program which lists Userexits and BAdi's for a given Tcode...
    Regards
    Karthik D
    <b>P.S.: Reward Points if this is Helpful</b>
    *& Report  ZDK_FIND_BADI
    REPORT  ZDK_FIND_BADI.
    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.

  • [abap] BADI for ssc1 transaction

    hello friends,
    I tried to capture the appointment calender (ssc1 transaction) data .  I  tried find out the badi to implement . Is any badi avilalable for this transaction . can anybody looked into this before plz let me know <priority normalized by moderator>
    thanks for coming help,
    regards ,
    siri
    Edited by: Vinod Kumar on Aug 5, 2011 11:53 AM

    Hello,
    Since this BADI is not suiting our requirement, this is what I would suggest.
    In the include LSSCDFX1 which is in the main program SAPLSSCD, you can find a subroutine
    GET_GLOBAL_FIELDS_FROM_CREATE in which you can create an implicit enhancement implementation and capture the
    appointment data which is available as subroutine parameters. Create the implementation at the end of the Subroutine.
    You'll find the following Subroutine parameters.
    BODY TYPE SOLI
    PART STRUCTURE SCSPARINC
    RULE TYPE RULE_TAB
    APPT TYPE SCSAPPT (Changing Parameter).
    Hope this would be helpful for your requirement.
    Regards,
    Venkata Phani Prasad K

  • BADI used for updation of Amount fields for transaction CL24N

    Hi All,
    Badi's used for the transaction CL24N . Since need to update amount field ZPO_AMOUNT , ZPO_AMOUNT_GBP in the trsaction for a particular Realease strategy
    Thanks,
    Narasimha.

    Hi,
      There are 4 User-Exits and 2 Badis present for that transaction. Check whether it is useful.
    Enhancement/ Business Add-in            Description
    Enhancement
    CLCLRS01                                Additional Fields on the Result Screen
    CLCLRS02                                Fill the Additional Fields on the Result Screen
    CLFM0003                                Call Up After Check of Assigned Characteristic Values
    CLMMD001                                Selection of Objects for Mass Processing
    Business Add-in
    CACL_CHARACTER_INPUT                    Value Assgmt Screen: Set Ready-For-Input Status for Chars
    CACL_VALUE_CHANGE                       Change/Check User Input Before Syntax Check
    Hope this will help.
    Regards,
    Swarna Munukoti.

Maybe you are looking for

  • How to get rid of the annoying Google toolbar on my screens homepage?

    Need help to get rid of the Google toolbar that has appeared on the homepage of my Droid Mini. Others have this phone & other Droids and do not have this stupid thing.

  • Spry drop down menu not working when tested in ie7, does in FF and safari on mac

    Please help! I have a spry dropdown menu on a page, when tested in FF and Safari it works fine, but when tested in IE the menus don't drop down and the styling to the over state seems to be being ignored. I have attached the code and css below. As I

  • Service PO to AR invoice

    Createing a 'service' PO for $100. Then copy the PO to an AR invoice and the value of the AR invoice is changed to $50. Currently a discount % is being assigned to this line.  How can the discount % NOT be assigned to this line when the value is chan

  • Bex Mihration Issue while comparing the results of Bex analyzer

    Dear Experts, Currenlty i am working on a Bex migration project and we are still in the research and analysis phase. We have been migrating some queries and workbooks in sandbox for analysing the final approach we would be following eventually. For m

  • [Solved] T440s do not boot after recovery

    Hi all, I have a T440s lenovo laptop whose motherboard was replaced a few months ago. Today I wanted to make a clean installation (windows 8) using the recover USB key I created before the motherboard replacement (note that I already used it and it w