Passing values to include program

HI,
Need help on following.
in my program A :
DATA: BEGIN OF it_qlqua OCCURS 0.
        INCLUDE STRUCTURE lqua.
DATA:   altbatch TYPE ausp-atwrt,
        v_verme TYPE kwmeng.
DATA: END OF it_qlqua.
INCLUDE zprogramB.
perform check_lqua tables it_lqua.
Program B:
DATA: BEGIN OF it_qlqua OCCURS 0.
        INCLUDE STRUCTURE lqua.
DATA:   altbatch TYPE ausp-atwrt,
        v_verme TYPE kwmeng.
DATA: END OF it_qlqua.
DATA: v_skzua1 TYPE lagp_skzua,
      v_skzue1 TYPE lagp_skzue,
      v_skzsa1 TYPE lagp_skzsa,
      v_skzse1 TYPE lagp_skzse,
      v_skzsi1 TYPE lagp_skzsi,
      v_lvorm1 type mch1-lvorm,
      v_zustd1 type mch1-zustd,
      v1_skzue1 TYPE lein_skzue,
      v_zskzua1 TYPE lein_skzua,
      v_spgru1 TYPE lvs_spgru,
      v_statu1 type lein-statu.
FORM zcheck_lqua tables p_it_lqua structure IT_QLQUA.
ENDFORM.
Error I get :
when trying activate :
statement is not accessible !!
May i know what have i done wrong?
What is the correct way to pass internal table to a include file?
Thanks

Hi,
I have made it into simple test but it still fail ?
report ztest_hl7.
include zallocation_check2.
DATA: num  TYPE i VALUE 5,
      fac  TYPE i VALUE 0.
PERFORM fact USING num CHANGING fac.
WRITE: / 'Factorial of', num, 'is', fac.
*&  Include           ZALLOCATION_CHECK2
FORM fact
       USING f_num TYPE i
       CHANGING f_fact    TYPE i.
  f_fact = 1.
  WHILE f_num GE 1.
    f_fact = f_fact * f_num.
    f_num = f_num - 1.
  ENDWHILE.
ENDFORM.
error : statement is not accessible - refer to row perform fact ...

