‎2008 Jan 15 4:06 PM
hello expert,
In screen Painter -> Layout i created one subscreen and activated and it's working fine.
But now i created 2nd subscreen at different place and activated. no error but it's going to dump while run the prog.
the dump is:
Exception condition "TOO_SMALL" raised.
error at:
FM:STRING_SPLIT line number 89.
could you please help me out where i am doing the mistake.
waiting for your reply.
thank you.
with best regards
srinivas
‎2008 Jan 15 9:10 PM
Hi Srinivas,
Need more info here from your side.
From what you have mentioned, it appears that there is a problem with the subscreen area on which your subscreen 2 is being called. The subscreen area is smaller than the subscreen 2. Check it.
Hope this helps.
Thanks
Sanjeev
‎2008 Jan 15 9:10 PM
Hi Srinivas,
Need more info here from your side.
From what you have mentioned, it appears that there is a problem with the subscreen area on which your subscreen 2 is being called. The subscreen area is smaller than the subscreen 2. Check it.
Hope this helps.
Thanks
Sanjeev
‎2008 Jan 16 3:34 PM
hello,
in screen debug,
my 2nd subscreen is not calling.
source code:LCNZSF01, line no: 26
1st time loop.
loop .
translate line to upper case.
[ here line = CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0200'. and
BEREICH = SUB1 ]
CALL FUNCTION 'STRING_SPLIT' line number 40.
endloop.
2nd time loop.
loop .
translate line to upper case.
[ here line = CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0200'. and
BEREICH = SUB2 ]
CALL FUNCTION 'STRING_SPLIT' line number 40.
inside FM:string_split, line number 89 --> dump .
endloop.
In 2nd time loop also
CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0200' is calling insted of
CALL SUBSCREEN SUB2 INCLUDING SY-REPID '0201'.
it seems problem in my subscreen creation only .
could you please help me out.
‎2008 Jan 16 6:46 PM
Send the code of LCNZSF01 and PBO and PAI for the 2 subscreens.
Thanks
Sanjeev
‎2008 Jan 17 7:37 AM
include LCNZSF01 is the standard program.
*----
***INCLUDE LCNZSF01 .
*----
_----
Form GET_INCLUDE_DYNPRO_NAME *
--------------------------------------------------------------------*
Diese Routine sucht aus einer Textzeile der Form *
CALL SUBSCREEN bereich INCLUDING incl_prog_name incl_dynp_numb*
den Programmnamen INCL_PROG_NAME und die Dynpronummer *
INCL_DYNP_NUMB eines Include-Dynpros heraus. *
----
--> BEREICH Name des Include-Dynpro-Bereichs *
LINE Textzeile aus Ablauflogik *
<-- INCL_PROG_NAME Programmname des Modulpools, in dem das Dynpro*
liegt. *
INCL_DYNP_NUMB Dynpronummer des Include-Dynpros *
----
FORM GET_INCLUDE_DYNPRO_NAME
USING BEREICH LIKE DYNP_LIST-FIELDNAME
VALUE(LINE) LIKE D022S-LINE
INCL_PROG_NAME TYPE C
INCL_DYNP_NUMB TYPE C.
DATA: REPL_LEN TYPE I.
translate line to upper case.
REPLACE 'CALL' WITH SPACE INTO LINE.
REPLACE 'SUBSCREEN' WITH SPACE INTO LINE.
REPL_LEN = STRLEN( BEREICH ).
REPLACE BEREICH LENGTH REPL_LEN WITH SPACE INTO LINE.
REPLACE 'INCLUDING' WITH SPACE INTO LINE.
REPLACE '.' WITH SPACE INTO LINE.
WHILE SY-SUBRC = 0.
REPLACE '''' WITH SPACE INTO LINE.
ENDWHILE.
CONDENSE LINE.
REPLACE SPACE WITH '!' INTO LINE.
CALL FUNCTION 'STRING_SPLIT'
EXPORTING
DELIMITER = '!'
STRING = LINE
IMPORTING
HEAD = INCL_PROG_NAME
TAIL = INCL_DYNP_NUMB.
ENDFORM. " GET_INCLUDE_DYNPRO_NAME
___________________________________________________
if i create only one sub screen in layout and below code, it's working .
PBO
CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0200'.
PAI
CALL SUBSCREEN SUB1.
SELECTION-SCREEN: BEGIN OF SCREEN 0200 AS SUBSCREEN.
SELECT-OPTIONS: P_MATNR FOR MAst-MATNR MODIF ID REF .
SELECTION-SCREEN END OF SCREEN 0200.
call screen 600.
___________________________________________________
but if i create 2nd sub screen and below code and active no error, F8 -> it's dumping.
PBO
CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0200'.
CALL SUBSCREEN SUB2 INCLUDING SY-REPID '0201'.
PAI
CALL SUBSCREEN SUB1.
CALL SUBSCREEN SUB2.
SELECTION-SCREEN: BEGIN OF SCREEN 0200 AS SUBSCREEN.
SELECT-OPTIONS: P_MATNR FOR MAst-MATNR MODIF ID REF .
SELECTION-SCREEN END OF SCREEN 0200.
SELECTION-SCREEN: BEGIN OF SCREEN 0201 AS SUBSCREEN.
SELECT-OPTIONS: P_MATNR FOR MAst-MATNR MODIF ID REF .
SELECTION-SCREEN END OF SCREEN 0201.
call screen 600.
____________________________________________________
‎2008 Jan 17 3:28 PM
I THING PROBLEM IN STANADARD FM: DYNP_VALUES_READ;
INSTED OF FM : DYNP_VALUES_READ I USED FM:RS_IMPORT_DYNPRO AND WORKING FINE.
‎2008 Jan 15 9:50 PM
may be ur second sub screen is being overlaped with the first subscreen ...or ur subscreen area is too small to hold the subscreen u r trying to put on it....
‎2008 Jan 17 3:28 PM
I THING PROBLEM IN STANADARD FM: DYNP_VALUES_READ;
INSTED OF FM : DYNP_VALUES_READ I USED FM:RS_IMPORT_DYNPRO AND WORKING FINE.