Regarding Dialog Prog
Hi,
I want to know about the steps to create dialog program,
Hey,
If the field name is FLD1 here is the code you need to write in the PAI module
field FLD1 module check_fld1.
Inside module check_fld1 u need to code your validations. Also refer the help for ON-INPUT and ON-REQUEST additions.
-Kiran
*Please reward helpful answers
Similar Messages
-
Hi All
I am facing prob in Dialog Prog Report.
Created 1 Sel-screen, when the options are given after executing, it runs well.
But when coming back to sel-screen & giving new options, its giving previous records also.
(I have cleared IT).
Regards.Hi,
CLEAR wa_itab. " Clears work area
REFRESH it_itab. " Clears contents of internal table
SELECT * FROM <table> INTO TABLE it_itab WHERE field IN s_sel. -
Dialog Prog. with a selection screen
Hi Gurus,
How its possible to achieve a SELECTION-SCREEN with in a Dialog Prog. Pls. give me rough idea.
Thank you.Hi,
If you are taking about to use the selection screen in you Dialog Program than please follow the following.
You will have to add following Lines in PBO and BAI You need a custom Control on the your Screen where you display your sub screen.
PBO
CALL SUBSCREEN <custom_control_name> INCLUDING '<Programe_name_where_sub_screen'> '<Screen Number'>
PAI
CALL SUBSCREEN <custom_control_name>
In Program it must be like this.
selection-screen begin of screen 0001 as subscreen.
parameters: date like sy-datum.
selection-screen end of screen 0001.
Hope above will help you,
Please Reply if not Clear,
Kind Regards,
Faisal -
How to populate both key and text in drop down list in dialog prog screen
Hi, Can anyone please advice how to display both key and text in the drop down list in dialog prog screen. I tried with below code. keys and texts are getting populated in values table but only text is appearing when click on drop down. need to display both key and text in the drop down. Thanks in advance.
TABLES: ZRPP_MODELS, ZRPP_FFLSTRATEGY.
TYPE-POOLS : VRM.
DATA : field_id TYPE VRM_ID ,
values TYPE VRM_VALUES,
value LIKE LINE OF values.
FORM fill_model_list .
select MODEL MODEL_DESC from ZRPP_MODELS into value.
APPEND value TO VALUES.
endselect.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'ZRPP_MODELS-MODEL'
values = values.
ENDFORM.You need to concatenate KEY & VALUES
wa_values-key = '1'.
wa_values-text = '1 - One'.
append wa_values to i_values.
wa_values-key = '2'.
wa_values-text = '2 - Two'.
append wa_values to i_values.
wa_values-key = '3'.
wa_values-text = '3 - Three'.
append wa_values to i_values.
call function 'VRM_SET_VALUES'
exporting
id = 'LIST_BOX'
values = i_values
exceptions
id_illegal_name = 1
others = 2.
a® -
hi alll,
i've created one dialog prog. in that prog. i created inserted table control. in that control i placed two TXTNAME and TXTAGE (input/output field). BUT I activated, the folllowing error occurs during runtime :
The txtname is not assigned to a loop "LOOP ... ENDLOOP" muthu appear in "PBO" and "PAI".
pls solove my problemHi,
While defining a table control on a screen, the following statements are mandatory :
1. CONTROLS : <TABLECONTROL> TYPE TABLEVIEW USING SCREEN <SCREENNO.>
2. In the Flow Logic,
a. In the PBO.
Loop at itab with <tablecontrol>.
endloop.
b. In the PAI,
loop at itab.
endloop.
In your case, ensure that the Statement 2 is present.
Reward if helpful.
Regards -
Hi, dialog prog validation
hi
pl. can anybody reply for the following query.
i would like to know by how many ways validation is done in dialog prog and where in the flowlogic editor it is written.
pl provide code with example.
thanx.
rocky robou can do the validation in PBO.
but the good place is inside <i>chain end chain.</i>
For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.
CHAIN.
FIELD chk_connobj.
FIELD chk_inst.
FIELD chk_devloc.
FIELD ehaud-haus.
FIELD eanl-anlage.
MODULE modify_screenfields.
ENDCHAIN.
*& Module modify_screenfields INPUT
* text
MODULE modify_screenfields INPUT.
CLEAR okcode.
okcode = sy-ucomm.
CASE okcode.
WHEN 'ENTER' OR 'EXECUTE'.
IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
chk_devloc EQ c_x.
IF ehaud-haus IS INITIAL.
SET CURSOR FIELD 'EHAUD-HAUS'.
MESSAGE e000(zo_spa) WITH text-017. " Enter Connection obj
ELSE.
PERFORM conn_obj_check.
ENDIF.
ENDIF.
ENDMODULE. " modify_screenfields INPUT
hope u got the concept.
rgds
Anver -
hi, I am a novice in Labview. I have a doubt regarding dialog boxes. can i make a VI as a dialog without running the VI.
Thanks in Advance
Regards
SoundaryaSoundarya wrote:
hi, I am a novice in Labview. I have a doubt regarding dialog boxes. can i make a VI as a dialog without running the VI.
Thanks in Advance
Regards
Soundarya
Hi Soundarya,
what do you mean? You can make a vi and use it as a dialog, but why should the vi not run?
Mike
Message Edited by MikeS81 on 07-07-2009 09:03 AM -
hi, This is Akhila.
I am a novice in Laview. I have a small doubt regarding Dialog Boxes
Can I add a dialog box in the project same like adding a VI
Thanks in Advance
Regards,
AkhilaYou can create a VI that works like a dialog box. See the shipping examples for some examples on dialog boxes. You can also convert an Express VI dialog to a regular VI and save it as your own. See the Help on converting Express VIs to regular VIs.
-
Reg Dialog Prog..
Hi,
Any one can send me the sample dialog program..I created one DP it contains 2 text field and one push button, when i press the button it ll not work.Hi,
plz go through the following example-----
T A B L E D E C L E R A T I O N
TABLES : Z8T024E.
C O N S T A N T S
DATA : ok_code_501(20).
DATA : A1(20).
DATA: D_FIRST VALUE 'Y'. " DECLEARING A FLAG
data: dyname like d020s-prog value 'Z8VIJAY_T024E_RIV',
dynumb like d020s-dnum value '0501'.
data: begin of dynpfields occurs 3.
include structure dynpread.
data: end of dynpfields.
C O N T R O L S
CONTROLS : TAB_CONTROL TYPE TABLEVIEW USING SCREEN 501.
I N T E R N A L T A B L E
DATA : BEGIN OF I_TAB OCCURS 0,
z8_ekorg TYPE z8ekorg, "purchasing organization
z8_ekotx TYPE z8ekotx, "description
z8_bukrs TYPE z8bukrs, "company code
END OF I_TAB.
*& Module USER_COMMAND_0501 INPUT
text
module USER_COMMAND_0501 input.
OK_CODE_501 = SY-UCOMM.
CASE OK_CODE_501.
*-for save--
WHEN 'SAV1'.
LOOP AT I_TAB.
SELECT SINGLE * FROM Z8T024E
WHERE Z8_EKORG = I_TAB-Z8_EKORG
AND Z8_BUKRS = I_TAB-Z8_BUKRS.
****IF DATA EXITS THEN UPDATE.....
IF SY-SUBRC = 0.
UPDATE Z8T024E SET Z8_EKOTX = I_TAB-Z8_EKOTX
WHERE Z8_EKORG = I_TAB-Z8_EKORG AND Z8_BUKRS = I_TAB-Z8_BUKRS.
ENDIF.
ENDLOOP.
D_FIRST = 'Y'.
CLEAR OK_CODE_501.
**-for exit-
WHEN 'EX01'.
SET SCREEN 0.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_0501 INPUT
*& Module STATUS_0501 OUTPUT
text
module STATUS_0501 output.
SET PF-STATUS 'Z8VIJAY'.
SET TITLEBAR 'TABLE CONTROL FOR Z8T024E'.
IF D_FIRST = 'Y'.
REFRESH I_TAB.
SELECT
z8_ekorg
z8_ekotx
z8_bukrs
INTO CORRESPONDING FIELDS OF TABLE i_tab
FROM z8t024e
WHERE Z8_BUKRS = '5504'.
D_FIRST = 'N'.
ENDIF.
TAB_CONTROL-LINES = 200.
endmodule. " STATUS_0501 OUTPUT
*& Module ADD_ENTRIES OUTPUT
text
module ADD_ENTRIES output.
CLEAR I_TAB.
READ TABLE I_TAB INDEX tab_control-current_line.
TAB_CONTROL-V_SCROLL = 'X'.
*TAB_CONTROL-H_GRID = 'X'.
*TAB_CONTROL-V_GRID = 'X'.
IF I_TAB-Z8_EKORG = '' OR I_TAB-Z8_BUKRS = ''.
LOOP AT SCREEN.
IF SCREEN-NAME = 'I_TAB-Z8_EKOTX'.
SCREEN-OUTPUT = 1.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF..
endmodule. " ADD_ENTRIES OUTPUT
*& Module READ_ENTRIES INPUT
text
module READ_ENTRIES input.
MODIFY I_TAB INDEX tab_control-current_line.
IF I_TAB-z8_bukrs IS INITIAL.
ENDIF.
endmodule. " READ_ENTRIES INPUT
*& Module DISPLAY OUTPUT
text
module DISPLAY output.
*when display-
IF SY-UCOMM = 'DISP'.
IF I_TAB-Z8_EKORG <> ''.
LOOP AT SCREEN.
SCREEN-INPUT = 0.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDIF.
*when change-
IF SY-UCOMM = 'CH01'.
IF I_TAB-Z8_EKORG = '' OR I_TAB-Z8_BUKRS = ''.
LOOP AT SCREEN.
SCREEN-INPUT = 0.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDIF.
*when create-
IF SY-UCOMM = 'CR01'.
LOOP AT SCREEN.
CLEAR I_TAB.
REFRESH I_TAB.
SCREEN-INPUT = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
endmodule. " DISPLAY OUTPUT
**& Module help INPUT
text
*module help input.
*CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
EXPORTING
DOKLANGU = SY-LANGU
DOKTITLE = ' '
CALLED_BY_TCODE =
CALLED_BY_PROGRAM =
CALLED_BY_DYNP =
CALLED_FOR_TAB = 'Z8T024E'
CALLED_FOR_FIELD = 'Z8_EKORG'
CALLED_FOR_TAB_FLD_BTCH_INPUT =
CALLED_BY_CUAPROG =
CALLED_BY_CUASTAT =
MERGE_DZ_IF_AVAILABLE =
MEMORYID =
EXPLICIT_MEMORYID = ' '
TABLES
LINKS =
EXCLUDEFUN =
EXCEPTIONS
OBJECT_NOT_FOUND = 1
SAPSCRIPT_ERROR = 2
OTHERS = 3
*IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
*endmodule. " help INPUT
*& Module help INPUT
text
module help input.
if sy-subrc = 0.
endif.
REFRESH dynpfields.
move '0001' to dynpfields-fieldname.
append dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = dyname
dynumb = dynumb
TRANSLATE_TO_UPPER = ' '
REQUEST = ' '
PERFORM_CONVERSION_EXITS = ' '
PERFORM_INPUT_CONVERSION = ' '
DETERMINE_LOOP_INDEX = ' '
tables
dynpfields = dynpfields
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endmodule. " help INPUT
*& Module HELP1 INPUT
text
module HELP1 input.
endmodule. " HELP1 INPUT
*& Module HELP2 INPUT
text
module HELP2 input.
endmodule. " HELP2 INPUT
What is Dialog Progrmming.
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm
This link Give you all details about Modulepool
http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
Regards,
Priyanka. -
Can anyone plz give me sample code to handle pageup, nextpage, previouspage, lastpage options for a table in screen in Dialog Program.
Thanks.Hi,
Have a look at these good links-
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sap-img.com/
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
http://fuller.mit.edu/tech/dialog_programming.html
http://www.sappoint.com/abap/dptc1.pdf
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sappoint.com/faq/faqdiapr.pdf
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sapdevelopment.co.uk/tips/tipshome.htm
<b>check sample code.</b>http://www.sapgenie.com/abap/example_code.htm
http://www.sap-img.com/abap.htm
http://www.allsaplinks.com/dialog_programming.html
Mark useful answers.
Regards,
Tanuja. -
Dialog Prog to Display fields of Table or Structure in screen dynamically.
Hello Experts ,
I am working on a dialog programming I wish to display any given table/structure on the screen - to be very clear.
1st screen -
One input box which can take any SAP standard or custom tableor structure as input <-- Press enter
2 nd screen -
I wish to see the fields of the structure in column format dsiplayed in the screen ( Like ALV Grid in the page).
Please tell me the logic or similar example so i can refer thanks in advance.
Thanks,
Sriram.Hello Srinivas,
Your program looks really looks and simple but the porb is we have 4.6c here. So the syntax lines
CREATE DATA gv_dref TYPE TABLE OF (p_table).
is not accepted by the system if we enter as it is (error - unable to interpret table - possible cause of error or spelling)
but it accepts
CREATE DATA gv_dref TYPE p_table.
but at the time of select query its not talking it has a internal table to show data , finalltyit dumps.
[ASSIGN gv_dref->* TO <fs_itab>.
"Select the data
SELECT * FROM (p_table) INTO TABLE <fs_itab> UP TO 100 ROWS.
So my problem is to find a way to dynamically display a table or view .
Please guide.
Regards,
Sriram. -
hi buddies
i have dev dia prog, only prob with it is that in table control there is vertical bar and when this vertical bar is moved up or down, the current line sy-tabix no gets changed (the system picks up wrong index no).
i am using following command to pick up changed data on screen.
MODIFY itab from itab INDEX TC-current_line.
but TC-current_line picks up wrong value only when vertical scroll bar is moved up or down.
what is the solution for this???
thanx
rockyHello Rocky,
IN the PBO of the event create a module.
and use.
DECRIBE TABLE ITAB LINES SY-TLINES
Regards,
Vasanth -
hi experts
i would like to know how to disable a pushbutton in dialog progr initially when the prog is executed.
i have to show 2 push buttons on application tool bar, one of them is active and the other is not active .
after execution when active button is pressed, the other disabled button should get active.
how is this possible??
thanx
rockycreate 2 PF status and show where required
-
Hi!
Can any one pls tell me any custom dialog programs requirement which u ve faced developed.
<b> POINTS ASSURED</b>
Thanks in Advance.Hi!
Its ok, I KNOW THAT i want some custom which u ve developed according to your client reqments i just want some sample requirements.
Can any one pls help me regarding this case.
Hoping for your reply. Points Assured. Thanks In Advance
RAHUL. -
Help regarding dialog work process
hello experts,
In S.A.P abap or abap+java,why we need atleast 2 dialog work process.Is that 2 dialog work process are used for any extra functions?Hi,
it is mandatory to have two dialog work processes within an ABAP-Instance.
There is no way around.
It is the same for enqueue process, you have to have exactly one for your ABAP system.
(Remember: an ABAP system can persist of many instances, but only one central instance).
Hope, this is helpful.
Kind regards,
Achim
P.S. Never the less, this is the wrong Forum for your question.
Maybe you are looking for
-
CRS traffic shaping and policing
Hello, i just moved services from GSR 12404 to CRS1/8 and there is no possibility do add service-policy to L3 subinterface. RP/0/RP0/CPU0:XXX#conf t Fri Dec 9 09:25:55.690 CET RP/0/RP0/CPU0:XXX(config)#interface tenGigE 0/0/0/0.900 RP/0/RP0/CPU0:XXX
-
hi all, im new to abap . im developing a report which shows some records, so now i want to add a button aat toolbar and after clicking that button the report should display sap script for that report and again should go back from that script page....
-
Question on reinstall to same PC ?
Hello, Both my Photoshop Elements 9 and Premiere Elements 9 stopped suddenly working. I decided to reinstall. Removed Elements 9 to start with and did not deactivate license key because do not know how to do it and was not sure should it be deactivat
-
Portege R600-S4201 -- a new Bluetooth connectivity issue
R600-S4201 Windows XP - SP3 Nothing wierd on it. This one kilo laptop has been wonderful for 1.5 years, though the "speaker" is inadequate. I just bought an excellent Yamaha Bluetooth stereo speaker, and paired it successfully. HOWEVER, "pairing" doe
-
I have an issue with my Cintiq not drawing smoothly in Flash. I need to sketch incredibly fast and loose. Flash used to work just fine but now it suddenly began drawing really crummy. I posted some examples of flash as well as Photoshop, Sketchbook P