cancel
Showing results for 
Search instead for 
Did you mean: 

select-options

Former Member
0 Kudos

hi abapers !

am working with smart form

billing invoice.

am using the a Zform

and i modified the standard Billing invoice program

as per my requirement.

but now i want to display it with multiple invoice no.

using select-options .

previously i used parameters.

how can i use select options in my Sartforms.

My doubt was actually when i used parameters ...

means we can provide single input...

for select-options we hav to provide the range...!

but for vf02 transcation .. how can i pass the selection-options :

regards,

vani.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

For mass printing of invoices the transaction code is VF31.

I believe this solves your issue.

Regards,

Ram

0 Kudos

Hi,

tyr this one.

if you want to decalre parameters in smart form in IMPORT tab

u will decalre like suppose

p_matnr like mara-matnr. but if you want to select-options. have to declare two times like

s1_matnr like mara-matnr

s2_matnr like mara-matnr.

same way decalre the variable for select-options in se38. like

s3_matnr like mara-matnr.

s4_matnr like mara-matnr.

when you call function module from smartform into your program in EXPORTING parameters you have to assign like this.

CALL FUNCTION <function module nam>

EXPORTING

s1_matnr = s3_matnr

s2_matnr = s4_matnr

TABLES

tab = <ur internal table name>.

in the select query.

select matnr mtart matkl into table i_mara from mara

where matnr BETWEEN s3_matnr-low and s4_matnr-high.

Regards.

Sriram.

Former Member
0 Kudos

try this...

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = <smartform name>

IMPORTING

fm_name = v_form_fm

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

  • Call Smartfrom to print the document

CALL FUNCTION v_form_fm

EXPORTING

p_compensation = p_comp <--parameter list

p_skill = p_skill

p_deci_auhtority = p_da

TABLES

s_job = s_job <--select option list

s_level = s_level

s_date = s_date

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

declare the paramters of your selection screen in the form interface section of the smartform.

If you have a parameter in teh selection screen then declare it in the smartform as:

P_matnr TYPE matnr (in form interface -

import)

If you have a select option then

S_LEVEL LIKE <dictionary structure like a range>

this u declare it in the tables section of the form interface. For the select option , the dictionary sructures should be like a range (see RNGE_OBJID as an example). If you dont have a dictionary structure

then u need to declare it in the dictionary.

REWARD IF HELPFUL

Former Member
0 Kudos

Hi,

I dont think you can pass multiple billing invoice from VF02.

Even if it is possible, in your SMartforms, in forms interface node, go to the tables tab, give the definition for billing invoice.

In your main form, create a loop and use this table to loop through all the invoices.

Regards,

Subramanian