Problem in me22n transaction

Hi friends ,
i am facing to find the bug in an user exit.ur  experiences can help me to  fix that easily .
Scenario  : when we click on  save in me21n or me22n  , it prompts a dilogue box for reason codes , for each PO created in case of me21n and for each new line item that is being updated in case of me22n while we click next item on dilogue box . at the end it gives a message saying that last line item is reached  . finally we click update on dilogue box , they are  saved in database .
Problem : it s going well in case of me21n , but in case of me22n , when click on update it is again prompting for reason code for last item for (last item no  -1) times before saving in database.  for ex : 5 new items are there to update . aftere entering reason codes for all line items while clickingon  next item ,message is prompted that last item is reached . then we choose update , it again prompting dialogue box for reason code for last item 4 times .we need to enter 5+ (5-1) times .
My Analysis : dilogue box is prompted by a function module called in that  exit.there he is looping an itab constructed with new items and reason codes captured  while we entered .

Hi,
Only an User exit is enough for you to achieve this at item level.
In the Main program of PO SAPMV50A  search for the include MV50AFZZ * or MV50AF* (i am not sure, take the right one for User exits and write the code for Item level
such that : if the Indicator = N, then modify the field Vendor.
regards.
Anji

Similar Messages

  • Error message in ME22n transaction

    Hi All,
    We want to display error message at  status bar of me22n transaction for some certain conditon.I am using a user exit where actually i am writing a code.I tried to write like this  'Message  E101(ZE) ' but message is not displaying at status bar.
    Thanks
    Mohit

    Hi ,
    1 >If message is not getting shown at status bar then is it getting shown as popo up. ?
    2 > If message is not at all getting shown then that means your exit is not getting called. Please put a break point inside your exit and exeute  me22n and see if your debugger gets triggered.
    If Debugger does not get triggered then that mean , either you have not created Project for yoour Exit OR you are using incorrect Exit.
    Please revert with your observatins so that can help you further.
    Hope this is helpful.
    Regards,
    Uma Dave

  • Problem in loading transactional data from to 0MKT_DSO1(ods) to 0MKTG_C01

    Hi,
    I am trying to load lead transaction data to the standard Crm lead management cube from ODS.There is a problem while loading transaction data from 0MKT_DSO1(ods) to the infocube 0MKTG_C01 as the field 0STATECSYS2(CRM STATUS)  is set to 10 in ods -meaning incorrect transaction. This feild is not there in the infocube.
    There is a routine in the cube that deletes data records with (0statecsys2) set to 10.
    THIS field is not coming in the transaction.
    so, where can i see the master data in crm source system? and why is that feild getting set to 10 ?
    thanks in advance!

    Thanks for the reply..
    I have checked the Fact table which shows
    1. packet Dimension
    2. Time dimension
    3. Unit dimension.
    I have kept the 0CALDAY as the time characteristics.
    Sample data i have loaded from ODS to Cube.
    Sample data in ODS.
    Sales order No_____0CALDAY_____AMOUNT
    800001___________12/02/2009____15
    I have loaded this data in Cube with Full Upload.
    Data in Cube.
    Sales order No_____0CALDAY_____AMOUNT
    800001___________12/02/2009____15
    Again i am loading the same data to cube
    Data in cube after loading.
    Sales order No_____0CALDAY_____AMOUNT
    800001___________12/02/2009____15
    800001___________12/02/2009____15
    The data is duplicated and it is not cumulating.
    Am i missing anything on this.
    Pls help..
    Thanks,
    Siva.

  • Field Exit for ME21N & ME22N transactions

    HI Friends,
    I need to make the SAP Standard screen field "Overdeliv. Tol." & "Unlimited" to inactive under the Item level data --> Delivery tab in ME21N & ME22N transaction.
    Can i do ths? If so give me the steps and Screen exit for the same...

    For User Exit's
    goto to tcode->status->program name->double click on that,
    then goto to-> attribute take the package name and
    Goto SMOD tcode ->Utilities->give the package name and F8
    then a list of exits will display for that tcode as well as that package.
    double click on the exit u can see the Fm exit,screen exit,feild exit,include exit. there
    u can check the table MODSAP
    For BADI's,
    1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
    keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
    then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
    2)Goto to tcode->status->program name->double click on that program will display's
    then  press crtl+F then cl_exithandler
    Thank u,
    santhosh

  • User exit or BADI for ME22N transaction  (please read my requirement)

    In me22n transaction when i change a PO Delivery date for any line item and click on save The field latest GR date MEPO1313-LEWED in DELIVERY tab below should display date as per my requirement i.e (delivery date + 90 days)
    What uerexit is to be used else if BADI is used pleasee provide me step by step guide as i have never used vadi
    IT is urgent. plz helopp.

    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : 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 obligatory.
    select single * from tstc where tcode eq p_tcode.
    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 = 'SMOD'
    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:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    Execute the report, give the transaction you want to find user exit, and query.
    <b>BADI</b>
    To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
    double click on method get_instance, get a break point on case statement.
    execute and start the required transaction in new session.
    look for variable <b>exit_name.</b> It would show the available badi's.
    Please do reward if useful
    Regards
    Dinesh

  • I have a problem with the transaction CBIH82

    Hi experts,
    I have a problem with the transaction CBIH82, when I try to assign a team in the tab "EventLocation", the transaction sends me the message "Equipment not available at the functional location".
    I previously reviewed the equipment is assigned to the transaction IL03.
    No authorization errors, I checked with the transaction SU53.
    Any idea to solve this problem?
    I appreciate it.

    Hello,
    I happened to again see this post where question is yet to be answered.
    As per SAP standard design, only those equipment would be allowed which are directly installed on the functional location. What this means is that those equipment which are not directly assigned to the functional location (might be assigned to another superior equipment which in turn is assigned to the functional location) can't be saved.
    Now, I am not sure why SAP has kept it like this when the same is allowed in notification.
    Can somebody clarify the business relevance of this standard behavior??
    Regards,
    Pavan

  • My apple ID was hacked and a game by GodGame Inc was bought and installed. When I try to report a problem about this transaction, the link automatically sends me to the apple store support. The application is bugged. Please help.

    My apple ID was hacked and a game by GodGame Inc was bought and installed. When I try to report a problem about this transaction, the link automatically sends me to the apple store support. The application is bugged. Please help.

    thanks for your response roaminggnome. I changed my password immediately after it happened and I have contacted i tunes to let them know of this dillemma.
    The I-tunes credit was a promotional thing by Apple to buy their laptop. So I didn't pay for the i-tunes credit in the first place. Do you think my bank will be able to reinburse Itunes credit then? I will ask support when they get back to me.

  • Save PO in me22n transaction.

    Hello experts,
    Which user make changes in po on 'ME22N' transaction in some item from all item , how can i know
    where he make the changes , what is the item , what is the fields that was changes ?
    I write my code in  F.M 'EXIT_SAPMM06E_012' -  INCLUDE ZXM06U43 .
    Thanks for your help.
    Avi.

    Create this report...it will give you the PO changes history.
    *& Report  Z_PO_CHANGE_HIST                                            *
    REPORT  Z_PO_CHANGE_HIST  LINE-SIZE 132 NO STANDARD PAGE HEADING
                     LINE-COUNT 065(001)
                     MESSAGE-ID VR.
    TABLES: DD04T,
            CDHDR,
            CDPOS,
            DD03L,
            DD41V,
            T685T,
            VBPA,
            TPART,
            KONVC,
            EKKO.
    TYPE-POOLS : SLIS.
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME  TITLE TEXT-001.
    SELECT-OPTIONS: XUDATE FOR CDHDR-UDATE OBLIGATORY,
                    XEBELN FOR EKKO-EBELN,
                    XLIFNR FOR EKKO-LIFNR,
                    XEKORG FOR EKKO-EKORG OBLIGATORY,
                    XEKGRP FOR EKKO-EKGRP OBLIGATORY.
    SELECTION-SCREEN: END OF BLOCK B1.
    SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME  TITLE TEXT-002.
    PARAMETERS:P_RAD RADIOBUTTON GROUP RAD DEFAULT 'X',
               P_RAD1 RADIOBUTTON GROUP RAD.
    SELECTION-SCREEN: END OF BLOCK B2.
    DATA: WFLAG,
          WCHANGENR LIKE CDHDR-CHANGENR.
    DATA: BEGIN OF ICDHDR OCCURS 50.
            INCLUDE STRUCTURE CDHDR.
    DATA: END OF ICDHDR.
    DATA: BEGIN OF ICDSHW OCCURS 50.
            INCLUDE STRUCTURE CDSHW.
    DATA: END OF ICDSHW.
    DATA: BEGIN OF EKKEY,
            EBELN LIKE EKET-EBELN,
            EBELP LIKE EKET-EBELP,
            ETENR LIKE EKET-ETENR,
          END OF EKKEY.
    DATA: BEGIN OF ITAB OCCURS 50,
            BEGIN OF EKKEY,
              EBELN LIKE EKET-EBELN,
              EBELP LIKE EKET-EBELP,
              ETENR LIKE EKET-ETENR,
            END OF EKKEY,
            CHANGENR LIKE CDHDR-CHANGENR,
            UDATE    LIKE CDHDR-UDATE,
            UTIME    LIKE CDHDR-UTIME,
            USERNAME LIKE CDHDR-USERNAME,
            CHNGIND  LIKE CDSHW-CHNGIND,
            FTEXT    LIKE CDSHW-FTEXT,
            OUTLEN   LIKE CDSHW-OUTLEN,
            F_OLD    LIKE CDSHW-F_OLD,
            F_NEW    LIKE CDSHW-F_NEW,
            CHANGE(24) TYPE C,
          END OF ITAB.
    DATA: OLD_OBJECTID LIKE CDHDR-OBJECTID.
    DATA: W_XUDATE(50) TYPE C,
          W_XEBELN(50) TYPE C,
          W_XLIFNR(50) TYPE C,
          W_XEKORG(50) TYPE C,
          W_XEKGRP(50) TYPE C.
    DATA: BEGIN OF I_AUTH_EKGRP OCCURS 0,
             EKGRP LIKE EKKO-EKGRP,
          END OF I_AUTH_EKGRP.
    FCAT is used for the field catalog
    DATA: FCAT TYPE TABLE OF SLIS_FIELDCAT_ALV WITH NON-UNIQUE DEFAULT KEY
          WITH HEADER LINE INITIAL SIZE 0,
    FS_LAYO is used for Grid Layout
          FS_LAYO TYPE SLIS_LAYOUT_ALV,
    FEVENTS to handle the events TOP OF PAGE & USER_COMMAND
          FEVENTS TYPE TABLE OF SLIS_ALV_EVENT WITH NON-UNIQUE DEFAULT KEY
          WITH HEADER LINE INITIAL SIZE 0,
    FHEADER is used for List header
          FHEADER TYPE TABLE OF SLIS_LISTHEADER WITH NON-UNIQUE DEFAULT KEY
          WITH HEADER LINE INITIAL SIZE 0.
    AT SELECTION-SCREEN.
    Authorization check for Purchasing Group
      SELECT EKGRP
        INTO TABLE I_AUTH_EKGRP
        FROM T024
        WHERE EKGRP IN XEKGRP.
      LOOP AT I_AUTH_EKGRP.
        AUTHORITY-CHECK OBJECT 'M_BEST_EKG'
                 ID 'ACTVT' FIELD '03'
                 ID 'EKGRP' FIELD I_AUTH_EKGRP-EKGRP.
        IF SY-SUBRC NE 0 .
          MESSAGE E398(00) WITH
           'User' SY-UNAME 'not authorised for Purchasing group : ' I_AUTH_EKGRP-EKGRP.
        ENDIF.
      ENDLOOP.
    Check for date to be in same month
      IF SY-UCOMM EQ 'ONLI' OR SY-UCOMM EQ 'PRIN'.
        IF XUDATE-LOW0(6) NE XUDATE-HIGH0(6).
          MESSAGE E999(FG) WITH 'Date should belong to same month.'.
          LEAVE TO SCREEN 1000.
        ENDIF.
      ENDIF.
    START-OF-SELECTION.
      SELECT * FROM EKKO WHERE EBELN IN XEBELN
                           AND BEDAT IN XUDATE
                           AND LIFNR IN XLIFNR
                           AND EKORG IN XEKORG
                           AND EKGRP IN XEKGRP.
        IF SY-SUBRC NE 0.
          CONTINUE.
        ENDIF.
        CLEAR CDHDR.
        CLEAR CDPOS.
        CDHDR-OBJECTCLAS = 'EINKBELEG'.
        CDHDR-OBJECTID   = EKKO-EBELN.
        PERFORM GETCHGDOCS.
      ENDSELECT.
      IF P_RAD = 'X'.
        DELETE ITAB[] WHERE EKKEY-EBELP NE ''.
      ENDIF.
      IF ITAB[] IS INITIAL.
        MESSAGE E999(FG) WITH 'No Data found for Selection'.
        LEAVE LIST-PROCESSING.
      ENDIF.
      LOOP AT ITAB.
        CLEAR: EKKEY.
        CASE ITAB-CHNGIND.
          WHEN 'U'.
            ITAB-CHANGE = 'Changed'.
          WHEN 'D'.
            ITAB-CHANGE = 'Delete'.
          WHEN 'E'.
            ITAB-CHANGE = 'Delete(Single Field)'.
          WHEN 'I'.
            ITAB-CHANGE = 'Insert'.
        ENDCASE.
        MODIFY ITAB.
        CLEAR : ITAB.
      ENDLOOP.
      SORT ITAB BY UDATE EKKEY-EBELN CHANGENR EKKEY-EBELP
                   EKKEY-ETENR.
      PERFORM Z_TOP_OF_PAGE.
      PERFORM Z_LAYOUT_SETTINGS.
      PERFORM Z_ALV_EVENTS.
      PERFORM Z_CREATE_FIELD_CATALOG.
      PERFORM Z_REUSE_ALV_GRID_DISPLAY.
    *&      Form  GETCHGDOCS
    FORM GETCHGDOCS.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
        EXPORTING
          DATE_OF_CHANGE    = CDHDR-UDATE
          OBJECTCLASS       = CDHDR-OBJECTCLAS
          OBJECTID          = CDHDR-OBJECTID
          TIME_OF_CHANGE    = CDHDR-UTIME
          USERNAME          = CDHDR-USERNAME
        TABLES
          I_CDHDR           = ICDHDR
        EXCEPTIONS
          NO_POSITION_FOUND = 1
          OTHERS            = 2.
      CHECK SY-SUBRC EQ 0.
      DELETE ICDHDR WHERE CHANGE_IND EQ 'I'.
      CHECK NOT ICDHDR[] IS INITIAL.
      LOOP AT ICDHDR.
       CHECK ICDHDR-UDATE IN XUDATE.
        CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
          EXPORTING
            CHANGENUMBER      = ICDHDR-CHANGENR
          IMPORTING
            HEADER            = CDHDR
          TABLES
            EDITPOS           = ICDSHW
          EXCEPTIONS
            NO_POSITION_FOUND = 1
            OTHERS            = 2.
        CHECK SY-SUBRC EQ 0.
        LOOP AT ICDSHW.
          CHECK ICDSHW-TEXT_CASE EQ SPACE.
          MOVE-CORRESPONDING ICDSHW TO ITAB.
          MOVE-CORRESPONDING ICDHDR TO ITAB.
          MOVE ICDSHW-TABKEY+3 TO ITAB-EKKEY.
          APPEND ITAB.
        ENDLOOP.
      ENDLOOP.
    ENDFORM.                    "GETCHGDOCS
    END OF PROGRAM
    *&      Form  Z_TOP_OF_PAGE
    FORM Z_TOP_OF_PAGE .
      IF NOT XEBELN-LOW IS INITIAL.
        CONCATENATE  XEBELN-LOW  ' ' 'To' ' '  XEBELN-HIGH INTO W_XEBELN
        SEPARATED BY SPACE.
      ENDIF.
      CONCATENATE  XUDATE-LOW6(2) XUDATE-LOW4(2) XUDATE-LOW+0(4) INTO XUDATE-LOW.
      CONCATENATE  XUDATE-HIGH6(2) XUDATE-HIGH4(2) XUDATE-HIGH+0(4) INTO XUDATE-HIGH.
      IF NOT XUDATE-LOW IS INITIAL.
        CONCATENATE  XUDATE-LOW  ' ' 'To' ' '  XUDATE-HIGH INTO W_XUDATE
        SEPARATED BY SPACE.
      ENDIF.
      IF NOT XLIFNR-LOW IS INITIAL.
        CONCATENATE  XLIFNR-LOW  ' ' 'To' ' '  XLIFNR-HIGH INTO W_XLIFNR
        SEPARATED BY SPACE.
      ENDIF.
      IF NOT XEKORG-LOW IS INITIAL.
        CONCATENATE  XEKORG-LOW  ' ' 'To' ' '  XEKORG-HIGH INTO W_XEKORG
        SEPARATED BY SPACE.
      ENDIF.
      IF NOT XEKGRP-LOW IS INITIAL.
        CONCATENATE  XEKGRP-LOW  ' ' 'To' ' '  XEKGRP-HIGH INTO W_XEKGRP
        SEPARATED BY SPACE.
      ENDIF.
    For writing Report Header
      FHEADER-TYP  = 'H'.
      FHEADER-INFO = 'Purchase Order / Contract Change History'.
      APPEND FHEADER.
      CLEAR FHEADER.
      CLEAR FHEADER-KEY.
      FHEADER-TYP = 'S'.
      FHEADER-INFO = W_XUDATE.
      FHEADER-KEY = 'Date'.
      APPEND FHEADER.
      CLEAR FHEADER.
      CLEAR FHEADER-KEY.
      FHEADER-TYP = 'S'.
      FHEADER-INFO = W_XEBELN.
      FHEADER-KEY = 'PO Number'.
      APPEND FHEADER.
      CLEAR FHEADER.
      CLEAR FHEADER-KEY.
      FHEADER-TYP = 'S'.
      FHEADER-INFO = W_XLIFNR.
      FHEADER-KEY = 'Vendor Number'.
      APPEND FHEADER.
      CLEAR FHEADER.
      CLEAR FHEADER-KEY.
      FHEADER-TYP = 'S'.
      FHEADER-INFO = W_XEKORG.
      FHEADER-KEY = 'Purchasing Org'.
      APPEND FHEADER.
      CLEAR FHEADER.
      CLEAR FHEADER-KEY.
      FHEADER-TYP = 'S'.
      FHEADER-INFO = W_XEKGRP.
      FHEADER-KEY = 'Purchsing Group'.
      APPEND FHEADER.
      CLEAR FHEADER.
      CLEAR FHEADER-KEY.
    ENDFORM.                    " Z_TOP_OF_PAGE
    *&      Form  Z_LAYOUT_SETTINGS
          text
    -->  p1        text
    <--  p2        text
    FORM Z_LAYOUT_SETTINGS .
      FS_LAYO-ZEBRA           = 'X'.     " Output in Zebra pattern
      FS_LAYO-DETAIL_POPUP    = 'X'.     " A popup window appears to give details
      FS_LAYO-KEY_HOTSPOT     = 'X'.     " Key fields will have a Hotspot.
      FS_LAYO-DEF_STATUS      = ' '.
      FS_LAYO-COLWIDTH_OPTIMIZE = 'X'.
    ENDFORM.                    " Z_LAYOUT_SETTINGS
    *&      Form  Z_ALV_EVENTS
    FORM Z_ALV_EVENTS .
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          I_LIST_TYPE = 0
        IMPORTING
          ET_EVENTS   = FEVENTS[].
      READ TABLE FEVENTS WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC = 0.
        FEVENTS-FORM = 'Z_TOPOFPAGE'.
        MODIFY FEVENTS INDEX SY-TABIX.
        CLEAR FEVENTS.
      ENDIF.                              " IF SY-SUBRC = 0.
    ENDFORM.                    " Z_ALV_EVENTS
    *&      Form  Z_CREATE_FIELD_CATALOG
    FORM Z_CREATE_FIELD_CATALOG .
    for PO No.
      FCAT-FIELDNAME = 'EKKEY-EBELN'.
      FCAT-SELTEXT_M = 'PO No'.
      FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for Change Date.
      FCAT-FIELDNAME = 'UDATE'.
      FCAT-SELTEXT_M = 'Change Date'.
      FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for Time.
      FCAT-FIELDNAME = 'UTIME'.
      FCAT-SELTEXT_M = 'Time'.
      FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for User Name.
      FCAT-FIELDNAME = 'USERNAME'.
      FCAT-SELTEXT_M = 'User Name'.
      FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for Item.
      FCAT-FIELDNAME = 'EKKEY-EBELP'.
      FCAT-SELTEXT_M = 'Item'.
    FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for Sch No.
    FCAT-FIELDNAME = 'EKKEY-ETENR'.
    FCAT-SELTEXT_M = 'Sch No'.
    FCAT-FIX_COLUMN = 'X'.
    APPEND FCAT.
    CLEAR FCAT.
    for Sch No.
      FCAT-FIELDNAME = 'FTEXT'.
      FCAT-SELTEXT_M = 'Text'.
    FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for Sch No.
      FCAT-FIELDNAME = 'F_OLD'.
      FCAT-SELTEXT_M = 'Old Value'.
    FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for Sch No.
      FCAT-FIELDNAME = 'F_NEW'.
      FCAT-SELTEXT_M = 'New Value'.
    FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for Sch No.
      FCAT-FIELDNAME = 'CHNGIND'.
      FCAT-SELTEXT_M = 'Type of Changes'.
    FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for Sch No.
      FCAT-FIELDNAME = 'CHANGE'.
      FCAT-SELTEXT_M = 'Changes'.
    FCAT-FIX_COLUMN = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    ENDFORM.                    " Z_CREATE_FIELD_CATALOG
    *&      Form  Z_REUSE_ALV_GRID_DISPLAY
    FORM Z_REUSE_ALV_GRID_DISPLAY .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM      = SY-REPID
         I_CALLBACK_USER_COMMAND = 'Z_USER_COMMAND'
         I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
          IS_LAYOUT               = FS_LAYO
          IT_FIELDCAT             = FCAT[]
          I_DEFAULT               = 'X'
          I_SAVE                  = 'U'
          IT_EVENTS               = FEVENTS[]
        TABLES
          T_OUTTAB                = ITAB[].
    ENDFORM.                    " Z_REUSE_ALV_GRID_DISPLAY
    *&      Form  Z_TOPOFPAGE
    FORM Z_TOPOFPAGE.                                           "#EC NEEDED
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY = FHEADER[].
    ENDFORM.                                " FORM Z_TOPOFPAGE
    Edited by: Sudhanshu Jain on May 6, 2009 8:45 AM

  • Problem in ME22n - BADI.

    HI Experts,
    I have a requirement to make in transaction ME22n.I have used BADI - ME_PROCESS_PO_CUST.
    After selecting the Purchase Order Type(MEPO_TOPLINE-BSART) for only a list of specific types and clicking on the
    Check box -- Delivery Complete (MEPOITEM-ELIKZ) in the Item ->Delivery tab, It should trigger a popup.
    I am able to trigger this well, But the problem is If I save the changes made and then change the PO type to some other specified in my list of choices. The popup is still triggered.
    I have coded with conditional If for checkbox ='X' and taking the field  MEPOHEADER-BSART and then proceeded.
    Please help me to solve this.
    Regards,
    Gopinath

    the code is:
    DATA : w_mepoheader TYPE mepoheader.
      CLEAR: g_po_type_flag,
             g_po_ebeln.
      w_mepoheader = im_header->get_data( ).
      CASE w_mepoheader-bsart.
        WHEN 'ZNB'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'NB'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'ZPO3'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'ZPO4'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'ZPO5'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
        WHEN 'ZUB1'.
          g_po_type_flag = 'X'.
          g_po_ebeln = w_mepoheader-ebeln.
      ENDCASE.
      DATA: w_returncode(1)  TYPE c,
            w_mepoitem       TYPE mepoitem,
            l_flag           TYPE c,
            notify_type      TYPE c LENGTH 5 VALUE 'L2',
            w_bdcdata        TYPE bdcdata,
            w_bdcdata_tab    TYPE TABLE OF bdcdata,
            w_options        TYPE ctu_params.
      w_mepoitem = im_item->get_data( ).
      IF g_po_type_flag = 'X'.
        IF w_mepoitem-elikz = 'X'.
          l_flag = 'X'.
        ENDIF.
      ENDIF.
      IF l_flag = 'X'.
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            titlebar              = 'Clorox '
            text_question         = 'Do you want to create a Vendor Quality Notification?'(001)
            text_button_1         = 'Yes'(002)
            icon_button_1         = 'ICON_OKAY'
            text_button_2         = 'No'(003)
            icon_button_2         = 'ICON_CANCEL'
            default_button        = '1'
            display_cancel_button = ''
            popup_type            = 'NO_ICON'
          IMPORTING
            answer                = w_returncode.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.

  • Problem in Distributed transaction with Oracle 8.1.7 and Weblogic 7.0

              Hi,
              I am using two unmanaged weblogic 7.0 servers and oracle 8.1.7 enterprise edition.
              I am using oracle.jdbc.xa.client.OracleXADataSource for creating connection pool
              in weblogic. The pool gets created fine but when connection it is getting used
              it throws up following error.
              java.sql.SQLException: ORA-02044: transaction manager login denied: transaction
              in progress
              ORA-06512: at "SYS.JAVA_XA", line 0
              ORA-06512: at line 1
              at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
              at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
              at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
              at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
              at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822)
              at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1446)
              at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1371)
              at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1900)
              at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
              at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:407)
              at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:171)
              at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
              at weblogic.jdbc.jta.DataSource.start(DataSource.java:569)
              I don't know what is causing this problem.Please send me the pointers.
              Regards,
              Vikash
              

    ID is a NUMBER and id.toString() is not a number, for
    example it ca be a null reference.
    well we tryed also this version :
    ps.setLong(1, id.longValue());
    moreover the exception wasn't thrown for the value of id :56 but was thrown for the value of id : 88. Hence I think it is a case of something other than my code.
    michal

  • Performance problem for mass transactions after upgrade from 4.7 to ECC6.0

    Hi All,
    After upgrade from 4.7 to ECC 6.0 (IS-U), mass transactions such as FPY1, FPVA, FP04M are taking very long time to complete. for example, before upgrade the jobs sceduled for FPVA transaction take around 5k-6k seconds. Whereas after upgrade the jobs for FPVA with the same variant takes around 9k-10k seconds. I am unable to figure out the cause for exponential increase in the duration of several mass-jobs (after the upgrade). Are there any SAP notes or do we need to do any customizing setting to solve this problem? Does anyone face this kind of problem?
    Thanks in advance
    Taj

    Hi,
    This is normal after upgrade to 6.0, I have faced the same in all upgrades I've done and some others that I have involved also. If you did not requests and going live upgrade check I strongly recomend to schedule an Early Watch Check to minimize the impact. Times won´t be the same but can be very close if the system is tuned well. We have tuned systems that now run with good performance after this services.

  • Problem in a transaction after upgrade

    Hi ,
    I am getting a problem in transaction after upgrade.
    I am getting like "Too Many sctions"  in a Tab. Its a custom tab in a standard transaction.
    But its working fine before upgrade.
    Could you please suggest me, what can I do for this.
    some more  info.
    Errors: Dynpro genearation for this scrn has errors.
    call tcode SLG1 for object BDT_Dynpro_generate.
    And in SLG1 I am getting like this
    "Object RERO screen  RERO03: too many sctions."
    Regards,
    sarath

    Well if you are willing to invest money, even SAP will help you out, but i guess thats not what you are after :).
    The message "too many sections" is quite telling so i suppose you have too much of "something" on that subscreen.
    To more preciseley define what "something" may be you could do a where used on MESSAGE 03 of messagle class RERO.
    Or try to debug it and set a breakpoint at statement MESSAGE.
    This way you should be able to find out of WHAT exactky you have too much. When this is done you probably can think yourself of a way to overcome this.

  • Problem with CALL TRANSACTION 'VA33' with PARAMETER ID 'AUN'

    I started to post this as a problem, but stumbled into the solution while testing further.  Since I didn't find a solution in the SDN.SAP Forums I'm entering this to help others who may have the same problem.
    This code would not work:
          SET PARAMETER ID 'AUN' FIELD sy-lisel(10).   "sy-lisel(10) contains the Scheduling Agreement on the selected line of the report.
          CALL TRANSACTION 'VA33' AND SKIP FIRST SCREEN.
    It would go to Transaction VA33 but would always default to the last Scheduling Agreement accessed manually instead of the one I needed to see via this call.
    When I change the transaction to VA03 it works:
          SET PARAMETER ID 'AUN' FIELD sy-lisel(10).
          CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    We can not access a Scheduling Agreement from VA03 on-line, but for some reason this call displays the correct S/A, and System Status says it is running transactin VA03. 
    Perhaps it is because we are using a custome Order Type for Scheduling Agreements (YALZ)?
    Best wishes to our SAP friends.

    Hi,
    VA33 is for schedulinng Agreement so use..
    SET PARAMETER ID 'LPN' FIELD sy-lisel(10).
    AUN - Order number
    LPN - Scheduling agreement number
    now it works..
    Regards,
    Sathish Reddy.

  • Problem with call transaction and a query

    Hi,
    Whe have a query that has its own Z tcode, we are working with this "EXIT_SAPLCORF_103"  within the tcode CO11N. Inside the include "ZXCOFU13" we call the query Tcode and it is displayed on screen but with no data.
    The table "itbdcdata" record well the data of the inputs in the query recording so you can see with the WERKS and the number of reserve (3994) in the recording.
    Why the call transaction display the query screen with no data...? and how can i pass the inputs to the query screen so it be executed.
    Thanks on advance.
    David Fúnez
    Tegucigalpa, Honduras.
    This is the recording:
    AQZZZ_USER_GRMA=Z_QUERY_PP_003     1000X                                                                                BDC_CURSOR     SP$00002-LOW
                                                                BDC_OKCODE     =CRET
                                                                S_WERKS-LOW     1202
                                                                SP$00002-LOW           3994
                                                                %ALV     X
    this is the code in the INCLUDE
    *&  Include           ZXCOFU13
    DATA: itbdcdata TYPE bdcdata    OCCURS 0 WITH HEADER LINE,
          optoption TYPE ctu_params.
    REFRESH itbdcdata.
    CLEAR   itbdcdata.
    itbdcdata-program  = 'AQZZZ_USER_GRMA=Z_QUERY_PP_003'.
    itbdcdata-dynpro   = '1000'.
    itbdcdata-dynbegin = 'X'.
    APPEND itbdcdata.
    itbdcdata-fnam = 'BDC_CURSOR'.
    itbdcdata-fval = 'SP$00002-LOW'.
    APPEND itbdcdata.
    itbdcdata-fnam = 'BDC_OKCODE'.
    itbdcdata-fval = '=CRET'.
    APPEND itbdcdata.
    itbdcdata-fnam = 'S_WERKS-LOW'.
    itbdcdata-fval = '1202'.
    APPEND itbdcdata.
    itbdcdata-fnam = 'SP$00002-LOW'.
    itbdcdata-fval = caufvd_imp-rsnum.
    APPEND itbdcdata.
    itbdcdata-fnam = '%ALV'.
    itbdcdata-fval = 'X'.
    APPEND itbdcdata.
    CLEAR optoption.
    optoption-dismode = 'A'. "A is visible
    optoption-updmode = 'S'.
    CALL TRANSACTION 'ZRESV' USING itbdcdata OPTIONS FROM optoption.

    problem solved.

  • Problem with Call Transaction

    hello,
    i am doing call transaction to ME41 in mode 'A' (visible). The problem is when it go to screen SAPLMLSP 0200, in this screen stop call transaction, no error, no okcode, no data,..why?
    thanks,
    regards,

    Hi,
    Please check your BDC Program. i think you are not done the recording for that screen. Pleae do the recording one more time and check the program.
    Thanks,
    Venkat

