Problem in ME23N

Hello, I'm trying to catch the event modify for example, into a user exit, but i can't do it.
I have
         CASE sy-tcode.
                WHEN 'ME23N'.
->                  IF sy-title CS 'Create'.
                          PERFORM xxxxxxxxxxx USING  xxxxx.
                     ENDIF.
         ENDCASE.
But sy-title always contain the same expression when I modify the document or create other new.
For e.g.: If I change a value in a field and then press Intro
How I could see the action?
Thank you in advance.

Hi Jose
I seem to recall having this problem a while back on a 4.6C system when using user exit EXIT_SAPLEBND_002. We assumed that SY-TCODE would be ME21N for create, ME22N for change and ME23N fro display.
But, for example, if you go in to display a PO with ME23N, and then press the Change button to get it into change mode, the SY-TCODE stayed ME23N. I think in the end we distinguished between create and change / display by checking whether the PO Number (EBELN) was initial on the first line item of the IT_BEKPO structure. Or something equally inelegant.
Sorry I can't be more helpful.
Cheers
Lyal

Similar Messages

  • Purchase order Print preview Problem in ME23N

    Hi all,
    We are trying to see print preview of purchase order in ME23N, but, when we press print preview button another window named "SAPLPD" is poping up. The pop-up window looks like command propmt window and contains lines like
    "(11:25:54 AM) Icon DLL loaded.
    (11:25:54 AM)
    (11:25:54 AM) Network Communication via SAP-NiLib
    (11:25:54 AM) Hostname: L04WSChe0300
    (11:25:54 AM) IP Address: 10.87.7.11
    (11:25:54 AM)
    (11:25:54 AM) SAPLPD Version 6.28 for Windows/NT (OPT) is listening
    (11:25:54 AM) OS-Info: version = 5.1, build = 0/2600, text = Service Pack 2
    (11:25:54 AM) Copyright © 1992-2001 SAP AG
    (11:25:54 AM)
    (11:26:04 AM)
    (11:26:04 AM) Receive job for printer __DEFAULT (Berkeley LPD protocol / RFC1179)
    (11:26:04 AM) send_status called
    (11:26:05 AM) send_status called
    (11:26:05 AM) send_status called
    (11:26:07 AM) send_status called
    (11:26:07 AM) send_status called
    (11:26:07 AM) Job 000jgjJp.DEV for user DEV2 queued.
    (11:26:07 AM) Start printing job 000jgjJp.DEV on printer MICROSOFT OFFICE DOCUMENT IMAGE WRITER
    (11:26:13 AM) Error: Unable to start print job, Windows rc = -2, Error = Overlapped I/O operation is in progress.
    (11:26:13 AM) Error: BG: saplpd_open_dc failed, msg = 808 SAPLPD:Windows Problem, siehe SAPLPD Protokoll
    How can I fix this problem and see print preview of purchase order in ME23N.
    Please help me!
    Thanks,
    Rajan

    hi,
    DATA: w_compop    TYPE ssfcompop.
    w_compop-tdimmed   = ' '.     "Print Immediately control parameter should be empty..
    Then only print preview pop-up will come..
    then call your smartform like this..
    CALL FUNCTION fnam
        EXPORTING
          control_parameters = w_ctrlop
          output_options     = w_compop
              TABLES
          it_vbdkr           = it_tvbdkr[]
          it_vbdpr           = tvbdpr[]
          it_zglentitycode   = it_zglentitycode[].
    regards
    vijay

  • Problem with Me23n transaction

    Hi
    I am facing one problem where when i run transaction ME23 n to display the PO, and than if i select the button through which i can enter other PO numbers and display them ,I get the error that
    Input should be in the form__.__._~,_V".message number 00 088
    As i am just in display mode i am not doing anything just viewing the PO how can i get such message.
    I have tried changing my Default settings also it does'nt help.
    This problem is coming only for me not for others.all others are able to see it.
    Can you please suggest what is the problem
    This prolem is not specific to any PO this is commom to all the PO's i am trying to view.
    Once i get this error my system hangs i cant go back ,i have to log off to come out.

    What has happened is that the number is not entered in the correct format. This happened in your last PO. When you go to ME23N it tries to retrieve your last PO and gets this error.
    To correct this, please go to ME21N and then select the button to display other POs.
    I am certain this will solve your problem. If, by chance, it does not, create a dummy PO and save it. Then go to ME23N and try to display the PO you want.
    Let me know if it resolves your problem
    Lakshman

  • In ME23N where do the data saves in TEXT TAB (means tables)

    HI,
    i have small problem in ME23n screen regarding wher do data gets saved means in which table.
    in ME23n , In Header we have TEXT TAB,
                                                                     In tht we have HEADER TEXT -
    In this we have option for entering                                                                               
    HEADER NOTE
                                                                                    PRINCING TYPE
    in which table does the data entered in header note will be saved.
    please tell table name where this data get saves.
    thanks in advance.

    Hi ajju_bobby  ,
    these texts are text modules and they are saved in tables STXL in raw format.
    you can get the text via FM read_text.
    Double click on text edit control - choose GOTO>HEADER then you get detailed info of the text module, usefull for using the FM
    regards
    rea

  • ME23N Condition tab

    Hello every1,
    A user is facing problem with ME23N tcode saying he's not getting "Condition" tab under this tcode.
    Modifiying object's under this tcode (ex: M_BEST_BSA...) and activity solve this problem.....?
    if some body know's this please revert back..........
    Regards,
    Mirza

    The user will not be able to view the conditions tab in the PO under the following condtions:
    - Item category for the PO is K consignment.
    - Free of charge indicator has been ticked in the item details.
    - User parameters (EFB): Serves to control authorization for price display or entry in external purchasing documents (POs or outline agreements). EFB is used for function authorizations in purchasing. Check the value assigned to EFB in the user master record.

  • Text in PO(text tab in header & item) is not shown in the Print Preview

    Hi Guys,
                I face a problem in ME23N.Text maintained in Purchase Orders (text tab in header & item)  is not shown in the Print Preview.
                Can you guys help.Do I need to write a subroutine pool for this.
                <<text removed by moderator>>
    Regards,
    Rajiv
    Edited by: Matt on Nov 12, 2008 1:20 PM

    Hi ,
    Use bapi bapi_po_getdetail .
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
        EXPORTING
          purchaseorder   = is_ekko-ebeln
          item_texts      = c_x
          header_texts    = c_x
        TABLES
          po_header_texts = it_header_text
          po_item_texts   = it_item_text.
    Regards
    Neetesh

  • Me23n user exit dynpro problem

    Hello Everybody,
    I'm developing a user exit for me23n transaction. I have added a tab in which i have some fields i want to fill, but i'm having the next problem.
    when i enter in the me23n transaction,  i push the edit button and those fields appear on editable state, but when i modify the values and push save the fields the fields continue in editable state.
    I have tried to solve this problem in the catching the MESAVE action in the pai of the me22 and calling leaving to the transaction me23 with the vnew values but it's not working. Any ideas?
    Here is the source code ( dynpro 111)
    process after input.
      field ekpo_ci-zzref_alb.
      field ekpo_ci-ZZFECH_DES.
      field ekpo_ci-zzeqveh.
      field ekpo_ci-zzmatricula.
      field ekpo_ci-zzeqtar.
      field ekpo_ci-zztarjeta.
      field ekpo_ci-ZZCENTRO_SER.
      field ekpo_ci-ZZREF_FACT.
      field ekpo_ci-ZZCLIENTE.
      field ekpo_ci-ZZPAIS.
      field ekpo_ci-zzdoc.
    module user_command_0111.
    module USER_COMMAND_0111 input.
    if sy-tcode = 'ME23N' and sy-ucomm = 'METOGG'.
    leave to transaction 'ME22N'.
    endif.
    if sy-tcode = 'ME22N' and sy-ucomm = 'METOGG'.
      leave to transaction 'ME23N'.
    endif.
    if sy-tcode = 'ME22N' and sy-ucomm = 'MESAVE'.
    sy-ucomm = 'METOGG'.
      leave to transaction 'ME23N'.
    endif.
    Thanx

    Hi,
    Check the code below:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    id = '0001'
    language = sy-langu
    name = sname "sales doc is given here
    object = 'VBBK'
    TABLES
    lines = tlines.
    if not tlines is initial.
    LOOP AT tlines.
    CASE sy-tabix.
    WHEN 1.
    ztable-field1 = tlines-tdline.
    WHEN 2.
    ztable-field2 = tlines-tdline.
    WHEN 3.
    ztable-field3 = tlines-tdline.
    ENDLOOP.
    UPDATE ztable SET field1= ztable-field1
    field2= ztable-field2
    field3 = ztable-field3
    WHERE vbeln = vbak-vbeln.
    ENDIF.
    endif.
    Regards
    Kannaiah

  • Me23n Print preview display problem for specific o/p type

    Hello gurus,
    A small problem..
    I have modified the Smartform for a specific o/p type in PO and the moved to PRD
    when seeing the Print preview in me23n the Smartform is not being displayed in PRD....
    all other setting in ->messages, further data in me22n are same as for other o/p types..
    The poblem is only for this o/p type POs all other o/p types the print-preview is displaying the form..
    suggestions required...
    thnks in advance

    sorry dev...
    hi srikar
    i think  there is a missing of cluster table ..
    check the t-code se09
    go to the customizing release  request .
    there is a ur updated nace release request number.
    expand that request number .
    see there is an another request number.
    again expand it.
    check whether there is a view cluster maintenance data or not?
    if it is present.
    expand it there u see the cluster table.
    else.
    u mistaked in nace transport.
    regards
    surender
    Edited by: surender on Feb 5, 2009 12:18 PM

  • MIGO - ME23N problem with withdraw quantity

    Hello,
    We have found out an error when shipping outsourced materials with MIGO.
    The problem comes when in a outsourcing material with components provided by us we modify the purchasing document by moving part of the stock of the component from one plant to another and dispatching the stock from only one plant. When doing this stock is not consumed from this plant, but proportionally consumed from both plants.
    The given example may clarify the process:
    The purchasing document has a purchasing quantity of 4 (header material). For this material to be sent from the sub-contractor to us, 16 units of one component are required (4 each header unit).
    In ME23N the component data is changed, modifying the plants and creating a new line as follows. From:
    Header (4 u.)
         Component (16 u.)     plant A
    To:
    Header (4 u.)
         Component (12 u.)      plant A
         Component (4 u.)     plant B
    So basically we are moving part of the stock of the component to another plant.
    The problem comes when plant B has stock of the component and it is sent to the sub-contractor and plant A has no stock available.
    If with MIGO we try to dispatch 1 u. of the header by consuming only the 4 u. of plant B and unmark in MIGO stock from plant A, in MB51 the stock is consumed as it should be (4 u. from plant B), but when checking again in ME23N or RESB table stock is consumed proportionally.
    The following process in MIGO
    Header (4 u.)     1 dispatched.
         Component (12 u.)     0 dispatched (not marked)
         Component (4 u.)     4 dispatched (marked)
    Should give the following result in RESB or ME23N:
    Header (4 u.)     1 dispatched.
         Component      Requirement qty 12 u.          Quantity Withdraw 0     Plant A
         Component      Requirement qty 4 u.          Quantity Withdraw 4     Plant B
    But we find the following result:
    Header (4 u.)     1 dispatched.
         Component      Requirement qty 12 u.          Quantity Withdraw 3     Plant A
         Component      Requirement qty 4 u.          Quantity Withdraw 1     Plant B
    And thatu2019s clearly wrong. First because all the quantity withdraw was from Plant B and second because Plant A has no Stock.
    We think this might be a code error.
    Thank you very much for your advice.
    Regards
    Edited by: Adolfo Busca on Apr 23, 2009 10:46 AM

    Hi, Adolfo
    I did a test following your example and got the same result.
    Value of field Quantity Withdrawn did increase proportionally when you receive the header item.
    In fact, I would rather say it shows the quantity requirement deduction of the component instead of the quantity of component you actually withdrew.
    In MD04, you can see the requirement quantity of the component is also consumed proportionally while the available quantity is reduced as you actually withdrew.
    With one more test, we can create a PO with Header and Component A & B. When doing GR of header item, we mark Component A and unmark Component B. In ME23N, we can see that Quantity Withdrawn field of Component B still increased. So we may say it just shows the requirement deduction of Component B.
    Hope it can help.
    Any further result, let's discuss it in more detail.
    Wesley

  • PROBLEM ABOUT HIDING SPECIFIC KIND OF POSITIONS TC ME23N

    HI all:
    I would like to hide automatically the positions of a purchase order when I go to transaction me23n and I try to visualize it.
    The type of positions referred are the next:
    I prefer not to se the positions whose field LOEKZ is different to space.
    What do you recommend me not modifying the standard?.
    Is there any specific user-exit?. I've tried many of them but you have to check the header or the item detail.
    Or is there any badi?
    I've tried looking for some bodies used in the transaction but for example in method:
    IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM . It is used only when you introduce a modification in the table control 1211 of transaction me23n
    Thanks in advance.
    Jose Luis.

    Hi Friend,
    To cater this specific requirement, hiding a specific field whenever some condtion mate is to be handled through enhancement spot
    This kind requirement i got in SD, no Exit or BADI is going to help you, enhancement spot (is behave like exit or BADI provided to enhance standard SAP prorgam without changing that; SAP provided this from 6.0 onwards) is the only way.
    Try to find any enhancement spot in standard SAP program which meets your requirement.
    Regards
    Krishnendu

  • Problem Related to ME23N?

    Hi All,
    I want to know the use of GR-Bsd IV check box in invoice tab in ME23N? where it will effect if I click on it?

    t is very useful indicator for purchase order.
    If you not set this indicator you canu2019t generate invoice verification with reference of good receipt.
    Exa: If your purchase order is for 1000 Nos. and two different good receipt done for this purchase order. So you have for create two different invoice verification for two different good receipt or two different consignment but if you not set this indicator system not display both two good receipt against purchase order. So at the time of first invoice verification creation system not display any error for invoice verification but when you want to create second invoice verification you canu2019t generate that.
    So finally use of this indicator is that u201CYou can create invoice verification with reference of different good receiptu201D
    Remember: - If you not set this indicator at the time of purchase order and two different good receipt created against this purchase order and for both good receipt invoice verification is required at different time at that time you canu2019t create second invoice verification for second good receipt.
    Regards,
    Mahesh Wagh

  • ME23N Print Preview problem

    Hi,
    When I click on button Print Preview in transaction ME23N it get a screen with an ABAP List in place of sapscript form preview.
    Until the last week it was normal, someone know what happened? There´s someplace where I configure this?
    Thank you all in advance.
    Regards,
    Charles Oliveira

    Hi Ackroyd,
    I already check SPRO. It seems normal.
    Like I´ve said, until last week it was normal. Now it is previewing the ABAP list and not only to one user and one ambient.
    Just like you said, looks that someone changed the settings. But I don´t know what specific setting.
    If you know, please let me know.
    Thank you.
    Regards,
    Charles Oliveira

  • Problem in ALV report

    Hi Friends,
    I have the following 2 problems in ALV report
    1) Logo is not getting displayed in the report.
    2) When i click on the Purchase order number in the report  the interactive report is not working,i am not able to see report of First interactive level.
    can you help it out friends.
    Thanks and regards
    Dinesh
    REPORT  YSDBALV1
    tables: ekko , ekpo .
    type-pools: slis .
    Table for Display Header
    data:i_header type slis_t_listheader with header line.
    *Fieldcat Declaration
    data:fieldcatalog type slis_T_fieldcat_alv  WITH HEADER LINE.
    *Table of Events
    data:i_event type slis_t_event with header line .
    For Layout
    data:i_layout type slis_layout_alv .
    data: text(30) .
    *Internal Table Declaration
    data: begin of it_final occurs 0 ,
          ebeln like ekko-ebeln ,           "Purchasing Document No.
          bedat like ekko-bedat ,           "Purchasing Document Date
          matnr like ekpo-matnr ,           "Material No.
          netwr like ekpo-netwr ,         "Net Order Value in PO Currancy
          meins like ekpo-meins ,           "UOM
          chk(1) ,
          light(1) ,
          change like ekpo-menge ,
          end of it_final .
    **select option Declaration
    selection-screen begin of block block.
    select-options: s_ebeln for ekko-ebeln  .
    selection-screen end of block block .
    selection-screen begin of block block1 .
    parameters:grid radiobutton group r .
    parameters:list radiobutton group r .
    selection-screen end of block block1 .
    at selection screen
    at selection-screen .
    select single * from ekko where ebeln in s_ebeln .
    if sy-subrc <> 0 .
       message e000(8I) WITH 'No Data Exists' .
    endif .
    start-of-selection .
    if grid = 'X' .
    perform get_data .
    perform event using i_event[] .
    perform field using fieldcatalog[] .
    perform layout using i_layout .
    perform grid_display .
    endif .
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    form get_data .
    *DATA Retrieval from tables
    SELECT EKKO~EBELN
           EKKO~BEDAT
           EKPO~EBELP
           EKPO~MATNR
           EKPO~NETWR
           EKPO~MEINS
           EKPO~MENGE
           EKPO~BPRME
           INTO CORRESPONDING FIELDS OF  table IT_FINAL
           FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
           WHERE EKKO~EBELN IN S_EBELN.
           APPEND IT_FINAL.
    endform.                    " get_data
    *Getting the Event for Top of Page display.
    *&      Form  event
          text
         -->P_I_event[]  text
    form event  using    p_i_event type slis_t_event.
      clear p_i_event .
      refresh p_i_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = p_i_event
    EXCEPTIONS
       LIST_TYPE_WRONG       = 1
       OTHERS                = 2
    read table p_i_event with key name = slis_ev_top_of_page into i_event.
          if sy-subrc = 0.
                 move 'TOP_OF_PAGE_PO' to i_event-form.
                 modify p_i_event from i_event index sy-tabix transporting form.
          endif.
          clear i_event.
    endform.                    " event
    *Display Top-of –Page Details and Logo
    form top_of_page_po .
           clear i_header .
           refresh i_header .
           write sy-datum to text.
           i_header-typ = 'H'.
           i_header-info = 'PURCHASE OREDER DETAILS'.
           append i_header.
          *Logo Display
          CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
                 EXPORTING
                     it_list_commentary       = i_header[]
                     I_LOGO                   = 'ENJOYSAPLOGO'.
    endform .
    *Field Catalog Append
    *&      Form  field
          text
         -->P_fieldCATALOG[]  text
    form field using  p_fieldcatalog type slis_t_fieldcat_alv.
         clear fieldcatalog.
          fieldcatalog-fieldname   = 'EBELN'.
          fieldcatalog-seltext_m   = 'Purchase Order No'.
          fieldcatalog-col_pos     = 1.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'BEDAT'.
          fieldcatalog-seltext_m   = 'PO Date'.
          fieldcatalog-col_pos     = 2.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'MATNR'.
          fieldcatalog-seltext_m   = 'Material No'.
          fieldcatalog-col_pos     = 4.
          fieldcatalog-outputlen   = 20.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'NETWR'.
          fieldcatalog-seltext_m   = 'Net Value '.
          fieldcatalog-col_pos     = 5.
          fieldcatalog-outputlen   = 20.
          fieldcatalog-do_sum = 'X'.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'MEINS'.
          fieldcatalog-seltext_m   = 'Units'.
          fieldcatalog-col_pos     = 6.
          fieldcatalog-outputlen   = 4.
          append fieldcatalog .
          clear fieldcatalog.
    endform.                    " field
    *&      Form  layout
          text
    form layout  using    p_i_layout TYPE SLIS_LAYOUT_ALV .
    i_layout-zebra  = 'X'.
        i_layout-lights_fieldname = 'LIGHT'.
        i_layout-lights_tabname = 'IT_FINAL'.
        i_layout-box_fieldname = 'CHK'.
        i_layout-box_tabname  = 'IT_FINAL'.
        i_layout-edit = ' '.
    endform.
    *To display Buttons in the MENU BAR if needed
    FORM SET_PO_PF_STATUS USING  P_I_EXTAB TYPE
                     SLIS_T_EXTAB.
                     SET PF-STATUS 'MENUPO'.
      ENDFORM.
    *Event for Interactive display of ALV report
    form USER_COMMAND  using r_ucomm like sy-ucomm
                             rs_selfield type slis_selfield .
      if r_ucomm = '&IC1'.
      READ TABLE IT_FINAL  index   rs_selfield-tabindex.
      write:/ IT_FINAL-ebeln.
      endif.
    endform .
    *Parameters of FM  REUSE_ALV_GRID_DISPLAY
    *&      Form  grid_display
          text
    -->  p1        text
    <--  p2        text
    form grid_display .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM                = SY-REPID
       I_CALLBACK_PF_STATUS_SET          = 'SET_PO_PF_STATUS'
        I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
        IS_LAYOUT                         = I_LAYOUT
        IT_FIELDCAT                       = FIELDCATALOG[]
        IT_EVENTS                         = I_EVENT[]
      TABLES
        t_outtab                          = IT_FINAL.
    endform.                    " grid_display

    *& Report  YSDBALV1
    REPORT  YSDBALV1.
    tables: ekko , ekpo .
    type-pools: slis .
    Table for Display Header
    data:i_header type slis_t_listheader with header line.
    *Fieldcat Declaration
    data:fieldcatalog type slis_T_fieldcat_alv WITH HEADER LINE.
    *Table of Events
    data:i_event type slis_t_event with header line ,
         wa_event type line of slis_t_event.
    For Layout
    data:i_layout type slis_layout_alv .
    data: text(30) .
    *Internal Table Declaration
    data: begin of it_final occurs 0 ,
    ebeln like ekko-ebeln , "Purchasing Document No.
    bedat like ekko-bedat , "Purchasing Document Date
    matnr like ekpo-matnr , "Material No.
    netwr like ekpo-netwr , "Net Order Value in PO Currancy
    meins like ekpo-meins , "UOM
    chk(1) ,
    light(1) ,
    change like ekpo-menge ,
    end of it_final .
    **select option Declaration
    selection-screen begin of block block.
    select-options: s_ebeln for ekko-ebeln .
    selection-screen end of block block .
    selection-screen begin of block block1 .
    parameters:grid radiobutton group r .
    parameters:list radiobutton group r .
    selection-screen end of block block1 .
    at selection screen
    at selection-screen .
    select single * from ekko where ebeln in s_ebeln .
    if sy-subrc <> 0 .
    message e000(8I) WITH 'No Data Exists' .
    endif .
    start-of-selection .
    if grid = 'X' .
    perform get_data .
    perform event using i_event[] .
    perform field using fieldcatalog[] .
    perform layout using i_layout .
    perform grid_display .
    endif .
    *& Form get_data
    text
    --> p1 text
    <-- p2 text
    form get_data .
    *DATA Retrieval from tables
    SELECT EKKO~EBELN
    EKKO~BEDAT
    EKPO~EBELP
    EKPO~MATNR
    EKPO~NETWR
    EKPO~MEINS
    EKPO~MENGE
    EKPO~BPRME
    INTO CORRESPONDING FIELDS OF table IT_FINAL
    FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
    WHERE EKKO~EBELN IN S_EBELN.
    APPEND IT_FINAL.
    endform. " get_data
    *Getting the Event for Top of Page display.
    *& Form event
    text
    -->P_I_event[] text
    form event using p_i_event type slis_t_event.
    clear p_i_event .
    refresh p_i_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    ET_EVENTS = p_i_event.
    EXCEPTIONS
    LIST_TYPE_WRONG = 1
    OTHERS = 2.
    read table p_i_event with key name = slis_ev_top_of_page into wa_event.
    if sy-subrc = 0.
    move 'TOP_OF_PAGE_PO' to i_event-form.
    modify p_i_event from i_event index sy-tabix transporting form.
    endif.
    clear i_event.
    endform. " event
    *Display Top-of –Page Details and Logo
    form top_of_page_po .
    clear i_header .
    refresh i_header .
    write sy-datum to text.
    i_header-typ = 'H'.
    i_header-info = 'PURCHASE OREDER DETAILS'.
    append i_header.
    *Logo Display
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = i_header[]
    I_LOGO = 'ENJOYSAP_LOGO'.
    endform .
    *Field Catalog Append
    *& Form field
    text
    -->P_fieldCATALOG[] text
    form field using p_fieldcatalog type slis_t_fieldcat_alv.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order No'.
    fieldcatalog-col_pos = 1.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'BEDAT'.
    fieldcatalog-seltext_m = 'PO Date'.
    fieldcatalog-col_pos = 2.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material No'.
    fieldcatalog-col_pos = 4.
    fieldcatalog-outputlen = 20.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'NETWR'.
    fieldcatalog-seltext_m = 'Net Value '.
    fieldcatalog-col_pos = 5.
    fieldcatalog-outputlen = 20.
    fieldcatalog-do_sum = 'X'.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Units'.
    fieldcatalog-col_pos = 6.
    fieldcatalog-outputlen = 4.
    append fieldcatalog .
    clear fieldcatalog.
    endform. " field
    *& Form layout
    text
    form layout using p_i_layout TYPE SLIS_LAYOUT_ALV .
    i_layout-zebra = 'X'.
    i_layout-lights_fieldname = 'LIGHT'.
    i_layout-lights_tabname = 'IT_FINAL'.
    i_layout-box_fieldname = 'CHK'.
    i_layout-box_tabname = 'IT_FINAL'.
    i_layout-edit = ' '.
    endform.
    *To display Buttons in the MENU BAR if needed
    FORM SET_PO_PF_STATUS USING P_I_EXTAB TYPE
    SLIS_T_EXTAB.
    SET PF-STATUS 'MENUPO'.
    ENDFORM.
    *Event for Interactive display of ALV report
    form USER_COMMAND using r_ucomm like sy-ucomm
    rs_selfield type slis_selfield .
    if r_ucomm = '&IC1'.
    READ TABLE IT_FINAL index rs_selfield-tabindex.
    set parameter id 'VL1' field it_final-ebeln.
    call transaction 'ME23N'.
    endif.
    endform .
    *Parameters of FM REUSE_ALV_GRID_DISPLAY
    *& Form grid_display
    text
    --> p1 text
    <-- p2 text
    form grid_display .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_PF_STATUS_SET = 'SET_PO_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    IS_LAYOUT = I_LAYOUT
    IT_FIELDCAT = FIELDCATALOG[]
    IT_EVENTS = I_EVENT[]
    TABLES
    t_outtab = IT_FINAL.
    endform. " grid_display
    Regards,
    Rusidar S.

  • Material number is not populating in PO in tcode ME23N

    Hi,
    The material number is not populating in PO in transaction ME23N. The coloumns is displaying as blank and supressed(Gray).
    This problem occured during the upgradation from 4.6C to ECC6.0.
    We have checked the SPRO configuration for field selections and these are not having any problem.
    Data is updated in database tabes but it is not displayed in ME23N screen.
    Please advice.
    Thanks,
    Rakesh

    check OSS Note 492757 - ME21N/ME52N: You cannot set field selection for material
    maybe it helps to solve your issue

  • How can I print PDF attachments from ABAP report in transaction ME23N?

    Hi,
    Users attach PDF files using "services for objects" in transaction ME23N.
    How can I print the PDF attachments from ABAP report ?
    Thanks in advance,,

    Hi,
      check this link,this might help you to solve your problem
    /people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
    Regards
    Kiran Sure

