EXPERTS PLZ HELP ME IN SAP SCRIPT URGENT

Hi experts
plz help me
i m very new in sap scripts
i have a script WESCHEINVERS1 and the driver prog is SAPM07DR
i ill have to copy this script and have to add two more feild in the text element W1LGMAT
fields are :
CAWNT-ATWTB
EKPO-REVLV
now wat i think i cannot make changes to standard driver prog so it wud be better to call a subroutine 4 it
so plz guide me how i ill have to fetch data nd pass to the script
plz write the code if possible 4 u
FYI:
MSEG : Document Segment Material
MANDT     Client
MBLNR     Number of material Document
MJAHR     Material Document Year
ZEILE     Item in Material Document
MATNR     Material Number
LIFNR     Account number or vendor
EBELN     Purchase order number
EBELP     Item number of PO
EKPO : Purchasing document item
MANDT     Client
EBELN     Purchase order number
EBELP     Item number of PO
MATNR     Material Number
REVLV     Revision Level
LFA1 : Vendor Master (General section)
MANDT     Client     
LIFNR     Account number of vendor or creditor     MSEG-LIFNR
SPRAS     Language key     
AUSP : Characteristic Values
MANDT     Client     
OBJEK     Key of object to be classified     MSEG-MATNR
ATINN     Internal characteristic     ZO-QUALITY-LEVEL
ATZHL     Internal counter     
ATWRT     Characteristic Value     
CAWNT : Value texts
MANDT     Client     
ATINN     Internal characteristic     ZO-QUALITY-LEVEL
ATZHL     Internal counter     AUSP-ATZHL
SPRAS     Language Key      LFA1-SPRAS
ATWTB     Characteristic Value Description     
thanks in advance

Refer the links to know about calling subroutines ins cript -
subroutine in script
How to call a subroutine in a script ?
EXTERNAL SUBROUTINE IN SAP SCRIPT
Regards,
Amit
Reward all helpful replies.

