cancel
Showing results for 
Search instead for 
Did you mean: 

Making smartform work well with VL71

Former Member
0 Kudos

Dear experts,

I have two issues to get clear working with delivery note.

1

First issue is that using nace i have attached my own developed zform and specified the driver program.On execution,in the dialog for output type selection,i get only

preview either i click preview button or print button as i have customized it to display only preview.

Still user can go to Text->Print and take the printout so no worries.

Now as he has taken output print ,the moment he clicks back button message comes 'Output cannot be issued' .I conclude this is because standard transaction control is lost once it goes to smartform program or is there some way i have to customize my program which i am missing.This thing is not clear to me.To get rid of this error i used.

LEAVE TO TRANSACTION SY-TCODE.

I need an alternative solution by which i get a valid message

'Output issued successfully' which i do note get using this way.

2

Next issue is that in my coding , i have used getparameter to fetch memory variable for vbeln.Further i use it to display the delivery note.

In transaction VL71,if i type only one Outbound delivery number, i get output correctly but if i select more than one

delivery item number using checkboxes i get a blank form.

How should i control my smartform to take input here.

Does more than one value point to some separate memory location other than the one i am using.

Kindly help these get clarified.

Thanx in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ans for point 1.

After call function 'SF_name'.

if sy-subrc = '0'.

message 'Output successful' type 'S'.

CALL TRANSACTION sy-tcode.

endif.

Answers (1)

Answers (1)

Former Member
0 Kudos

Point (1) is happening with VL02N and 2 with VL71N