Error during creation of push button on selection screen

Hi,
I wanted to create push buttons on selection screen,
Code:
DATA DB1 TYPE VBAP-WERKS.
DATA DB2 TYPE MARA-MATNR.
SELECT-OPTIONS : SPLANT FOR DB1,
                                SCLASS FOR DB2.
SELECTION-SCREEN:  FUNCTION KEY 1,
                                    FUNCTION KEY 2,
                                    FUNCTION KEY 3.
INITIALIZATION.
DATA FUNCTXT TYPE SMP_DYNTXT.
CLEAR FUNCTXT.
DATA: FUNCTXT_01 TYPE SSCRFIELDS-FUNCTXT_01.
FUNCTXT-TEXT = 'DEL'.
SSCRFIELDS-FUNCTXT_01 = FUNCTXT.
CLEAR FUNCTXT.
FUNCTXT-TEXT = 'EDIT'.
SSCRFIELDS-FUNCTXT_02 = FUNCTXT.
CLEAR FUNCTXT.
FUNCTXT-TEXT = 'CRE'.
SSCRFIELDS-FUNCTXT_03 = FUNCTXT.
But during activating, I'm getting the error as : Field "SSCRFIELDS-FUNCTXT_01" is unknown. It is neither in one of the specified tables nor defined by "DATA" statement.
Please suggest solutions to overcome this error.
Regards
Darshan MS

Hi,
trans. for examples of selection screen : BIBS
regards
Fred