Maybe you are looking for

  • How can i print out a larger image of my VI on standard printer paper?

    When I select the scale to fit option for my block diagram when attempting to print, the image that is printed is too small for my purposes. However, when I uncheck the scale to fit option for the block diagram, my VI is too tall to be displayed on o

  • Setting timeout of web service client

    I created a web service client using the java proxy for a web service by running my web service in weblogic workshop test browser and by using the jar file created by clicking on "Java Proxy" button. i am calling my web service my adding code similar

  • Want to SYNC, not restore

    Unfortunately, I plugged my iPhone into a work notebook to charge last week, and it synched with a blank Outlook calendar. It wiped all calendar entries *except* those for October, November and future months, and recurring entries like birthdays. Ton

  • I WANT TO REPORT HIM TO KEEP

    xxxxxxxxxxxx IS HIS SCREEN NAME AN HE TOLD ME I HOPE U **bleep**ING DROP DEAD YOU **bleep**ING BITCH I BELIEVE THAT IS VERY THREATENING BEINGS I JUST HAD SURGERY YESTERDAY FOR STAGE 3 BREAST CANCER AN MOST LIKELY HAVE TO GO BACK TO SURGERY WITH IN TH

  • Elements 8 editing raw file in CS4

    I recently upgraded Elements (to Elements 8) and photoshop to CS4.  I use elements to organize my photos but I like to edit in CS4.  When I select a raw image in elements and select Edit in Photoshop, Photoshop CS4 does not open the raw image in ACR,