cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform declaration

Former Member
0 Kudos

Hello Friends,

How to declare select statement in the smartforms so with the help of that i can get VAT & VAT amount in output.

Regards,

Rahul Talele

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

we declare select statement in aprogram and call the smartform from that program.

DATA: itab LIKE zsree OCCURS 0 WITH HEADER LINE.

SELECT * FROM zsree INTO table itab.

CALL FUNCTION '/1BCDWB/SF00000026'

TABLES

itab = itab

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

here zsree is the ztable .'/1BCDWB/SF00000026' is the FM generated during execution

regards,

sreelakshmi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

write select statement based on the object number like sales order number and item number also passing the VAT type to the table KONP

and finally pass the the field into text element

regards

Shiva