Maybe you are looking for

  • How to delete a file in Keynote Remote for iPhone4?

    Any one know how to delete a file in Keynote remote app for iPhone4? I uploaded a Keynote file from iDisk to my iphone and I can't delete the file. The file does not show up when I connect my phone to iTunes. I also cannot connect my Iphone to Keynot

  • How can I make new tabs open next to the current tab?

    New tabs are advertised in Firefox 5.0 as being set to open next the the current tab by default. Mine, however, do not do this. They open to the right of the last tab, necessitating a lot of tab-scrolling, and a minor waste of time. I have not instal

  • How to invoke the sql lodaer?

    hi, i have installed oracle 10g and the loader should have been installed by default as i have been told. Can you tell me how to invoke the loader?. I tried sqlldr in the sql> prompt but receive a "command not known" error. thx

  • GOS - Transaction xd03 or me5a

    How can I do to save the attachment from GOS toolbar (in transaction as XD03 or me5a) to my Content Server ? I've configured to save the attachment of Workplace in Content Server, but I need to do the same with transactions like XD03 or ME5A. Thank's

  • Messages not available for monitoring in both stacks

    Hi All, Recently the PI system was upgraded to PI 7.40. Now in Production environment, i am unable to see the processed message log for the past dates,. i.e processed messages from the previous day alone is being reflected. To resolve this, we increa