Skip to Content
0
Former Member
Jan 22, 2008 at 01:01 PM

Reg: Smartforms

95 Views

Hi All,

Could you please help how i connect to smartform layout from this below code. my requriment is from below code i need to connect to the smartform . My doubt what is the internal table to connect with smartform though they used memory id in this below code.

PERFORM get_data.

FORM get_data .

data: wf_LGPBE like mard-LGPBE.

*... get the order data from memory, not there ABEND !!!!!!

PERFORM only_order_data_import

TABLES

op_print_tab

ihpad_tab

ihsg_tab

ihgns_tab

iafvgd

iripw0

iresbd

iaffhd

CHANGING

caufvd

riwo1

iloa.

IF syst-subrc <> 0.

MESSAGE a650(id). " import failed

ENDIF.

SELECT SINGLE tidnr FROM equz " Technical ID Num

INTO wf_tidnr

WHERE equnr = caufvd-equnr.

  • Warranty end date

  • Fetch Object Number from EQUI

SELECT SINGLE objnr FROM equi

INTO wf_objnr

WHERE equnr = caufvd-equnr.

  • Fetch warranty End

*Warranty Type: Vendor/Manufacturer warranty : 2

SELECT SINGLE gwlen FROM bgmkobj

INTO wf_gwlen

WHERE j_objnr EQ wf_objnr

AND gaart EQ '2'.

SELECT SINGLE txt FROM t003p INTO wf_autxt

WHERE spras = sy-langu

AND auart = caufvd-auart.

SELECT SINGLE herst serge FROM itob

INTO (wf_herst , wf_serge)

WHERE equnr = caufvd-equnr.

ENDFORM. " get_data

*&----


*

*& Form ONLY_ORDER_DATA_IMPORT

*&----


*

FORM only_order_data_import

TABLES

ct_op_print_tab TYPE type_op_print_tab

ct_ihpad_tab TYPE type_ihpad_tab

ct_ihsg_tab TYPE type_ihsg_tab

ct_ihgns_tab TYPE type_ihgns_tab

ct_iafvgd TYPE type_afvgd " Order operations

ct_iripw0 TYPE type_ripw0 " Order object list

ct_iresbd TYPE type_resbd " Material Reservations

ct_iaffhd TYPE type_affhd " prod resources and tools

CHANGING

cs_caufvd TYPE caufvd " Order header details

cs_riwo1 TYPE riwo1 " ILOA dialogarea

cs_iloa TYPE iloa. " Location and account details

IMPORT

  • Structures

caufvd TO cs_caufvd " Order header details

riwo1 TO cs_riwo1 " ILOA dialogarea

iloa TO cs_iloa " Location and account details

  • Tables

iafvgd TO ct_iafvgd " Order operations

iripw0 TO ct_iripw0 " Order object list

iresbd TO ct_iresbd " Material Reservations

iaffhd TO ct_iaffhd " prod resources and tools

op_print_tab TO ct_op_print_tab " Individual print of operations

ihpad_tab TO ct_ihpad_tab

ihsg_tab TO ct_ihsg_tab

ihgns_tab TO ct_ihgns_tab

FROM MEMORY ID id_iprt_orddata.

ENDFORM. "ONLY_ORDER_DATA_IMPORT

please help me out.

will get award for correct answer

Thanks