Similar Messages

  • Passing value from a program to sap script ?

    Hello Friends,
    While defining the header,footer or address window to assign a text we goto text element and assign it.
    Now is there any way where we can pass the value from the program.
    Eg : I want to pass the value for address from the abap editor to the address window in a sap script instead of assigning the address using the text element in sap script. Is it possible?
    Regards,
    Ranjith

    You can have subroutines in script.
    if you have any fields used to get address then using that fileds you can retrieve the address by defining subroutines in your form
    Reward points if useful.
    Regards,
    Nageswar

  • Passing value from one program to another

    Dear All,
    I have to pass one value from one program to the standard selection screen .But there is no paramter id .how can i pass the value.
    Regards,
    Magesh

    Hi Magesh,
    See the help for these
    - EXPORT obj1 ... objn TO DATA BUFFER f.
    - EXPORT obj1 ... objn TO MEMORY.
    - EXPORT (itab) TO ... .
    - IMPORT obj1 ... objn FROM DATA BUFFER f.
    - IMPORT obj1 ... objn FROM MEMORY.
    - IMPORT (itab) FROM ... .
    Important thing is that these work correct in same session only.
    awrd points if useful
    Bhupal

  • Passing values to included jsp via bean

    Hi people
    I've got a jsp fragment which is used by many jsp's. It outputs a dynamic menu. It gets its data from a bean, say MenuBean. The jsp which "includes" menu.jsp does a jsp:usebean then jsp:setproperty's on MenuBean. When I run the project nothing comes up in the menu (It works if I hardcode the values in MenuBean).
    Under debug I can see that after the first jsp:usebean an instance (say #9360) is created with the properties set correctly. But when menu.jsp runs, it looks like a new instance of MenuBean (say #110636) is created with the properties blank.
    in home.jsp:
    <jsp:useBean id="menubean" class="web.MenuBean" scope="session"/>
    <jsp:setProperty name="menubean" property="login"
    value="${userBean.login}"/>
    <jsp:setProperty name="menubean" property="topLevel" value="Home"/>
    <jsp:include page="/WEB-INF/jspf/menu.jsp" />
    in menu.jsp:
    <jsp:useBean id="menubean" class="web.MenuBean" scope="session"/>
    I've tried changing the scope to request or application, but it's always the same result. A new instance of MenuBean is created when menu.jsp runs. What I need is a single instance of MenuBean running throughout the session and accessible by every jsp that's called up. How can I do/achieve this?
    I'd appreciate any help on this matter.
    Thanks.

    Hi Ram - thanks for your reply.
    I have made it work, but I'm not sure which of the changes I made is the one that fixed it. I believe it is because I didn't implement serializable in my MenuBean. By doing so it now works!!
    thankyou & bye

  • Can not pass value to the program symbol

    Hi gurus,
    i've developed a script form whereas the value can not be transported from ABAP program into script form. only the system envoirment variables can be displayed in the FORM.
    any ideas? thanks

    here is my printing program:
    the varable A whose value is 4 can not be printed out in the form preview. on the other hand, if i use the same form in the report in stead of output type ME, the value 4 CAN BE displayed.
    PROGRAM  sapmztest.
    DATA: A VALUE '4'.
    *&      Form  ENTRY
          text
         -->ENT_RETCO  text
         -->ENT_SCREEN text
    FORM entry USING ent_retco ent_screen.
      CALL FUNCTION 'OPEN_FORM'
       EXPORTING
        APPLICATION                       = 'TX'
        ARCHIVE_INDEX                     =
        ARCHIVE_PARAMS                    =
        DEVICE                            = 'PRINTER'
        DIALOG                            = 'X'
         FORM                              = 'ZCNMMF017_GR_1'
        LANGUAGE                          = SY-LANGU
        OPTIONS                           =
        MAIL_SENDER                       =
        MAIL_RECIPIENT                    =
        MAIL_APPL_OBJECT                  =
        RAW_DATA_INTERFACE                = '*'
        SPONUMIV                          =
      IMPORTING
        LANGUAGE                          =
        NEW_ARCHIVE_PARAMS                =
        RESULT                            =
      EXCEPTIONS
        CANCELED                          = 1
        DEVICE                            = 2
        FORM                              = 3
        OPTIONS                           = 4
        UNCLOSED                          = 5
        MAIL_OPTIONS                      = 6
        ARCHIVE_ERROR                     = 7
        INVALID_FAX_NUMBER                = 8
        MORE_PARAMS_NEEDED_IN_BATCH       = 9
        SPOOL_ERROR                       = 10
        CODEPAGE                          = 11
        OTHERS                            = 12
      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 FUNCTION 'START_FORM'
       EXPORTING
        ARCHIVE_INDEX          =
         FORM                   = 'ZCNMMF017_GR_1'
        LANGUAGE               = ' '
         STARTPAGE              = 'FIRST'
        PROGRAM                = ' '
        MAIL_APPL_OBJECT       =
      IMPORTING
        LANGUAGE               =
      EXCEPTIONS
        FORM                   = 1
        FORMAT                 = 2
        UNENDED                = 3
        UNOPENED               = 4
        UNUSED                 = 5
        SPOOL_ERROR            = 6
        CODEPAGE               = 7
        OTHERS                 = 8
      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 FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'DATA'
        FUNCTION                       = 'SET'
        TYPE                           = 'BODY'
        WINDOW                         = 'MAIN'
      IMPORTING
        PENDING_LINES                  =
      EXCEPTIONS
        ELEMENT                        = 1
        FUNCTION                       = 2
        TYPE                           = 3
        UNOPENED                       = 4
        UNSTARTED                      = 5
        WINDOW                         = 6
        BAD_PAGEFORMAT_FOR_PRINT       = 7
        SPOOL_ERROR                    = 8
        CODEPAGE                       = 9
        OTHERS                         = 10
      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 FUNCTION 'END_FORM'
      IMPORTING
        RESULT                         =
      EXCEPTIONS
        UNOPENED                       = 1
        BAD_PAGEFORMAT_FOR_PRINT       = 2
        SPOOL_ERROR                    = 3
        CODEPAGE                       = 4
        OTHERS                         = 5
      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 FUNCTION 'CLOSE_FORM'
      IMPORTING
        RESULT                         =
        RDI_RESULT                     =
      TABLES
        OTFDATA                        =
      EXCEPTIONS
        UNOPENED                       = 1
        BAD_PAGEFORMAT_FOR_PRINT       = 2
        SEND_ERROR                     = 3
        SPOOL_ERROR                    = 4
        CODEPAGE                       = 5
        OTHERS                         = 6
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "ENTRY
    Edited by: Stephen Xue on Oct 29, 2009 11:52 AM

  • Passing values with each program run

    Hi ,
    I have a program which runs 6 days a week and updates a table.Now my requirement is to assign a value to a field for each day when the program runs every day in the week.
    <b>For first day - D
    second day - D-1
    sixth day - D-5.</b>
    when the program runs after D-5 it should again start from D.
    How can i achieve this please advise.
    Regards
    Pavan

    Hi kumar,
    1.
    03-Jun-06     D
    04-Jun-06     D-1
    05-Jun-06     D-2
    06-Jun-06     D-3
    07-Jun-06     D-4
    08-Jun-06     D-5
    09-Jun-06     
    10-Jun-06     D
    11-Jun-06     D-1
    12-Jun-06     D-2
    13-Jun-06     D-3
    2. this program will give output,
       based upon date input.
    3.  just copy paste
    report abc.
    data : monday type sy-datum.
    data : abc(3) type c.
    data : diff type i.
    DATA : DAYNR TYPE C.
    parameters : mydate type sy-datum default sy-datum.
    START-OF-SELECTION.
    CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
    EXPORTING
       DATE          = mydate
    IMPORTING
      WEEK          =
       MONDAY        = monday
      SUNDAY        =
    DIFF  = MYDATE - MONDAY.
    DAYNR = DIFF.
    ABC = 'D'.
    IF DIFF >= 1.
    CONCATENATE ABC '-' DAYNR INTO ABC.
    ENDIF.
    WRITE ABC.
    regards,
    amit m.

  • Passing values to FG from program

    Hi all
           Please help me to sort this problem.I have to call a screen in the Function group from a report  program so I am using below code to call it.
    clear bdcdata_wa.
      bdcdata_wa-program = 'SAPLZSECURITIES'.
      bdcdata_wa-dynpro = '0300'. "where 300 normal screen
      bdcdata_wa-dynbegin = 'X'.
      append bdcdata_wa to bdcdata_tab.
      call transaction 'ZDOCS_SECURITIES' using bdcdata_tab.
    Now I have to access the values from the program in FG screen after calling the screen.So I used below code but it is not working.Please help me to sort it out.
    assign ('(ZCML_DOCS_SECURITIES)I_VDARL') to <fs_vdarl>."I_VDARL Structure
          if sy-subrc = 0.
            move <fs_vdarl> to i_vdarl.
          endif.
    Thank You.
    Regards
    Giri

    That would work if it's an include/form, and you read data from the main program. But I do not know if it can be used with a call transaction. Maybe the problem is that it is not the same LUW... But I am not sure.
    I can't see anyting wrong with the code itself.
    When debugging, is the field symbol <fs_vdarl> assigned?
    Can you use an export to memory instead?

  • Pass Value from Excel to custom program

    Hello,
    I want to pass value from Excel to Custom Program being called in the Custom Integrator and i am using the Import in the Importer section but it is not getting passed.
    Please advise and i am on R12.1.3.
    Thanks

    Pl do not post duplicates - Concurrent Program Parameter

  • How can we pass the select-option value to modulepool program?

    hi,
      how can we pass the select-option value to modulepool program ?
      Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
               My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
               How i get select-option values to PAI of call screen for getting the data from database table to my internal table?

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • Passing value to a field of SAP Program which do not have "Parameter ID"

    Dear Experts,
    My requirement is that i need to pass a value from my dialog program to a field of SAP Program which do not have "Parameter ID" attached to it.
    For example: If you run SAP Transaction CS14, it has two sections viz., Primary BOM and Secondary BOM. I need to copy and create own screen using Dialog program. The screen appears in custom screen would be similar to that of the SAP Transaction CS14. If you check the fields, all the fields have "Parameter ID" attached to it, except for the following fields which do not have Parameter IDs are "Alternative", "Valid From" and "Required Qty".
    Hence how do i pass value to those fields? Kindly help me
    To those fields where "Parameter IDs" are attached, i can use below two statements:
    Set parameter id <par> field <field>.
    call transaction 'CS14' and skip first screen.
    Regards,
    Ramesh Manoharan

    Hi Harald Boeing,
    Thanks you very much. My problem is solved.
    Rewarded Points.
    Regards,
    Ramesh Manoharan

  • How to pass value coming from a program to a transaction

    hi gurus,
    In my requirement i will get a value from a program and i need to send this value to a field present in a transaction.
    can any one help me in this matter.

    First got to the data element of the field to which you want to pass the value to and check the Parameter ID in the Further Characterstics tab
    For Example it is XYZ
    Then
    In BADI
    Set Parameter ID 'XYZ' Field P_FIELD_VALUE.
    Call Transaction 'ABCD'.
    santhosh

  • How to pass values to a module pool program from another Report Program

    Hi ..
    Please let me know how I can pass values to a MODULE POOL selection screen field from another Report Program.
    Thanks
    RK

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/frameset.htm

  • Pass a Workarea (Value) from one Program to another

    Hi Experts,
    I have a requirement where a Workarea values needs to passed to the Report Program and as well to the Background Program. I am sure EXPORT and IMPORT will work for Foreground but not with the Background.
    However for each workarea record a Background will be submitted (I am creating for Parallel Processing). So How can I achieve the above requirement (to get the work area value to the calling program).
    Thanks in advance.
    Regards,
    Srinivas

    Hi
    Import/export work in the same session, I can suppose when u submit a job program, this will start to run in a new task, so in a new session, so it can explain because Import/export don't work.
    So u can try to use import/export statament in order to set the value in the cluster instead of (abap) memory
    Max

  • How to pass value standard program to Workflow after than to call Transaction

    Hi Experts..
        While We are Cancel any PO in Me29n, it will Pass values(Like reason for cancel With PO No) and Send a mail (User name whose reject the cancel against Release of PO No) in workflow inbox(workplace) After than getting a mail any particular User, they will See the Message of  Purchase  order against  Canceled. After then they will double click on that message it will trigger ME29N Tcode with the particular PO.
            Using with Badi in Me29N we have to Passed  Values and sent a Mail in work place but When  Double click on Message I Dont Know HOw to Call ME29N in work place....
         Cancel Po in Me29N-->WORK PLACE --> Double click on message,will call ME29N
       So, please help me how to i can Rectified this.
    Regards,
    kumar

    hi Kumar
    BUS2012 is a business object, see it in tcode SWO1.
    You can try blow code:
    INCLUDE <CNTN01>.
    DATA: OBJ TYPE SWC_OBJECT.
    DATA: PO_ITEMS TYPE TABLE OF BAPIEKPOC.
    DATA: PURCHASEORDER     TYPE     BAPIEKKO-PO_NUMBER VALUE '4500000004'.
    SWC_CONTAINER CONTAINER.
    SWC_CREATE_OBJECT OBJ 'BUS2012' ''.
    SWC_CREATE_CONTAINER CONTAINER.
    SWC_SET_ELEMENT CONTAINER 'NotificationType' 'S1'.
    SWC_SET_ELEMENT CONTAINER 'PurchaseOrder' PURCHASEORDER.
    SWC_CALL_METHOD OBJ 'Display' CONTAINER.  " call method 'Display' show ME29N.
    Infact, you can achieve all your requirment in workflow, don`t need implement BADI.
    The trigger event is event 'rejection_start' in BUS2012. Create a user decision(which will show in workplace) and create a task bounding the 'Display' method of BUS2012.
    There are so many detail content in scn or wiki. thanks.
    hope can help you.
    Regards,
    Archer

  • How to pass value from program to standard screen

    I have a screen from which i need to pass values to the standard scren VA11. The set parameter is not available. Is there any method to pass the values to the standard screen apart from BDC.

    Hi,
    *Code used to populate 'select-options' & execute report 
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    * load each personnel number accessed from the structure into
    * parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    Regards
    Sudheer

Maybe you are looking for

  • 5th Generation iPod doesn't play Movies

    Hi all, a friend of mine bought a 5th Generation iPod some weeks ago and I'm going to buy one, too. But there's one little thing that makes me nervous... A few days ago we connected the iPod to my PC an everything started - iTunes did it's work.....v

  • Airtunes issues - Cannot select Remote Speakers

    I bought a new MacBook and am running Mac OS X (10.5.7) and using iTunes 8.2. Previously I was able to play music through my remote speakers connected to my airport express using airtunes. With my new laptop, iTunes shows my speakers but they are gre

  • Help with mounting drives

    So i have read the wiki but I dont understand fstab, Am I going to have to manually add every drive I plug in to fstab in order to mount it? That cant be right?

  • Album only part downloaded from itune store

    Hi there I have downloaded an album this morning from the itunes store,however, it has only part downloaded. My purchase history says I have purchased it all??? Please can you advise how I can get the rest of the songs? Thanks

  • ACR Error Code

    Tried to update ACR and received message "Installlation Failed. Error Code U44M1P7"  Any ideas what's wrong?