Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

smart form to print label

Former Member
0 Kudos
702

hi guys,

i have a quetion for you. What ever i say you here is all about EWM 5.1(seperate instance)

i have a standard smartform /scwm/hu_shplabel.

this i should be using to create a shipping label printing (UCC).

i will tell you wht i did and wht i need.

i copied this standard to a z form and created the frame (windows i needed).

i dont know if this needs a driver program at all to call this.

to my knowledge i know that a method is assigned to this standard form and it calls it.

but most of the coding is done in the form itself using the input parameters.

i need to know

1. do we actually need a driver prog for such forms.

2. if i have to make changes do i do it in driver prog or form itself.( i can see lot of coding in the present form) , the coding is mostly object oriented.

3. i even have a bar code to print in it too.

4. few of the the date to be printed on the label has to come from R/3.

usually i knew the smart form where u write a se38 program to call the form and input the data mostly needed to print. i am new to this kind .

do let me know anything u think.

every information is helpfull

thank you

sid

1 ACCEPTED SOLUTION

Former Member
0 Kudos
206

Hai Sid,

Whenever u create a copy an existing samrtforms and when u acivate that smartforms, SAP will itself generate a function module name. u can get the function module name by executing the smartforms where u create the smartform(ie inside tcode SMARTFORMS). when ever u make changes to the smartfr\orms and activate it a new function module will be generated. so i other words the name of the fuction module changes.. to get the function module name while runtime u can use one std smartform function module 'SSF_FUNCTION_MODULE_NAME'.. this will return u the function module name that the smartform gets generated.. no ur doubt.

Point 1. do we actually need a driver prog for such forms.

if u have added only a window.. u dont have to give a seperate driver for that.

Point 2 :. if i have to make changes do i do it in driver prog or form itself.

if u are passing any values or internal table from ur prg to smartform u will declare a variable or internal table in form interface.. which in turn changes the function module(diver prg) structure.. so this revised structure need to be changes in ur calling prg.

Point 4 : few of the the date to be printed on the label has to come from R/3.

same as that of comment for point 2

Regards

Maneesh Chandran

3 REPLIES 3

Former Member
0 Kudos
207

Hai Sid,

Whenever u create a copy an existing samrtforms and when u acivate that smartforms, SAP will itself generate a function module name. u can get the function module name by executing the smartforms where u create the smartform(ie inside tcode SMARTFORMS). when ever u make changes to the smartfr\orms and activate it a new function module will be generated. so i other words the name of the fuction module changes.. to get the function module name while runtime u can use one std smartform function module 'SSF_FUNCTION_MODULE_NAME'.. this will return u the function module name that the smartform gets generated.. no ur doubt.

Point 1. do we actually need a driver prog for such forms.

if u have added only a window.. u dont have to give a seperate driver for that.

Point 2 :. if i have to make changes do i do it in driver prog or form itself.

if u are passing any values or internal table from ur prg to smartform u will declare a variable or internal table in form interface.. which in turn changes the function module(diver prg) structure.. so this revised structure need to be changes in ur calling prg.

Point 4 : few of the the date to be printed on the label has to come from R/3.

same as that of comment for point 2

Regards

Maneesh Chandran

0 Kudos
206

hi Maneesh

first let me thank you for the information.

standard form has a master window.

and i have to add 8 more windows.

i have come across a similar standard smart form but i came to know that it is associated with a

object and a corresponding class.

so i came to the conclusion that the present smartform might have a associated object and it is responsible of calling the form.

i may not be completely true. do tell me if i am or not.

the present smartform has some code internally and some global parameters added.

it has some input parameters added.

but the current functionality is not similar to what the standard is.

so i didnt understand if i have to code in object or in the form itself.

do let me know wht ever information you have.

0 Kudos
206

thank you mahesh,

i understood what you are saying.

so you have any material about writing code in program lines of smartform.

i have few input parameters (other than the standard once) in the standard form which i have to change to get the paramters to do the code in the form.

can i delete the input paramaters present now in standard form and add the required for me.

do i have to just change the input parameters, global parameters and just change the code.

do you think it will work.

any information will be helpfull for me.

thank you

sridhar.