Similar Messages

  • How to Add Push Button On Selection Screen

    Hi Experts,
    How to add Push button on Selection Screen.
    Points will b rewarded for useful help.
    Bohra.

    Hi,
    To create a pushbutton on the selection screen, you use:
    SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>
    USER-COMMAND <ucom> [MODIF ID <key>].
    The [/]<pos(len)> parameters and the MODIF IF addition have the same function as for the formatting options for underlines and comments.
    <push> determines the pushbutton text. For <push>, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called.
    For <ucom>, you must specify a code of up to four characters. When the user clicks the pushbutton on the selection screen, <ucom> is entered in the UCOMM of the SSCRFIELDS interface work area. You must use the TABLES statement to declare the SSCRFIELDS structure. The contents of the SSCRFIELDS-UCOMM field can be processed during the AT SELECTION-SCREENevent.
    Ex.
    REPORT DEMO.
    TABLES SSCRFIELDS.
    DATA FLAG.
    SELECTION-SCREEN:
    BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
    PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
    END OF LINE,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
    PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
    END OF LINE,
    END OF SCREEN 500.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS.
    WHEN 'CLI1'.
    FLAG = '1'.
    WHEN 'CLI2'.
    FLAG = '2'.
    WHEN 'CLI3'.
    FLAG = '3'.
    WHEN 'CLI4'.
    FLAG = '4'.
    ENDCASE.
    START-OF-SELECTION.
    TIT = 'Four Buttons'.
    BUT1 = 'Button 1'.
    BUT3 = 'Button 3'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    CASE FLAG.
    WHEN '1'.
    WRITE / 'Button 1 was clicked'.
    WHEN '2'.
    WRITE / 'Button 2 was clicked'.
    WHEN '3'.
    WRITE / 'Button 3 was clicked'.
    WHEN '4'.
    WRITE / 'Button 4 was clicked'.
    WHEN OTHERS.
    WRITE / 'No Button was clicked'.
    ENDCASE.
    This example defines four pushbuttons on a selection screen that is displayed as a
    dialog box. The selection screen is defined in a statement chain for keyword
    SELECTION-SCREEN.
    If the text symbols TEXT-020 and TEXT-040 are defined as 'Button 2' and 'Button 4',
    the four pushbuttons appear as follows on the selection screen displayed as a dialog box.
    Regards,
    Bhaskar

  • Creating push button on Selection screen application toolbar

    Hi Friends,
    this is a HR-ABAP report. I have to create a push button on Selection screen. when user clicks on that push button 'MODAL DIALOG BOX' has to be displayed containing some data.
    plz kindly give some sample code to do this.
    Regards,
    Radhika Dasharatha.

    Hi,
    1)Use SELECTION-SCREEN  PUSHBUTTON /10(20) PUSH USER-
      COMMAND 'ABC'. in selection screen.
    2) Give the static name to button in INITIALIZATION event like PUSH = 'PRESS'.
    3) At selection screen.
      if sy-ucomm eq 'ABC'.
    call FM HR_BE_GE_MODAL_DIALOG
    endif.
    Thanks
    Sandeep
    Reward if useful

  • Push button on selection screen

    Hi,
    I have provided push button on selection screen after input fields I mean just below to input fields by using the syntax selection screen pushbutton…..   And it is appearing on the selection screen.  As per the requirement I need to enter material number on the selection screen and if I press corresponding push button I need to call one transaction using bdc program.  I wrote case sy-comm and corresponding user command ( whatever is there in the selection screen syntax) in when condition under start of selection event.
    But the control is not going to that place after I press push button. If I put that code inside of at selection screen it is going. But I can not write all the bdc program and select queries inside of at selection screen event if so please suggest me how I can proceed.
    I will give the points.
    Thanks a lot in advance.

    Hi,
    SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-018.
    SELECT-OPTIONS s_fields FOR qpmk-mkmnr NO-DISPLAY.
    SELECTION-SCREEN PUSHBUTTON /1(24) name USER-COMMAND flds.
    SELECTION-SCREEN END OF BLOCK b_2.
    AT SELECTION-SCREEN.
    IF sscrfields-ucomm = 'FLDS'.
        PERFORM display_fields.
      ENDIF.

  • ADD push button in selection-screen

    Hi Guys,
    I have a requirement.
    In the selection screen on the report, I need a push button "Click".
    When i "Click"  First Time this it should display all the selection screen Blocks B1,B2,B3 from my selection screen.
    For second "Click" it should Hide the Blocks B1,B2,B3.
    I am doing the following code in my report:
    But for first Click it is displaying the Blocks.And for the Second click it is not Hiding.
    Please suggest on this.....
    initialization.
      if screen-group1 = 'A1' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A2' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A3' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
    I am using " At selection screen:
    at selection-screen.
    if gv_flag = space.
            loop at screen.
              if screen-group1 = 'A1' .
                screen-active = 1.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A2' .
                screen-active = 1.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A3' .
                screen-active = 1.
                modify screen.
              endif.
            endloop.
            gv_flag = 'X'.
          elseif gv_flag = 'X'.
                  loop at screen.
              if screen-group1 = 'A1' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A2' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            loop at screen.
              if screen-group1 = 'A3' .
                screen-active = 0.
                modify screen.
              endif.
            endloop.
            gv_flag = space.
    endif.

    You are hiding it in INITIALIZATION block which means it hides only once before PBO. If you want to show/hide it in turn simply place all your code in PAI, not just part of it.
    Regards
    Marcin
    Sorry didn't notice part of the code in the bottom
    The logic should go like
    at selection-screen.
    if gv_flag = space.
    loop at screen.
      case screen-group1.
         when 'A1' or 'A2' or 'A3'    
            screen-active = 1.
            modify screen.
         when others.
       endcase.
    endloop.
    gv_flag = 'X'.
    elseif gv_flag = 'X'.
       loop at screen.
          case screen-group1.
               when 'A1' or 'A2' or 'A3'.
                screen-active = 0.
                modify screen.
             when others.
        endcase.
    endloop.
      gv_flag = space.
    endif.
    Regards
    Marcin
    Edited by: Marcin Pciak on Apr 1, 2011 12:33 PM

  • Display output list by pressing a push button on selection screen.

    Hi All,
    Is there any possibility of displaying the output list by pressing a push button on the selection screen.
    Thanks,
    Neslin.

    Hi,
    Just write the code like this
    Case sy-ucomm.
    when 'PRE'.
    Here write the output list
    " leave to list-processing. Write this statement
    endcase.
    Regards
    Sarves

  • Radio button in selection screen and push button

    Hi experts,
    I want to give radio button in selection screen side by side.
    how we can do this on slection screen.
    secondly i want to resize push button on selection screen.
    please provide me the exact solution.
    thanks
    babbal

    Hi babbal,
    For Your Requriment yo can go to tcode se51 & then give ur program name & give screen number as 1000 because 1000 is default screen for all the programs and in se51 Press Layout button & then you can make changes to the Selection screen according to your requriment
    Hope it will be Helpfull.......!!
    Thanks & Regards,
    Bhushan

  • Button in selection screen

    Hello Gurus ,
    I want to insert data from selection screen into my ztable , I have activated save button in menu bar , with function text SAVE and function type , E , S ,  null , H , P all I have tesated , but it is not working , with case sy-ucomm , when 'SAVE' .
    In same way Print is working but not save .I am not getting the prob .
    Is there any problem , plz help me , I m in hurry .
    I am waiting for  all of your valuable reply .
    Regards,
    Joy .

    Hi Joy,
    Check out the below related threads for placing the push buttons ... Frame logic accordingly as per your requirement ..
    push button in selecion screen
    Push button on selection screen
    push button on selection screen\
    PUSH Button in Selection Screen

  • Error during creation of info record for pipline material.(Urgent)

    Hi All,
    We are getting the following error during creation of Info record for pipeline material
    " Material XXXXX is not a pipline material"
    we have checked the material master  and found it is a pipeline material.
    Kindly advice on the same.
    Help in any form will be rewarded.
    Best Regards
    Arihanth

    Hi Arahanth,
       The steps u need to check are;
    1) The Material Type ( If standard then it is PIPE or if defined own Material Type check the settings once preferably in special material type a tick at pipeline mandatory)
    2) when u create the info record (ME11) ensure the info category is selected as pipeline.
    Hope its clear to u
    if solved do reward me points
    Regards
    Anil Thai

  • Installation error during creation of user SAPJSF

    Hello,
    i'm performing SOLMAN installation and the installation stops in "Import Abap" step with problem creating the SAPJSF user. Several posts regarding the same error did not helped. When the sapinst is trying to create the SAPJSF user, i notice that the DB2 service in Windows services changes from "started" to "stopped"
    OS:windows 2003 enterprise 64bit
    DB:db2 udb
    SOlman: 7.0 including EHP1
    The error from "sapinst.log":
    WARNING 2010-09-17 10:32:40.906
    Execution of the command "I:\usr\sap\SOF\DVEBMGS00\exe\jlaunch.exe UserCheck.jlaunch com.sap.security.tools.UserCheck "C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\DB6\CENTRAL\AS\install\lib;C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\DB6\CENTRAL\AS\install\sharedlib;C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\DB6\CENTRAL\AS\install" -c sysnr=00 -c ashost=fmgrsolman -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u SAPJSF -p XXXXXX -r SAP_BC_JSF_COMMUNICATION_RO -user_type system -message_file UserCheck.message" finished with return code 4. Output:
    Sep 17, 2010 10:30:29... Info: User management tool (com.sap.security.tools.UserCheck) called for action "checkCreate"
    Sep 17, 2010 10:30:30... Info: Connected to backend system SOF client 001 as user DDIC
    Sep 17, 2010 10:30:30... Info: Called for user SAPJSF
    Sep 17, 2010 10:30:30... Info: Formal password check successful
    Sep 17, 2010 10:30:30... Info: Will create user SAPJSF
    Sep 17, 2010 10:31:38... Warning: Error during creation of user SAPJSF. Will remove user again to ensure clean exit state
    Sep 17, 2010 10:32:40... Error: Exception during execution of the operation
    [EXCEPTION]
    com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: 00024No connect to database, session terminated??????????????????????????
         at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:518)
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1086)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:3255)
         at com.sap.security.tools.UserCheck.resetJCOClient(UserCheck.java:2479)
         at com.sap.security.tools.UserCheck.deleteUser(UserCheck.java:2024)
         at com.sap.security.tools.UserCheck.main(UserCheck.java:300)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:331)
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Sep 17, 2010 10:32:40... Info: Leaving with return code 4
    The error from "UserCheck.log":
    Sep 17, 2010 10:36:58... Info: User management tool (com.sap.security.tools.UserCheck) called for action "checkCreate"
    Sep 17, 2010 10:36:59... Info: Connected to backend system SOF client 001 as user DDIC
    Sep 17, 2010 10:36:59... Info: Called for user SAPJSF
    Sep 17, 2010 10:36:59... Info: Formal password check successful
    Sep 17, 2010 10:36:59... Info: Will create user SAPJSF
    Sep 17, 2010 10:37:59... Warning: Error during creation of user SAPJSF. Will remove user again to ensure clean exit state
    Sep 17, 2010 10:38:56... Error: Exception during execution of the operation
    [EXCEPTION]
    com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: 00024No connect to database, session terminated??????????????????????????
         at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:518)
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1086)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:3255)
         at com.sap.security.tools.UserCheck.resetJCOClient(UserCheck.java:2479)
         at com.sap.security.tools.UserCheck.deleteUser(UserCheck.java:2024)
         at com.sap.security.tools.UserCheck.main(UserCheck.java:300)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:331)
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Sep 17, 2010 10:38:56... Info: Leaving with return code 4
    Edited by: DimitrisDimas on Sep 20, 2010 5:38 PM

    hi
    wat s ur JDK version??
    please refer this,
    [SAPJSF - no password for user - ECC6 - IDES|SAPJSF - no password for user - ECC6 - IDES]
    jansi

  • Travel Expense - Posting run error - Error during creation of posting run

    Hi Guru's,
    Look forward for your insights. Here you go with my question.
    We are implementing Expense Mgt with Portal with out scope for payroll in SAP.  I have set up Expense type, WT, Symbolic A/c to G/L Accounts. Im performing Unit testing currently.
    Created Expense trip in ESS, from R/3 tcode PRAP, have approved trip, and settled through Tcode - PREC.
    When I try to create posting run under transfer to accounting, I get following error
    Error during creation of posting run number (->PR1
    Message no. 56840
    I'm not sure why this error was popping up. Appreciate your suggestion.
    Regards
    Praveen.N

    Hi,
    Since you are trying to make payment through FI, you need to maintain ur employee as Vendor. You can do it through PRAA.
    So while creating posting run for this trip, it checks if the respective Vendor for this employee is maintained or not.
    Pls maintain it as vendor and see if the errors are still coming.
    Rakesh

  • Error during creation of transfer orders for material

    Hi,
            We are doing a transfer of stock from one storage with WM to a storage without WM.
    But system does not finish the process automatically displaing the following error message:
    "Error during creation of transfer orders for material document 49000XXXX"
    System cannot find source storage bin
    Thanks in advance for the help
    Regard
    Enzo

    your picking strategy does not find the bin where the material is.
    So you need to check what value you have entered for picking in WM view of material master.
    then you have to check where your material is (storage type and bin)
    then you need to check customizing to where what storage types are included in the picking strategy that is tight to the material master entry.

  • Error during Creation of Product Group

    Hi experts
    I am getting below error during creation of Product Group MC84,
    how to solve this
    The field  is defined as a required field; it does not contain an entry
    Message no. MG144
    Procedure
    Transfer a suitable value.
    If the field is the material group or unit of weight, and the field is not ready for input, check whether the material is locked. If it is locked, you cannot extend the Purchasing view or the Sales view. If either of these views needs to be extended, the material must first be unlocked. This can be done only by a user with special authorization. Contact your system administrator.
    Note
    For information on locking and unlocking material master records, see the SAP library documentation Material Master (LO-MD-MM) ->Locking Material Master Records.

    Hi,
    Please refer the below thread,
    PRODUCT GROUP
    Regards,
    Senthilkumar

  • Standalone Scenario - Error during Creation of Local Purchase Order

    Hi All,
         I am trying to setup Standalone Scenario, i have created all the master data locally, i am able to Order SC, but after workflow approval SC goes into error 'Error during creation of local purchase order from shopping cart XXXXXXXXX'
         I have created following configuration setting for local PO number
    1) In SPRO -> Cross-Application Basic Settings -> Number Ranges -> Define Number rang. for Schopping Carts and Follow-on Doc. --- i have number ranges for PO follow-on doc. i.e.
    inrerval No = PO, from number = 0004000000, to number = 0004999999, ext. = unchecked
    2) In SPRO -> Cross-Application Basic Settings -> Number Ranges -> Define Ranges per backend system for follow-on documents PO, PR etc
    3) In sourcing (SPRO -> Cross-Application Basic Settings -> Sourcing -> Define Interactive Sourcing for product categories) ---  sourcing is never carried out.
    Can anybody help?
    Regards,
    SAP Guy.
    Edited by: SAP Guy on Apr 23, 2008 2:32 AM

    Hi SAP Guy,
    Following steps are must for Local number range
    1) Create number range for local PO
    2) Maintain your logical system in 'Define number range per backend system for follow on document'
    3) Define Transaction Type for BUS2201, define document type (e.g. EC1)
    4) Assign Document type (EC1) in Org attribute BSA.
    Hope this helps.
    Regards,
    Manish.

  • Error during creation of transfer orders for mateRIA

    hi gurus,
    I am getting an error while moving material from sl0c2 to sloc1 which is connected to wh by mvmt 321. the document is getting posted and the stock is coming to sloc1,but the error is
    "Error during creation of transfer orders for mateRIAL.how to correct the error.
    regards
    murugan

    Hi,
    The material is maintained at the Warehouse level, hence warehouse transactions have to be completed, by creating a transfer order and the confirmation of the same will create a transfer posting from SL1 to SL2 in the system. This is trigerred automatically depending on the sytem configuration.
    Regards,
    raghu

