Data statement  in subroutine

does the data statement inside the form-endform statement
create any column in the selection screen

Hi again,
1. For selection screen, we use syntax like
   parameters, select-options.
2. eg.  (just copy paste)
report abc.
data : mymatnr like mara-matnr.
parameters : a(10) type c.
select-options : matnr for mymatnr.
regards,
amit m.

Similar Messages

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • MAXL Import data statement error

    Can someone assist me in the maxl import data statement.
    In the import data statement "import database App.DB data from data_file "\\servername\\folder1\\folder1\\data.txt";
    The error I get is trying to specify the syntax for the path of the server. Does someone have an example of the import statement syntax that is referencing the data file from a server?
    Thanks

    Have you tried something like :-
    import database App.Db data from text data_file "\\\\servername\\sharename\\directory\\datafile.txt" using server rules_file "dataload" on error write to "dataerrors.err";
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Calling Bapi through BADI gives data statement error

    Dear Experts,
    I am trying to call BAPI through BADI ME_PROCESS_REQ_CUST --> process_item.
    I get an error stating that "The addition OCCURS no longer supported in OO objects"
    If, I remove OCCURS statement I get an error stating that "Tables with headers are no longer supported in OO context" for the following data statement.
    Appreciate, if you could provide possible solution to overcome the problem.
    Regards
    Kumar
    BAPI code is as follows.
    DATA: LV_TABIX LIKE SY-TABIX,
    LT_WMDVSX LIKE BAPIWMDVS OCCURS 0 WITH HEADER LINE,
    LT_WMDVEX LIKE BAPIWMDVE OCCURS 0 WITH HEADER LINE.
    LV_TABIX = SY-TABIX.
    CLEAR: LT_WMDVSX, LT_WMDVEX.
    REFRESH: LT_WMDVSX, LT_WMDVEX.
    Fill communication table
    LT_WMDVSX-REQ_DATE = ET_PROCUREMENT_ITEM-DELIV_DATE.
    LT_WMDVSX-REQ_QTY = ET_PROCUREMENT_ITEM-QUANTITY.
    APPEND LT_WMDVSX.
    Availability check with check rule '03'
    CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
    EXPORTING
    PLANT = ET_PROCUREMENT_ITEM-PLANT
    MATERIAL = ET_PROCUREMENT_ITEM-MATERIAL
    UNIT = ET_PROCUREMENT_ITEM-UNIT
    CHECK_RULE = '03'
    TABLES
    WMDVSX = LT_WMDVSX
    WMDVEX = LT_WMDVEX
    EXCEPTIONS
    OTHERS = 1.
    IF SY-SUBRC EQ 0.
    READ TABLE LT_WMDVEX WITH KEY
    COM_DATE = ET_PROCUREMENT_ITEM-DELIV_DATE.
    IF SY-SUBRC EQ 0.
    ET_PROCUREMENT_ITEM-AVAIL_QTY = LT_WMDVEX-COM_QTY.
    ENDIF.
    ENDIF.

    Hi,
    Occurs is no more supported by SAP ( is an obsolete statement )
    <b>Instead of following code</b>
    DATA: LV_TABIX LIKE SY-TABIX,
    LT_WMDVSX LIKE BAPIWMDVS OCCURS 0 WITH HEADER LINE,
    LT_WMDVEX LIKE BAPIWMDVE OCCURS 0 WITH HEADER LINE.
    you can use
    data: LT_WMDVSX type standard table of BAPIWMDVS,
            LT_WMDVEX type standrad table of  BAPIWMDVE,
            LS_WMDVSX like line of LT_WMDVSX ,      "( work area )
            LS_WMDVEX like line of LT_WMDVEX.       "(work area)
    use workarea to get the data and then append the records from workarea to Internal tables
    Reward points if usefull
    Regards,
    Mohan

  • Please  tell me the difference between CREATE OBJECT & CREATE DATA ,statements in CRMTECHNICAL

    Please  tell me the difference between CREATE OBJECT & CREATE DATA ,statements in CRMTECHNICAL

    found it on my own . the best way to do this is use the RetriveLimitedHierTreeCommand  with a search on the taxonomy table.

  • Why do we use CRAETE DATA statement ?

    Hi,
    Why do we use CREATE DATA statement ? is it only for optimisation  ?
    thanks.
    Edited by: B on Jan 27, 2009 4:13 PM

    >
    B wrote:
    > Hi, thank you for the answers. The reply by Sonia Baboo was not copy paste from abap help. whereas the one from Niki was.
    >
    >
    >  i have rewarded points. the answers were very helpful
    >
    > thanks
    > B
    It was copy and paste from SAP Help.  http://help.sap.com/saphelp_nw70/helpdata/EN/16/0dce040cf711d3b9360000e8353423/content.htm

  • Dynamic data statements

    Hi,
    I need help regarding a dynamic data statement. I'm selecting data from a table like this:-
    DATA: lv_table(20) type c.
    lv_table = e_s_odstabname-c_log.
    SELECT * FROM (LV_TABLE)
    INTO lv_wa UP TO 1 ROWS
    WHERE PARAM1 = p_parm1
    AND   PARAM2 = p_parm2.
    ENDSELECT.
    I need to declare the lv_wa the same as the value contained in lv_table but I don't know how to do this.
    Any help would be great.
    KR,
    C

    hi C,
    declare it as
    data :  lv_wa like lv_table occurs 0 with header line.
    or
    data :  lv_wa like lv_table occurs 0.
    Regards,
    santosh

  • Error while sending data to a subroutine in script

    Hi,
      While passing a currency field for calculation to a subroutine through perform statement iam getting runtime error saying "unable ti interpret 5000.00 as a number. 5000.00 is nothing but the first currency value which iam sending for calculation.in the code the error is raised on the bold line .
    rf140-wrshb has value 5000.00 .the code which i have written in subroutine is as follows.
    READ TABLE I_IN WITH KEY NAME = 'RF140-WRSHB'.
    MOVE I_IN-VALUE TO LV_SUM1. 
    CLEAR I_IN.
    DATA: SUM_C TYPE N.
      SUM1 = SUM1 + LV_SUM1.
      READ TABLE I_OUT WITH KEY NAME = 'LV_BALANCE'.
    MOVE SUM1 TO I_OUT-VALUE.
      MODIFY I_OUT TRANSPORTING VALUE WHERE NAME = 'LV_BALANCE'.
      CLEAR I_OUT.
    lv_balance is the one which receives the output value.
    can anyone tell me what is the mistake i have done nd how to rectify it.
    Thanks,
    Rose.

    Hi,
    I have done something similar so below is the code while passing currency fields to subroutines:
    Actually I was retrieving 2 fields from scripts and then substract them and then send back the result to the script. Hope it works out for you, try it out and REWARD POINTS IF HELPFUL!! (also for your prev post!!)
    FORM get_pay TABLES in_tab STRUCTURE itcsy out_tab STRUCTURE itcsy.
      DATA: lv_var(255)  TYPE c, "dmbtr,
            lv_var1(255) TYPE c, "qsshb,
            lv_var2(255) TYPE c, "dmbtr.
            var(20) TYPE c,
            var1(25) TYPE c,
            var2(25) TYPE c,
            var3(25) TYPE c,
            var4(25) TYPE c,
            var5(25) TYPE c,
            var6(25) TYPE c,
            vari TYPE ztemp,
            vari2 TYPE ztemp,
            vari3 TYPE ztemp.
      DATA: lv_var4 TYPE dmbtr,
            lv_var5 TYPE qsshb,
            lv_var6 TYPE dmbtr,
            len TYPE i,
            len1 TYPE i,
            dot TYPE c.
      READ TABLE in_tab WITH KEY 'REGUP-DMBTR'.
      IF sy-subrc EQ 0.
        lv_var = in_tab-value.
        len = STRLEN( lv_var ).
        len1 = len - 3.
        dot = lv_var+len1(1).
        IF dot = ','.
          SPLIT lv_var AT ',' INTO var1 var2.
          REPLACE '.' IN var1 WITH ','.
          CONCATENATE '.' var2 INTO var2.
          CONCATENATE var1 var2 INTO var.
          CONDENSE var.
          vari = var1.
          SHIFT vari LEFT DELETING LEADING '0'.
          CONCATENATE vari var2 INTO vari.
          lv_var4 = vari.
        ELSE.
          SPLIT lv_var AT '.' INTO var1 var2.
          REPLACE '.' IN var1 WITH ','.
          CONCATENATE '.' var2 INTO var2.
          CONCATENATE var1 var2 INTO var.
          CONDENSE var.
          vari = var1.
          SHIFT vari LEFT DELETING LEADING '0'.
          CONCATENATE vari var2 INTO vari.
          lv_var4 = vari.
        ENDIF.
        CLEAR: dot, len, len1.
      ENDIF.
      lv_var = vari.
      CALL FUNCTION 'CHAR_NUMC_CONVERSION'
        EXPORTING
          input   = lv_var
        IMPORTING
          numcstr = lv_var4.
      READ TABLE in_tab WITH KEY 'REGUP-QBSHB'.
      IF sy-subrc EQ 0.
        lv_var1 = in_tab-value.
        len = STRLEN( lv_var1 ).
        len1 = len - 3.
        dot = lv_var1+len1(1).
        IF dot = ','.
          SPLIT lv_var1 AT ',' INTO var3 var4.
          REPLACE '.' IN var3 WITH ','.
          CONCATENATE '.' var4 INTO var4.
          CONDENSE var.
          vari2 = var3.
          SHIFT vari2 LEFT DELETING LEADING '0'.
          CONCATENATE vari2 var4 INTO vari2.
          lv_var6 = vari2.
        ELSE.
          SPLIT lv_var1 AT '.' INTO var3 var4.
          REPLACE '.' IN var3 WITH ','.
          CONCATENATE '.' var4 INTO var4.
          CONDENSE var.
          vari2 = var3.
          SHIFT vari2 LEFT DELETING LEADING '0'.
          CONCATENATE vari2 var4 INTO vari2.
          lv_var6 = vari2.
        ENDIF.
        CLEAR: dot, len, len1.
      ENDIF.
      lv_var1 = vari2.
      CALL FUNCTION 'CHAR_NUMC_CONVERSION'
        EXPORTING
          input   = lv_var1
        IMPORTING
          numcstr = lv_var6.
      lv_var5 = lv_var4 - lv_var6.
      lv_var2 = lv_var5.
      var = lv_var5.
      WRITE lv_var5 TO var CURRENCY 'SG'.
      READ TABLE out_tab WITH KEY 'LV_PAY'.
      IF sy-subrc EQ 0.
        out_tab-value = var.
        MODIFY out_tab INDEX 1.
      ENDIF.
    ENDFORM.                    "get_PAY
    Regards,
    Narendra.

  • FF67 problem, can't change statement date(statement saved but not post)

    I need to change the statement date of a bankstatement. I did not post the statement yet.
    I used a wrong statement date, and I want to change it, but I saved it after booking the second screen(the one with the
    statement items)
    When I look by Manual Bank Statement Overview I see the bankstatement, but it has no Posting complete remark yet, because it has not been postefdofcourse.
    The problem is I can't change the statement date, because when I try to Post then the systems gives an error because it does not accept the new statement date I want to use.
    Is there a way to solve this problem? The statement has not been posted yet, so I suprised I can't change the statement date.
    Anyway I hope somebody can help me out.

    I had to post them first because otherwise it looks I could not delete the statement.
    I saw no Id with only saving, that's why I post them. then the statement got an id.
    What do I have to choose to make it possible to delete statements, not posted yet.
    I guess I have to select something else because I did not see any Id to choose.
    I do a manual input of the bankstatements (no import).
    Whst's the best I can do now?  What do you mean with FI?
    I guess I can do a manual booking on the three(send/receive and general) bankaccounts to get the right position of the accounts?
    The bankstatements are ok(booked with ff67) only the three accounts I mention above have the wrong position.

  • DATA statement with addition " vallue"

    hi!
    What does the following syntax mean????????????
    data : c_program(100) type c value
    'drive name:\VSPROJ\Development\SAP2ADInt Create from SAP\bin\****.exe'.
    points will be awarded.
    Cheers
    Troy

    Hi
      It is the path on your presentation server. It should have been like this.
    '<drive name>:\VSPROJ\Development\SAP2ADInt Create from SAP\bin\****.exe'.
    In place of <drive name> u can give the physical drive for example 'C' or 'D' or whichever is configured on your desktop.
    Please award points if found helpful.

  • Field is unknown. it is neither in one of specified tables nor defined by data statement

    Hello,
    I'm doing enhancement  to filter the data for the input parameters. Also I've coded implicit enhancement for the selection parameters to be displayed on standard IE05 selection screen.
    Defined a block as follows in standard  program RIHEQUI20
    selection selectio begin of block b1 with frame title text-099.
    select-options:
                        cre_date for equi-zzcreate_date,
                        lp_pdate for equi-zzprint_date.
    selection selectio end of block b1.
    now to filter the data corresponding to the input in selection parameters i've explicit enhancement point in which added coded in where condition
    as
    zzcreate_date IN cre_date
    AND zzprint_date IN lp_pdate
    but error message showing the above heading
    Solution for that....PLZ help!!

    Hello,
    below is code for pragram RIHEQUI20...
    ENHANCEMENT-POINT RIEQUI20_G6 SPOTS ES_RIEQUI20 STATIC.
    *$*$-Start: RIEQUI20_G6-------------------------------------------------------------------------$*$*
    ENHANCEMENT 5  MGV_GENERATED_RIEQUI20.    "active version
    START-OF-SELECTION.
    ENDENHANCEMENT.
    *$*$-End:   RIEQUI20_G6-------------------------------------------------------------------------$*$*
    ENHANCEMENT-POINT RIEQUI20_G7 SPOTS ES_RIEQUI20.
    *$*$-Start: RIEQUI20_G7-------------------------------------------------------------------------$*$*
    ENHANCEMENT 6  MGV_GENERATED_RIEQUI20.    "active version
       LOOP AT mgv_matnr_selopt_tab.
         CONCATENATE mgv_matnr_selopt_tab-name'[]' INTO
         mgv_matnr_selopt_tab-name.
         ASSIGN (mgv_matnr_selopt_tab-name) TO <mgv_matnr_selopt_conv>.
         IF sy-subrc IS INITIAL.
           CALL FUNCTION 'MGV_SELOP_AFTER_START_OF_SEL'
                EXPORTING
                     SELOPT_NAME = mgv_matnr_selopt_tab-name
                TABLES
                     RANGE       = <mgv_matnr_selopt_conv>.
         ENDIF.
       ENDLOOP.
    ENDENHANCEMENT.
    ENHANCEMENT 1  ZPM_BARCODE_SCREEN_EHNANCMENT1.    "active version
    *  SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    *    PARAMETERS: pa type equi-zzcreate_date.
    *    SELECTION-SCREEN end of BLOCK b1.
    ENDENHANCEMENT.
    *$*$-End:   RIEQUI20_G7-------------------------------------------------------------------------$*$*
    INCLUDE miequi20.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Include RIEQUI20, End                                                                                                                             S
    *$*$-Start: (1)---------------------------------------------------------------------------------$*$*
    ENHANCEMENT 2  ZPM_BARCODE_SCREEN_EHNANCMENT1.    "active version
        SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-099.
         select-OPTIONS:
           Cre_Date for equi-zzcreate_date,
           lp_pdate for equi-zzprint_date,
           lp_tdate for equi-zztag_date,
           lp_sdate for equi-zzscan_date,
           lp_count for equi-zzprint_no.
         SELECTION-SCREEN end of BLOCK b1.
    ENDENHANCEMENT.
    *$*$-End:   (1)---------------------------------------------------------------------------------$*$*
    And for data to filter according to select-option , implemented an explicit enhancement in section.
    code for that is in include miequi20

  • Up Date stat is failing

    Dear All
    DB Update stat is failing please help
    BR0280I BRCONNECT time stamp: 2011-11-12 23.46.15
    BR0884I Statistics collected for table: SAPDAT./BIC/0CZE_Q04, rows old/new: -1/13
    BR0280I BRCONNECT time stamp: 2011-11-12 23.46.15
    BR0881I Collecting statistics for table SAPDAT./BIC/B0000002000 with method/sample E/P.300 ...
    BR0280I BRCONNECT time stamp: 2011-11-13 01.34.04
    BR0301E SQL error -3113 at location stats_tab_collect-20, SQL statement:
    'BEGIN DBMS_STATS.GATHER_TABLE_STATS (OWNNAME => '"SAPDAT"', TABNAME => '"/BIC/B0000002000"', ESTIMATE_PERCENT => 0.300, METHOD_
    ORA-03113: end-of-file on communication channel
    BR0280I BRCONNECT time stamp: 2011-11-13 01.34.04
    BR0261E BRCONNECT cancelled by signal 13
    BR0280I BRCONNECT time stamp: 2011-11-13 01.34.04
    BR0301E SQL error -1092 at location db_connect-2,SQL statement:
    'CONNECT /'
    ORA-01092: ORACLE instance terminated. Disconnection forced
    BR0310E Connect to database instance EBP failed
    BR0806I End of BRCONNECT processing: cehfacda.sta2011-11-13 01.34.04
    BR0280I BRCONNECT time stamp: 2011-11-13 01.34.04
    BR0804I BRCONNECT terminated with errors
    External program terminated with exit code 5
    Thanks
    Reddy

    Hi,
    My system is already on 10.2.0.4.0 and in sm21 i could find this log
    Documentation for system log message BY 2 :
    After the attempt to call a database operation, the database system has
    returned the error code specified in the message, which indicates that
    the operation concerned could not be executed successfully.
    61446 354420 h     Database Error (Non-SQL) BY  2 3113      FET                                       dbds    596
    Thanks
    Reddy

  • Regarding month to date balance sheet or income statement

    Hi all,
         We are using T-Code S_PL0_86000028 for viewing balance sheet and income statements. In the selection variants for the period, if we select same value for the from period and to period it should actually show month to date statement. But we are not able to view month to date statement. We are getting only year to date statement. 
          And there is also profit center variant on this screen which if selected gives statement by profit center.
    But we are not able to view by profit center. If we give some profit center no data is being pulled up. But if we leave it blank it is giving the total statement.
         Is there any where in configuration that we should change to get this issues resolved.
    Can anyone help me out with this. Let me know if I am not clear with anything.
    Thank you in advance
    Ravi Boppana

    Hi,
    Go to FGi1 code this for creating new report.Give copy from report name as 0SAPBSPL-01.Press create button.
    Here you check profit center field, if it is deactivated then activate that one.Check whether profit center field is used in your form.If it is used then you will not get it for selection e.g. if in my form I had restricted one column for one specific profit center then system won't allow me to give profit center from selection screen.
    Your second problem is known as YTD (year till date) FTM (for the month) selection problem.
    For this you define additional column in your form for YTD in that define field from period as 1 & to period as variable set for to period (means input you provide while executingthe report).
    This will give YTD figure.
    Regards,
    Abhijit

  • Best way to pass large amounts of data to subroutines?

    I'm writing a program with a large amount of data, around 900 variables.  What is the best way for me to pass parts of this data to different subroutines?  I have a main loop on a PXI RT Controller that is controlling hydraulic cylinders and the loop needs to be 1ms or better.  How on earth should I pass 900 variables through a loop and keep it at 1ms?  One large cluster??  Several smaller clusters??  Local Variables?  Global Variables??  Help me please!!!

    My suggestion, similar to Altenbach and Matt above, is to use a Functional Global Variable (FGV) and use a 1D array of 900 values to store the data in the FGV. You can retrieve individual data items from the FGV by passing in the index of the desired variable and the FGV returns the value from the array. Instead of passing in an index you could also use a TypeDef'd Enum with all of your variables as element of the Enum, which will allow you to place the Enum constant on the diagram and make selecting variables, as well as reading the diagram, simpler.
    My group is developing a LabVIEW component/example code with this functionality that we plan to publish on DevZone in a month or two.
    The attached RTF file shows the core piece of this implementation. This VI off course is non-reentrant. The Init case could be changed to allocate the internal 1D array as part of this VI rather than passing it from another VI.
    Message Edited by Christian L on 01-31-2007 12:00 PM
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    CVT_Double_MemBlock.rtf ‏309 KB

  • Manual Bank Statement Date

    Hi All,
    Accounts user entered manual Bank Statement and save but wrongly entered Bank Statement Date.
    I am unable to change Bank Statement dat. Is there any way to change Bank Statement date?
    Regards
    AJ

    Hi,
    Please follow the below link it will help full for you........,
    FF67 problem, can't change statement date(statement saved but not post)
    Naresh

Maybe you are looking for

  • What cast type are used for?

    In the example attached to this question is a simple VI application that cast, using type cast of LabVIEW, one value to different other type. My understanding of type cast, in C, C++ and to my best knowledge, was an implicit adaptation of a numerical

  • Copying Grageband setting to Logic Express 7?

    I've been working with Garageband since it came out, and what I usually do is begin a project in GB and then open it in Logic Express 7 to to be able to do more. Even though I don't like GB's limitations compared to LE 7, some of the pre-made setting

  • 5.1 sound problem in ALC662 rev 1

    i have changed alsa to 6 ch in alsamixer, unmuted all channels. Now when i run speaker-test - c 6 then only front left and front right are operational rest are shown as unused. if i give the full command as with option -D surround51 then no sound com

  • Blocked Memory card!!

    My memory card is blocked and I don't know the password, I can't find any helplines with Nokia to help me redeem this problem, it would be much appreciated if anyone could answer to my problem as soon possbile.

  • Data format - Help needed!!!!!

    I have a String with this value:"Thu Dec 19 09:23:49 2002" ; is there a java method to convert it automatically in another string to this format: "19/12/2002" or "12/19/2002" (it depends on italian date) thanks all!!