cancel
Showing results for 
Search instead for 
Did you mean: 

smatforms

Former Member
0 Kudos

Hi experts,

i am little bit confusion in this statement.please help me what should be exacltl code

j_1iexcdtl-exbas or if this field is initial, then get j_1iassval-j_1ivalass field for material and plant combinatio valid for creation date

i have writen code:(se38)

select exbas from j_1iexcdtl into itab where matnr = matnr and werks =werks

if j_1iexcdt-exbas is initial.

select j_1ivalass from j_1iassval into itab2 where matnr = matnr and werks = werks

end if.

according to ths.

how to write this condtion in smartforms to print like above

please help me.

regards,

satya

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Create PROGRAM LINES in the smartform and write the similar code for the data

select single exbas from j_1iexcdtl into v_exbas where matnr = matnr and werks =werks

if sy-subrc <> 0.

select single j_1ivalass from j_1iassval into v_valass where matnr = matnr and werks = werks.

end if.

declare all the variables(global) werks, Matnr and the variables for the 2 fields

and use them

Regards

Anji