Maybe you are looking for

  • BSI version upgrade from 8 to 9 query

    Hello All We are upgrading TaxFactory from 8 to 9 by following the SAP note 1469858. when we run the report RPUBTCU0, SAP system is giving system failure error. We are in contact with BSI support but no use, as suggested by them we have changed the p

  • Multiple Portal Authentication when closing Word document

    Hi all, We are on EP6 SP2 Patch4 HF7 and CM HF6.  When closing a MS Word document accessed from the KM Repository multiple Portal authentication popups appear.  This only happens to Word documents.  Other documents like Excel, Powerpoint, pdf etc. cl

  • Cisco ISE User support

    In ISE-3355 Platform when we say it supports between 500 and 1000 concurrent users, is it the concurrent user session or authentication or what exactly it is?

  • Partition exchange with Primary Key Enabled : is it possible ?

    Hello everybody. I have succeeded "exchange...INCLUDING INDEXES WITH VALIDATION" a single table with a partition when primary key of the single table and the partitioned table are both Disabled and Validated. I am trying now to do the same thing but

  • Two networked macs with identical user folders...

    Situation: my wife and I each own our own Mac, but 2 isn't always enough. Often a friend will come over and snarf one up for extended periods of time. When this happens, one of us can't access our own account (we have a guest account on each) on our