Similar Messages

  • Experts plz help its very urgent

    hi expert
    plz help- me
    previously i was getting dump in this statement
    TRANSFER v_tab TO p_file.
    FYI:
    here v_tab is a table which hav som records
    and p_file contains the path of a file like c:\new\ggg.txt
    DATA: v_tab TYPE STANDARD TABLE OF t_line WITH HEADER LINE,
    TYPES: BEGIN OF t_line,
           pspid(9) TYPE c,
           tab1 TYPE x,
           post1 TYPE proj-post1,
           tab2 TYPE x,
           vernr TYPE prps-vernr,
           tab3 TYPE x,
    END OF t_line.
    DUMP I WAS GETTIN :
    For the statement
       "TRANSFER f TO ..."
    only character-type data objects are supported at the argument position
    "f".
    In this case. the operand "f" has the non-character-type "T_LINE". The
    current program is a Unicode program. In the Unicode context, the type
    'X' or structures containing not only character-type components are
    regarded as non-character-type.
    to avoid this dump i used feild symbol
    assign V_TAB to <IN> casting.
          p_file = <in>.
          unassign <IN>.
    nw there is no dump
    but problem is p_file contains the contents of v_tab not the file path .
    plz help me its very urgent
    thanx in advance

    Hey, no probs,
    after your initial declaration, do this.
    TYPES: BEGIN OF n_line,
    pspid(9) TYPE c,
    tab1(15) TYPE c,        "check the length you want
    post1 TYPE proj-post1,
    tab2(15) TYPE c,         "check the length you want
    vernr TYPE prps-vernr,
    tab3(15) TYPE c,         "check the length you want
    END OF t_line.
    DATA: n_tab TYPE STANDARD TABLE OF n_line WITH HEADER LINE.
    now after you fetch data into v_tab,
    move it to n_tab.
    using a loop at v_tab and move corresponding fields to n_tab's work area
    append to n_tab.
    once you have populated n_tab and are ready to TRANSFER.
    OPEN your file using
    open dataset <file> for output in text mode encoding default.
    now
    loop at n_tab.
    TRANSFER n_tab to p_file.
    endloop.
    CLOSE DATASET.

  • Plz help me TEXTPOOL PROBLEM(VERY URGENT)

    hi experts,
    plz help in resolving this issue this is very urgent.
    error is
    The line type of "RPOOL" must be compatible with one of the types
    "TEXTPOOL".
    and its coming in :
    FORM GET_SELSCREEN_TITLE TABLES P_SCREENS STRUCTURE DYNNR.
    DATA: BEGIN OF RPOOL OCCURS 20,
    ID(1),
    NAME(8),
    TEXT(80),
    END OF RPOOL.
    READ TEXTPOOL RSVAR-REPORT LANGUAGE SY-LANGU INTO RPOOL.
    plz help me.

    Hi !
    Try this :
    DATA RPOOL LIKE TEXTPOOL OCCURS 0 WITH HEADER LINE.
    Reward if usefull,
    Regards,
    Stéphane.

  • Regarding passing table array to sap scripts - urgent

    Hi Experts,
    I am calling an SAP Script form from a custom program. The code snippet is as follows:
    MOVE : 'ZFRM_EX_COM_INV' TO w_form.
    PERFORM open_form USING w_form.
    PERFORM write_form USING 'MAIN'     'HEADER'.
    PERFORM write_form USING 'MAIN'     'LINE_ITEM'.
    LOOP AT it_cond INTO wa_cond.
    <b>PERFORM write_form USING 'TOTAL' 'TOTAL_COND'.</b>
                   <i> " TOTAL is the page window and TOTAL_COND is the element.</i>
    ENDLOOP.
    PERFORM close_form.
    *&      Form  write_form
          text
         -->VAR1       text
    FORM write_form USING var1 var2.
      IF var2 IS INITIAL.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            window                   = var1
          EXCEPTIONS
            element                  = 1
            function                 = 2
            type                     = 3
            unopened                 = 4
            unstarted                = 5
            window                   = 6
            bad_pageformat_for_print = 7
            OTHERS                   = 8.
      ELSE.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            element                  = var2
            window                   = var1
          EXCEPTIONS
            element                  = 1
            function                 = 2
            type                     = 3
            unopened                 = 4
            unstarted                = 5
            window                   = 6
            bad_pageformat_for_print = 7
            OTHERS                   = 8.
      ENDIF.
    ENDFORM.                               " WRITE_FORM
    In the text that is in bold in teh code snippet, I am tring to pass the values one-by-one and print in the output.
    But only the last line item from that table is begining printed. The other lines are overwritten by the last line.
    How should I display all the lines in the internal table it_cond.
    Please help me...
    regards,
    arul jothi a.

    U are using a variable window to print the 'total_cond' text element..
    so whenever u call the write form   for a variable window .. it will get over written by the current contents.. I t wont append the contents to the form...
    Instead u use this text element in the MAIN window then onli u will get all the data..
    i hope this is the problem..
    reward if it helps u...
    sai ramesh

  • Again got stuck with textpool experts plz help

    hi experts,
    plz help in resolving this issue this is very urgent.
    error is
    The line type of "RPOOL" must be compatible with one of the types
    "TEXTPOOL".
    and its coming in :
    read textpool  rname into rpool language sy-langu.
    FOR YOUR INFORMATION:
    form init_textpool using rname like rsvar-report.
    FYI:
    DATA: BEGIN OF RPOOL OCCURS 20,
    ID(1),
    NAME(8),
    TEXT(80),
    END OF RPOOL.
    and textpool is also a structure u can check the fields in se11.
    as the structure of textpool and rpool are not same
    i cannot declare the type of rpool as textpool because it ill change the functionality of the prog because in the rest of the prog we r using the fields of rpool. 
    plz help me.

    hi atish
    thanks 4 ur rply
    solution provided by you is not giving error but i think it ill change your functionality.
    i did this::::
    data: begin of rpool occurs 20,
                id(1),
                name(8),
                text(80),
          end of rpool.
    data: rname like rsvar-report.
    data : RPOOL_1 LIKE TEXTPOOL OCCURS 0 WITH HEADER LINE.
    TYPEs : begin of RPOOL_1 ,
                id(1),
                name(8),
                text(80),
          end of rpool_1.
    read textpool  rname into rpool_1 language sy-langu.
    MOVE-CORRESPONDING rpool_1 TO rpool.
    write : rpool-id, rpool-text, rpool-name.
    later on in the program we r using name and text fields but in this when i debugged it is nt able to identify name and text fields only showing the value of id bcoz id is also dere in textpool structure.

  • Experts plz help me short dump

    hi experts
    plz help me
    in ecc 6.0 gettin a short dump
    THANKS IN ADVANCE
    error is ::
    For the statement
           "TRANSFER f TO ..."
        only character-type data objects are supported at the argument position
        "f".
        In this case. the operand "f" has the non-character-type "T_LINE". The
        current program is a Unicode program. In the Unicode context, the type
        'X' or structures containing not only character-type components are
        regarded as non-character-type.
    and it is coming in line::
    LOOP AT v_tab.
      TRANSFER v_tab TO p_file.  "<b>this line contains error</b>
    ENDLOOP.
    FYI::
    TYPES: BEGIN OF t_line,
           pspid(9) TYPE c,
           tab1 TYPE x,
           post1 TYPE proj-post1,
           tab2 TYPE x,
           vernr TYPE prps-vernr,
           tab3 TYPE x,
           astnr TYPE prps-astnr,
           tab4 TYPE x,
           usr00(12) TYPE c,
           tab5 TYPE x,
    END OF t_line.
    PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY.         "DMA20040510
      OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    QUESTION:::
    CAN WE USE FEILD SYMBOL IN IT
    LIKE  TRANSFER <Fs> TO P_FILE.

    Hi,
        LOOP AT v_tab ASSIGNING <in>.
        p_file = <in>.
        ENDLOOP.
    Best regards,
    Prashant

  • Experts plz help ALV issue

    hi all experts
    plz help
    i have an alv based on object oriented method
    in the output i am gettin a toolbar in which i have two buttons like print and export
    problem is
    when i click on these buttons i am gettin short dump
    Field symbol has not yet been assigned.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLKKBL" had to be terminated because
        come across a statement that unfortunately cannot be executed.
    plz tel me for printing do i need to wwrite any seperate event or any method for it
    plz guide me
    thanx in advance .

    *& Report  ZMULTIPLE_ALV
    *REPORT  ZMULTIPLE_ALV.
    report zrich_0006.
    tables: mara.
    type-pools: slis.
    Internal Tables
    data: begin of ialv occurs 0,
          matnr type mara-matnr,
          maktx type makt-maktx,
          end of ialv .
    Internal Tables
    data: begin of ialv2 occurs 0,
          matnr type mard-matnr,
          werks type mard-werks,
          lgort type mard-lgort,
          end of ialv2 .
          CLASS lcl_event_receiver DEFINITION      Handles Double Click
    class lcl_event_receiver definition.
      public section.
        methods handle_hotspot_click
           for event hotspot_click of cl_gui_alv_grid
          importing e_row_id.
      private section.
    endclass.
          CLASS lCL_EVENT_RECEIVER IMPLEMENTATION    Handles Double Click
    class lcl_event_receiver implementation.
      method handle_hotspot_click.
        perform get_details using e_row_id-index.
      endmethod.
    endclass.
    data: alv_container type ref to cl_gui_custom_container,
          event_receiver type ref to lcl_event_receiver,
          alv_grid type ref to cl_gui_alv_grid,
          alv_container2 type ref to cl_gui_custom_container,
          alv_grid2 type ref to cl_gui_alv_grid,
          ok_code like sy-ucomm,
          fieldcat type lvc_t_fcat,
          gs_layout   type lvc_s_layo,
          fieldcat2 type lvc_t_fcat.
    select-options: s_matnr for mara-matnr.
    start-of-selection.
      perform get_data.
      call screen 100.
         Module  status_0100  OUTPUT
    module status_0100 output.
      data: variant type  disvariant.
      data: lt_exclude type ui_functions.
      data: ls_fcat type lvc_s_fcat.
      set pf-status '0100'.
      set titlebar '0100'.
      check alv_container is initial.
      Code for first ALV Grid
    Create Controls
      create object alv_container
             exporting container_name = 'ALV_CONTAINER'.
      create object alv_grid
             exporting  i_parent =  alv_container.
      create Event Receiver
      create object event_receiver.
      clear fieldcat.  refresh: fieldcat.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Material Number'.
      ls_fcat-coltext    = 'Material Number'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'IALV'.
      ls_fcat-hotspot    = 'X'.
      ls_fcat-outputlen  = '18'.
      ls_fcat-col_pos    = 1.
      append ls_fcat to fieldcat.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Material Description'.
      ls_fcat-coltext    = 'Material Description'.
      ls_fcat-fieldname  = 'MATKX'.
      ls_fcat-ref_table  = 'IALV'.
      ls_fcat-outputlen  = '40'.
      ls_fcat-col_pos    = 2.
      append ls_fcat to fieldcat.
      gs_layout-grid_title = 'Flights'(100).
      CALL METHOD alv_grid->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
         I_BUFFER_ACTIVE               =
         I_BYPASSING_BUFFER            =
         I_CONSISTENCY_CHECK           =
         I_STRUCTURE_NAME              =
         IS_VARIANT                    =
         I_SAVE                        =
         I_DEFAULT                     = 'X'
          IS_LAYOUT                     = gs_layout
         IS_PRINT                      =
         IT_SPECIAL_GROUPS             =
         IT_TOOLBAR_EXCLUDING          =
         IT_HYPERLINK                  =
         IT_ALV_GRAPHICS               =
         IT_EXCEPT_QINFO               =
         IR_SALV_ADAPTER               =
        CHANGING
          IT_OUTTAB                     = ialv[]
          IT_FIELDCATALOG               = fieldcat[]
         IT_SORT                       =
         IT_FILTER                     =
       EXCEPTIONS
         INVALID_PARAMETER_COMBINATION = 1
         PROGRAM_ERROR                 = 2
         TOO_MANY_LINES                = 3
         OTHERS                        = 4
      IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    call method alv_grid->set_table_for_first_display
         changing
              it_outtab       = ialv[]
              it_fieldcatalog = fieldcat[].
      handler for ALV grid
      set handler event_receiver->handle_hotspot_click for alv_grid.
      Code for second ALV Grid
    Create Controls
      create object alv_container2
             exporting container_name = 'ALV_CONTAINER2'.
      create Event Receiver
      create object alv_grid2
             exporting  i_parent =  alv_container2.
      clear fieldcat.  refresh: fieldcat.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Material Number'.
      ls_fcat-coltext    = 'Material Number'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'IALV2'.
      ls_fcat-outputlen  = '18'.
      append ls_fcat to fieldcat2.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Plant'.
      ls_fcat-coltext    = 'Plant'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'IALV2'.
      ls_fcat-outputlen  = '4'.
      append ls_fcat to fieldcat2.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Store Loc'.
      ls_fcat-coltext    = 'Store Loc'.
      ls_fcat-fieldname  = 'LGORT'.
      ls_fcat-ref_table  = 'IALV2'.
      ls_fcat-outputlen  = '4'.
      append ls_fcat to fieldcat2.
      call method alv_grid2->set_table_for_first_display
           changing
               it_outtab       = ialv2[]
               it_fieldcatalog = fieldcat2[].
    endmodule.
         Module  USER_COMMAND_0100  INPUT
    module user_command_0100 input.
      case sy-ucomm.
        when 'BACK' or 'CANC'.
          if not alv_container is initial.
            call method alv_container->free.
            clear: alv_container.
            free : alv_container.
          endif.
          if not alv_container2 is initial.
            call method alv_container2->free.
            clear: alv_container2.
            free : alv_container2.
          endif.
          if sy-subrc = 0.
            set screen 0.
            leave screen.
          else.
            leave program.
          endif.
      endcase.
    endmodule.
          FORM GET_DATA.
    form get_data.
      select maramatnr maktmaktx
                 into corresponding fields of table ialv
                     from mara
                          inner join makt
                             on maramatnr = maktmatnr
                                    where mara~matnr in s_matnr
                                      and makt~spras = sy-langu.
      sort ialv ascending by matnr.
    endform.
          FORM GET_MORE_DATA.
    form get_more_data.
      select matnr werks lgort
                 into corresponding fields of table ialv2
                     from mard
                               where matnr = ialv-matnr.
      sort ialv2 ascending by matnr.
    endform.
    GET_DETAILS
    form get_details using index.
      read table ialv index index.
      if sy-subrc = 0.
        perform get_more_data.
        call method alv_grid2->refresh_table_display.
      endif.
    endform.

  • Help Required for Sap Script

    Moved to correct forum.  Please use an informative subject in future.
    Hi,
    can some one help in knowing whether can we write the text elements from sub routine being called from Sap script.
    Actually i have to develop a script for check printing and in the table data i have to print 3 colums:REGUP-BUDAT,REGUP-XBLNR,REGUP-DMBTR in two section on the same window with 25 line each so that total 50 lines can be printed,Standard print prg is RFFOUS_C.can some one help in the same..
    Thnxs
    Edited by: Matt on Apr 9, 2009 10:06 AM

    Hi Hemant,
    use like this
    <B0>Three Thousand only</>,,  <B4>&Name& </> <B8>&TOTAL& </>
    HR Dept.
    Thanks & regards,
    Dileep .C

  • Help needed on SAP Scripts

    Hi
      This is Lahari...Iam going to attend interviews...cud u pls give real time questions n answers on SAP Scripts? i didn't attend interviews before...I'd be thankful to u guys.
    My id is [email protected]
    Lahari.

    Hi Lahari,
    Check these links.
    http://www.sappoint.com/abap/ssintro.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/lsetssap.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
    http://www.henrikfrank.dk/abapuk.html
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapuk.html
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Help needed in SAP script....urg pleaseee

    Hello Experts,
    I am working on a script. The script has two pages page1 and page2. Both of them have main windows. I have added a new page (page3) with 3 windows and only constant text in them. This should be printed at the last. But I am unable to call the new page.
    Can you please suggest me some thing here..
    Thankyou...

    Hi..,
    At the end of the Second page i.e after all the data has been output in the second page write in the script editor as
    /: NEW-PAGE <PAGE-NAME>.
    Then it triggers the page <PAGE-NAME> SAY LAST..
    ( /: NEW-PAGE LAST )..
    thats it !! it triggers the new page as LAST here !!
    reward if it helps u,
    sai ramesh

  • Help needed in SAP Scripts

    Hello all,
    I am trying to learn SAP Scripts. I have created one form named as 'zfm1' using SE71.
    Using SE 38 I have created a PRINT PROGRAM also which contains FM's like Open_form,Start_form,Write_form etc. When activated it is not displaying any error.
    But in o/p it is asking for a device and by def.it is showing LP01 in o/p device.
    Can anybody please guide me in this ahead?
    How can I see the Windows created by me?
    Thanks and regards,
    Harish

    hi,
    just give device as LP01 and press print preview.

  • Plz help me out bapi message (urgent)

    hi
    i need help. i m passing values in bapi n taking message from table in bapi to print in out put.
    requirment is..
    a)     Pass the following parameters:
    NUMBER = NETWORK
    Tables: I_COMPONENTS_CHANGE
         COMPONENT = IT_COMP-COMPONENT
         BATCH = P_CHARG
    Tables: I_COMPONENTS_CHANGE_UPDATE
         COMPONENT = IT_COMP-COMPONENT
         BATCH = “X”
    b)     The components that failed update are provided in table, E_MESSAGE_TABLE. If MESSAGE_TYPE = “E”, get EXTERNAL_OBJECT_ID and MESSAGE_TEXT. Remove spaces from EXTERNAL_OBJECT_ID and then match against IT_COMP-COMPONENT to get MATERIAL, PLANT and NETWORK and write MATERIAL, PLANT and NETWORK and MESSAGE_TEXT to the job log.
    so for that i m doing coding like (this is part of my program)
    LOOP AT i_temp_comp.
        CLEAR : i_comp_change,i_comp_upd,i_e_msg.
        REFRESH : i_comp_change,i_comp_upd,i_e_msg.
        LOOP AT i_comp WHERE network = i_temp_comp-network.
          l_number = i_comp-network.
          i_comp_change-component = i_comp-component.
          i_comp_change-batch = p_charg.
          APPEND i_comp_change.
          i_comp_upd-component = i_comp-component.
          i_comp_upd-batch = c_x.
          APPEND i_comp_upd.
        ENDLOOP.
        CALL FUNCTION 'BAPI_NETWORK_COMP_CHANGE'
          EXPORTING
            number                     = l_number
          TABLES
            i_components_change        = i_comp_change
            i_components_change_update = i_comp_upd
            e_message_table            = i_e_msg.
        IF NOT i_e_msg[] IS INITIAL.
          LOOP AT i_e_msg.
            IF i_e_msg-message_type = c_e.
              READ TABLE i_comp WITH KEY network = l_number
         component = i_e_msg-external_object_id.       "#EC *
                IF sy-subrc IS INITIAL.
                  i_output-material = i_comp-material.
                  i_output-plant = i_comp-plant.
                  i_output-network = i_comp-network.
                  i_output-message = i_e_msg-message_text.
                  APPEND i_output.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDLOOP.
        ELSE.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        ENDIF.
      ENDLOOP.
    problem is it is not showing message in i_output.
    so no data is printing.
    plz help me out

    There are several IFs in your code here.
    IF NOT i_e_msg[] IS INITIAL.
      LOOP AT i_e_msg.
        IF i_e_msg-message_type = c_e.
          READ TABLE i_comp WITH KEY network = l_number
              component = i_e_msg-external_object_id. "#EC *
          IF sy-subrc IS INITIAL.
            i_output-material = i_comp-material.
            i_output-plant = i_comp-plant.
            i_output-network = i_comp-network.
            i_output-message = i_e_msg-message_text.
            APPEND i_output.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.
    It can be any IF failure. Check in debugging and see how this "i_e_msg" internal table is filled. May be the return table is giving the component number in external format and you have it in internal format or vice-versa in the READ statement "component = i_e_msg-external_object_id".

  • Experts plz help report issue need help

    hi experts
    plz guide me in this report
    i hav a transaction MD4C
    when we call this transaction it displays a report showing material numbers with some details for a corresponding sales order number
    if any of material is missing or problem arises it creates an icon in front of tha material number
    now i will have to create a report which will show all the material numbers which are missing orhave this error icon .
    Please guide me how should i proceed
    what should be the best approach of my report .

    hi,
    you can analyze that report and find logic used for that icon generation, take the same logic for writeing u r report program. you can see the code of the transaction code
    1) type the transaction code, press enter
    2) system ---> status
    3) double click on program(screen) field.
        This will take you to source code, their you do analyzation.
    regards,
    pavan

  • Plz Help...It is URGENT.JTREE

    Hi All:
    I am developing a Application where I am populating my Jtree from the database.Now the Problem is when I click on one of the Nodes of the Jtree,I am unable to populate the Jtree-window(along with the Jtree) with my JInternalFrame in one the Split Windows(SPlitPane is used).[i.e the left pane consists of Jtree & the right pane consists of JInternalFrame].
    How to activate and properly set the window.
    Help is urgent.Provide me some pointers plz/Source COde.
    Thanking you.
    Sincere
    Regards
    Ritesh

    Dear DrCLap:
    Thanks for the reply.
    Let me explain my problem.Deadline is there.
    Well I am having a Jtree(dynamically updated from Database) added to 1 Split Pane.
    I am having a Popup-Menu with items namely Add,View and close with the ActionListener Interface.
    When I click the LastNode of the JTree,I am firing a Popup Menu and the Add Event when I click Add.
    But after clicking the "Add",the Layout is completely occupying the Window and destroying the Jtree.,i.e.I am unable to see the JTree.And when I finally add a new node ,I am unable to refresh the JTree.
    Help me.
    Regards
    Ritesh

  • FI extraction details--- experts plz help...

    Hi Gurus,
    Can somebody help with these questions in FI extraction
    1. What are the areas or sections in FI , like in LO we have purchasing, SD, PP...Inventory. Becoz i have seen as FI-GL,AA, AR..Plz explain what are they actually and what is the flow. How these areas are related to each other.
    2. What are the different tables involved in FI extraction , for example in LO we have SETUP TABLES, EXTRACTION QUEUE, DELTA QUEUE, UPDATE TABLES.
    3. What is the actual flow in full load and Delta load in FI applications ...for example in LO we have V1, V2, V3  used for saving records from Application tables to statistical tables, to extraction queue or update tables and then to Delta queue. or if full load through setup tables. So kindly guide me the flow of the FI plz
    4. How is Delta management done and how to manage please kindly give me the indepth details step by step so that i can understand the deltamanagement.
    any documents will be highly appriciated.
    [email protected]
    thanks and regards
    Harish

    Hi Farhan,
    thanks for the info ....i think i have lots to read and understand.
    So if you can let me know specifically the tables connected and from where the data is picked for the below data sources and as well as the delta management tables associated.
    FI-GL
    FI-AA
    FI-AP
    FI-AR
    After reading some data i could understand that Balance sheet and P &L ACCOUNTS are prepared from FI-GL.
    Sales and distribution will have a link to FI-AR.
    Materials Management will have a link to FI-AP.
    Once again thanks for your help and i am sure your docuement on SAP tables and links will help me a lot to understand the mechanism.
    Hi Sorabh.
    Thanks for the info, so the tables you mentioned for Delta are common for all these application components am i right.
    So do they store the delta data or else they will have a record for each change....What is the difference between these two tables..used for delta.
    Thanks and regards
    Harish
    Message was edited by: H.B

Maybe you are looking for

  • Error in Starting Managed Server

    Hi, I have installed Oracle webcenter Portal 11g on my local machine. Started admin server successfully url: http://localhost:7001/console When i tried starting Managed server WC_Spaces,WC_Portlet,WC_Collaboration & WC_Utilities. Am getting error as

  • Async To Sync

    Hello, using jdev 11.1.1.4 i mistakenly created a Asyc BPEL process. process is ready and working I want to now convert it to sync process, without impacting the functionality. what is the best way to convert async process to sync process ? How do i

  • Too many jars cause the error "the input line is too ling"

    Hi, Friends, For some good reasons, I received a lot of jar files (25) and I have to include them in my classpath. Now I have a problem. When I use javac or ant, I got The input line is too long. The syntax of the command is incorrect. I don't know i

  • How to run the .sql file in sql prompt?

    i want to run the .sql file in sql prompt

  • ID can not open this phone

    Hi I have a problem, I bought the phone and usually worked software I forgot shut Find My Phone now which is that the machine displays a message to me that ID can not open this phone please help me