‎2010 Aug 12 12:00 PM
Wat are parameter id's?Explain with example.
how to put pushbutton without using screen painter in selection-screen?
Thanks
Manu Gowdru
Moderator message: please search for available information before asking.
locked by: Thomas Zloch on Aug 12, 2010 1:50 PM
‎2010 Aug 12 12:29 PM
Hi Manu,
the parameter is used to move a value into a memory field. If you assign the material 'xxx' to the parameter id MAT using a custom program, once you try to run transaction MM03, you will see that the material is populated on field material.
Press F1 to check what is the paramater id for any field on any transaction.
To declare a pushbutton on a report you can do the following:
TABLES: sscrfields.
SELECTION-SCREEN FUNCTION KEY 1.
INITIALIZATION.
MOVE 'Maintain Table' TO sscrfields-functxt_01.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'FC01'.
PERFORM f_maintenance_table.
ENDIF.
Regards.
Moderator message: please do not encourage laziness by replying to such questions!
Edited by: Thomas Zloch on Aug 12, 2010 1:51 PM
‎2010 Aug 12 12:37 PM
Hi,
Parameter id is an id which is associated with your fields for accessing this field value outside SAP Memory Concept, for example when you create a sales order through va01 ,after it is succesfully craeted , when you log into va02 or vao3 you will automatically get the last sales order number, vbeln has a parameter id associated with it you can check the technical setting of field order number in vao1 there will be a field parameter id.
for careting pushbutton:
TABLES sscrfields.
TYPE-POOLS icon.
SELECTION-SCREEN:
BEGIN OF SCREEN 500 AS WINDOW TITLE title,
PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
PUSHBUTTON 12(30) but2 USER-COMMAND cli2
VISIBLE LENGTH 10,
END OF SCREEN 500.
AT SELECTION-SCREEN.
CASE sscrfields.
WHEN 'CLI1'.
...
WHEN 'CLI2'.
...
ENDCASE.
START-OF-SELECTION.
title = 'Push button'.
but1 = 'Button 1'.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_information
text = 'Button 2'
info = 'My Quickinfo'
IMPORTING
RESULT = but2
EXCEPTIONS
OTHERS = 0.
CALL SELECTION-SCREEN '0500' STARTING AT 10 10.
Regards,
Gunjan
Edited by: Gunjan Tyagi on Aug 12, 2010 1:37 PM
Moderator message: please do not encourage laziness by replying to such questions!
Edited by: Thomas Zloch on Aug 12, 2010 1:52 PM
‎2010 Aug 12 12:39 PM
‎2010 Aug 12 12:36 PM
Hi,
You can get to know the use of parameter id in F1 help itself.
parameter id.
A field can be filled with proposed values from SAP memory using a parameter ID.
example
A user only has authorization for company code 0001. This company code is stored in memory at the beginning of a
transaction under the corresponding parameter ID. Fields that refer to the data element are automatically filled with the
value 001 in all subsequent screen templates.
Push button
go to the transaction ABAPDOCU-> ABAP user dialogs.you will get examples for push buttons.
Thanks
Arul
Moderator message: please do not encourage laziness by replying to such questions!
Edited by: Thomas Zloch on Aug 12, 2010 1:51 PM
‎2010 Aug 12 12:52 PM
Hello Manu.
Before asking questions in the forums please do some basic research. There is a search box at the top of each SCN web page...
This thread will be locked and answers will be removed as we don't want to encourage people to ask basic questions.
Best regards,
Jan Stallkamp