cancel
Showing results for 
Search instead for 
Did you mean: 

PROGRAM LINES FOR SMART FORMS BASED ON SELECT OPTIONS

Former Member
0 Kudos

Hi,

I have an input for on eof my smart form: called output type.

If output type='abc' then i need to fill on of the identification field with LIKP-VBELN

if output type = 'xyz' then i need to filll on the identification field with VBSS-SAMMG,

Please help me how i can write the program in smart forms program lines.

I am new to smart forms.

Plz help...this is urgent....

Thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

done

Former Member
0 Kudos

Narendra

Take two program lines:

In the first one: Goto Conditions tab and give the condition as "If output type='abc' ". In General attributes tab write the code "to fill one of the identification field with LIKP-VBELN ".

Similarly do the same for second program line with second condition and code.

make sure that you are passing the values as input parameters when writing the code in both the cases.

Regards,

Vinod.

Former Member
0 Kudos

Thanks Vinod for the quick response.

But my main problem is --

For this Bill of lading smart form the selection options are

IS_DLV_NOTE and output type.

How do i get the values into LIKP or VBSS...

plz ignore my innocence

Thanks

Former Member
0 Kudos

HI,

Are you not printing the del note on the smartform..

if yes then it sould be already passed to the smartform as one of the paramters of the smartform function module. and also pass the output type as parameter.

in program lines..

write the logic based on the del note number

Thanks

Mahesh

Former Member
0 Kudos

what is the relation ship between del note number and likp/vbss tables

Former Member
0 Kudos

HI,

Goto table likp and pass the delivery note to LIFEX field and get the delivery number if the output type is abc then print this delivery number.

else

with above logic u have delivery number go to VBFA table pass the delivery number as Subsequent sales and distribution document and Document category of preceding SD document as O (Order ) then you will get the sales order.. then goto VBSS table and pass the sales order number that you just got and get required field from VBSS.

Thanks

Mahesh