on 11-17-2011 9:10 AM
hi everybody,
plz have a look at the screen.
[http://i1237.photobucket.com/albums/ff464/MAHESHLAP/screen-1.jpg]
iin the screen hike amnt, hike% fields r havin same field (w_final-hikeamt) for form printin in above screen.
i have defined a separate field for hike%(hkperc) in my ztable. and when i have added that field to smart form and
if i run the form it is showing the following message.
"no output request open,end not reached."
this message is coming only in the above case . previously there is no field like hkperc(no column also in form). and by keeping the column hike% and by removing the print field w_final-hkperc and adding the previou field i.e,w_final-hikeamt form is printing normally in abve pic.
the message is coming only when i added the field w_final-hkperc.
i have debugged the form with sftrace with and without taht field in both cases the param passin r same n ok.
can anybody plz help.
Hi
Check how w_final and the table in the smartform are defined, and check if you need to assign a currency field as reference
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
this is code belongs to form callin.
*&---------------------------------------------------------------------*
*& Form GET_GROSS_SAL
*&---------------------------------------------------------------------*
* Get Gross Salary
*----------------------------------------------------------------------*
FORM GET_GROSS_SAL USING P1 TYPE ANY
P2 TYPE ANY.
REFRESH:IT_P0001,IT_P0007,IT_P0008,IT_PBWLA.
*Function Module for Fetching Employee Wages
CALL FUNCTION 'RP_FILL_WAGE_TYPE_TABLE_EXT'
EXPORTING
BEGDA = P1
ENDDA = P2
INFTY = '0008'
TCLAS = 'A'
PERNR = PERNR-PERNR
TABLES
PP0001 = IT_P0001
PP0007 = IT_P0007
PP0008 = IT_P0008
PPBWLA = IT_PBWLA
EXCEPTIONS
ERROR_AT_INDIRECT_EVALUATION = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " GET_GROSS_SAL
*&---------------------------------------------------------------------*
*& Form CALL_SMARTFORM
*&---------------------------------------------------------------------*
* Call Smartform
*----------------------------------------------------------------------*
FORM CALL_SMARTFORM .
*FUNCTION MODULE TO GET FUNCTION MODULE OF RESPECTED FORM
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZVCHR_SERVICE_ABSTRACT1'
IMPORTING
FM_NAME = G_FMNAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 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.
CONTROL-PREVIEW = 'X'.
CONTROL-NO_OPEN = 'X'.
CONTROL-NO_CLOSE = 'X'.
* control-device = 'LP01'.
SORT IT_FINAL BY PERNR INCRDATE.
CALL FUNCTION 'SSF_OPEN'.
*CONTROL-NO_OPEN = 'X'.
* CONTROL-NO_CLOSE = 'X'.
LOOP AT IT_FINAL INTO WA_FINAL1.
WA_FINAL = WA_FINAL1.
APPEND WA_FINAL TO IT_FINAL1.
AT END OF PERNR.
READ TABLE IT_DETAILS INTO WA_DETAILS WITH KEY PERNR = WA_FINAL-PERNR .
*Call Smartform
CALL FUNCTION G_FMNAME "'/1BCDWB/SF00000369'
EXPORTING
CONTROL_PARAMETERS = CONTROL
ENAME = WA_DETAILS-ENAME
ENO = WA_DETAILS-PERNR
DEPT = WA_DETAILS-DEPART
DESIG = WA_DETAILS-DESIG
PLANT = WA_DETAILS-PLANT
DOB = WA_DETAILS-DOB
YOS = WA_DETAILS-YOS
DOJ = WA_DETAILS-DOJ
DOP = WA_DETAILS-DOP
DOC = WA_DETAILS-DOC
QUALIF = WA_DETAILS-QUALIF
TABLES
IT_FINAL = IT_FINAL1
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH : IT_FINAL1.
ENDAT.
ENDLOOP.
CALL FUNCTION 'SSF_CLOSE'.
ENDFORM.
i have checked those declarations r clear. message is comin only when i changed the field to w_final-hkperc to my text object rather than that form is printing normally.
this is the screen i am talking abt.
[http://i1237.photobucket.com/albums/ff464/MAHESHLAP/screen2.jpg]
thanks.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.