cancel
Showing results for 
Search instead for 
Did you mean: 

No Data display on smartform

former_member588495
Participant
0 Kudos

Greeting,

I am facing an issue that the data in internal tables cannot be display on smartdform, followings are the related codes & setting:

=====================================================================================

TYPES:

BEGIN OF st_head,
aufnr TYPE aufnr,
plnbez TYPE matnr,
maktx TYPE maktx,
gamng TYPE gamng,
gmein TYPE meins,
fevor TYPE fevor,
txt TYPE txt_fevor,
bldat TYPE bldat,
budat TYPE budat,
END OF st_head,

BEGIN OF st_gr,
mblnr TYPE mblnr,
bktxt TYPE bktxt,
charg TYPE charg_d,
menge TYPE menge_d,
meins TYPE meins,
sgtxt TYPE sgtxt,
werks TYPE werks_d,
lgort TYPE lgort_d,
lgobe TYPE lgobe,
END OF st_gr,

BEGIN OF st_itemconf,
aufnr TYPE aufnr,
vornr TYPE vornr,
ism01 TYPE ru_ismng,
ile01 TYPE co_ismngeh,
ism02 TYPE ru_ismng,
ile02 TYPE co_ismngeh,
ism03 TYPE ru_ismng,
ile03 TYPE co_ismngeh,
END OF st_itemconf.

DATA:

it_head TYPE TABLE OF st_head WITH HEADER LINE,
wa_head TYPE st_head,
it_gr TYPE TABLE OF st_gr WITH HEADER LINE,
wa_gr TYPE st_gr,
it_itemconf TYPE TABLE OF st_itemconf WITH HEADER LINE,
wa_itemconf TYPE st_itemconf.

----------------------Call Form------------------------------------

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZPRODUCTION_GR'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = fname
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.

CALL FUNCTION fname
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
wa_head = wa_head
it_itemgr = it_gr[]
it_itemconf = it_itemconf[]
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
zprodhead = it_head[]
zprodgr = it_gr
zprodconf = it_itemconf

* Left site are custom structure.
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.

----------------------Setting in Smartforms------------------------------------

--Form Interface-Import

WA_HEAD Type ZPRODHEAD

IT_ITEMGR Type ZPRODGR_FORM

IT_ITEMCONF Type ZPRODCONF_FORM

* ZPRODGR_FORM / ZPRODCONF_FORM are Table type mapping to ZPRODGR / ZPRODCONF

--Form Interface-Tables

ZPRODHEAD Like ZPRODHEAD

ZPRODGR Like ZPRODGR

ZPRODCONF Like ZPRODCONF

--Global Definitions-Global Data

WA_ITEMGR Type ZPRODGR

WA_ITEMCONF Type ZPRODCONF

========================================================================================

All of internal tables could get data after data process, however, I cannot pass any field to smartform, could you please help me to solve this issue?

Thanks & Best Regards

Roger

vijay_hariharan
Contributor

Hello,

When you say 'cannot pass any field to Smartforms'.. are you getting an error? If not, have you tried debugging the Smartforms to see what data is passed on in there? Additional details would help you get appropriate responses..

Regards,
Vijay

former_member588495
Participant
0 Kudos

Hi Vijay,

I just tried to degubbing in program and found all of internal data could get data; could you please tell me how to check passed data in smartform? I just knew to execute smartform then manual input data...

Thanks & Best Regards

Roger

vijay_hariharan
Contributor
former_member588495
Participant
0 Kudos

Hi Vijay,

Thank you, it's really helpful.

Best Regards

Roger

former_member588495
Participant
0 Kudos

Hi Vijay,

I tried serval times to find out %GLOBAL_INIT in SE37 and degubber controls session but cannot find it out....

Roger

Accepted Solutions (0)

Answers (0)