Selection screen to Mainwindow in smartforms
Hi experts ,
I got a selection - screen where i have to enter a Record so that it should be
reflected in the main window i.e ( column of the table) of the smartform, can any one tell me.
Regards,
Reddy
Hi,
Pass the value throgh the generated function module through your program.
Check the following for more understanding,
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
<b>Reward if helpful.</b>
Similar Messages
-
How to have a selection screen in the smartform
Hi,
<i><b>How to have a selection screen in the smartform. <u>Could anybody share with the example of driver program and the smart forms</u> . Please send me ASAP</b></i>
Thanks
Shiva shekarHi,
Refer to this
http://www.****************/Tutorials/Smartforms/SFMain.htm
Thanks,
Anitha -
Regarding execution of smartforms without a selection screen.
Hi ,
I would like to know whether it is possible to generate a smart form, by calling a function module in a report program without the option of selection screen.Can anyone suggest me in this regard.
Thanks in advance,
Shwetha Korlepara.Hi,
You can do if the smartform generated does not require any input from selection screen.
Check these links.
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
Get back in case of any clarifications.Kindly reward points by clicking the star on the left of reply,if it helps. -
How to put e-mail adress in the print info. selection screen i smartforms?
Hi all,
Is it possible to have e-mail adress sent to smartform with the input parameters e.g. output_options or some other, so that the e-mail adress appears in the selection screen containing printout info such as output device, page selection, print imm.?
Where should the e-mail adress be placed in the input info to smartform then?
Thanks in advance for all the helpul answers!
BR,
ArminTHANKS
-
Selection screen and smartforms
Hi,
Can somebody share with me simple eg to
enter data via the selection screens and then pass those values to smartform.
i have used the following code.But whenever i execute it the smartform opens first. i want to open the selection screen first.Then after entering the data there ,the smartorm must open up with the entered values.
PARAMETER P_PARAM1 TYPE MYTABLE-COL1.
PARAMETER P_PARAM2 TYPE MYTABLE-COL2.
AT SELECTION-SCREEN OUTPUT.
CALL FUNCTION '........................................'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
PARAM1 = P_PARAM1
PARAM2 = P_PARAM2
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks & Regards
JayHi,
As asked I am sending this piece of a code so that you can get a clear idea for the same.If you face the difficulty again please let me know.
selection-screen begin of block b1 with frame title text-001.
parameters :
p_carrid type spfli-carrid. " Carrier Id.
selection-screen end of block b1.
Working variable
data:
f_name type rs38l_fnam. " function module name
start-of-selection.
perform open_smartforms.
form open_smartforms .
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = '<formname>''
VARIANT = ' '
DIRECT_CALL = ' '
importing
fm_name = f_name
exceptions
no_form = 1
no_function_module = 2
others = 3
if sy-subrc <> 0.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. " IF sy-subrc ne 0
call function f_name
exporting
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
p_carr = p_carrid
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5
if sy-subrc ne 0.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. " IF sy-subrc ne 0
endform. " OPEN_SMARTFORMS
Regards,
Suvajit. -
How to call selection screen before smartforms?
Hi experts,
I wanna call a selection screen before displaying smartforms. In NACE transaction, I have program that calls the smartforms and In that program, I wanna add a selection screen with three fields whom values comes from a value range that prepared by me. I don't wanna use popup selection FM's because as ,I said, I wanna display the values according to a value range.
Do you know any way to do this?REPORT zsd_rv56td00.
SET EXTENDED CHECK OFF.
TABLES: vbpla, thead, ttxern, ttxit, t005, vbddl, stxh, sadr. "SADR40A
INCLUDE vttkdata. "Shipment Header
INCLUDE vttsdata. "Shipment Segment
INCLUDE vttpdata. "Shipment Items
INCLUDE vbpadata. "Partner
INCLUDE vtfadata. "Flow
INCLUDE sadrdata. "Address
INCLUDE vtlfdata. "Delivery Selection
INCLUDE rvadtabl. "Messages
INCLUDE vsedata. "shipping units
INCLUDE rv56acom. "I/O-Structure
*INCLUDE zsd_form_screens.
SET EXTENDED CHECK ON.
DATA:
xscreen(1) TYPE c,
retcode LIKE sy-subrc VALUE 0,
there_was_output(1) TYPE c VALUE space,
new_page_was_ordered(1) TYPE c VALUE space.
CONSTANTS:
no(1) VALUE space,
yes(1) VALUE 'X'.
TABLES : tpar,vbak. "n_742056.
SELECTION-SCREEN BEGIN OF SCREEN 900.
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECT-OPTIONS :
s_ulke FOR vbak-zzcikisulke,
s_gumruk FOR vbak-zzvarisgumruk,
s_ant FOR vbak-zzantrepo.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 900.
Florian as you can see I created the screen! It exists! -
Regarding Selection Screen in smartforms
Hi:
I got the following requirement.
I've to make a smartform & do the coding in smartform itself. I'm not sure that how to populate a selection screen. I need to populate a Select-options. Please help me out.HI,
You can create the Selection screen in a program and call the Smartform function module in the Program and you can pass the Selection screen parameters to the Smartfor, if you create the Fields in FROM INTERFACE in Smartfroms, then that become import paramters in the function module and you can pass the selection screen fields to this paramters
Look at the below link, it is having the Program and the Progam using the select-options also
http://www.erpgenie.com/abap/smartforms.htm
Regards
Sudheer -
Selection Screen in smartforms
hi ,
is it possible to design a selection screen in smart form.
my requirement is to pass a set of material numbers obtained from select-optins to the smart form. how can i pass these set of values to the smart form.
Regards
ArunHi,
I think you already posted this question.
This time I try to suggest a different solution.
In the Form Interface Import just pass parameters like
s_low type likp-vbeln and
s_high type likp-vbeln.[assumed that s_vbeln is the select-options]
Then create a program line.In that type s_low and s_high as input parameter and lr_vbeln and itab as output parameters.
Then in that program line type the below code.
RANGES:lr_vbeln FOR likp-vbeln.
IF NOT ( s_low IS INITIAL and s_high is initial ).
lr_vbeln-sign = 'I'.
lr_vbeln-option = 'EQ'.
lr_vbeln-low = s_low.
lr_vbeln-high = s_high.
APPEND lr_vbeln.
ENDIF.
select * from likp into table itab where vbeln in r_vbeln.
Hope it is helpful.
If not get back to me.
Rgds,
J.Jayanthi -
To display selection screen date parameter in smart form
Hi to all
My requirement is to display date parameters which are given at selection screen (module pool program ) on the smart forms.
I just want to dispaly this on selection.
SO_BLDAT-LOW
SO_BLDAT-HIGH
Please guide.
Regards
AnubhavHi,
If you are calling the smartform from the module program then export the parameters from the calling FM
and import the same in the smartform.
Regards,
Sandeep -
How to display error documents in selection screen level
Hi,
Currently Iam doing Smartforms for journal voucher. Iam taking multiple documents as input and displaying relavent item data for each.
Now, my requirement is i want to display invalid document numbers at selection screen level. For example there are 30 invalid document number i want to display them before start-of-selection.
Thanks in advance,
Regards,
Chinna..i have a query......say i am using a selet-options s_ebeln for ekko-ebeln.
i want to display error messages for
1>lower limit cant be greater than upper limit?
2>for special cahracters given in the select-options fields.....etc...
now when i am writing the code......
if s_ebeln-low gt s_ebeln-high.
message e001.
it is showing SAP's message not mine.
but ....if my s_ebeln-high field is 0.
then my message is showing.
pls give me the codes for these? -
To select random no's in selection screen
Hi,
In my smartform i am displaying bill detail based on range of item no's(vbap-posnr) chosen in selection screen.but now i need to display it for random no's chosen in selection screen.please help if u know.ex....10 to 100. i need to display 10,40 ,70...Hi,
Use the following function module to generate random no. between min and max range of values.
QF05_RANDOM_INTEGER
Regards
Vadi -
How to print data of selection screen
hi plz tell me how to print that data in smartforms which the user enters in the selection screen...........
Use FM RS_COVERPAGE_SELECTIONS
CALL FUNCTION 'RS_COVERPAGE_SELECTIONS'
EXPORTING
REPORT = L_REPORTIDENTIFICATION
VARIANT = SY-SLSET
NO_IMPORT = 'X' "07/04/98
TABLES
INFOTAB = T_INFOSELECT
EXCEPTIONS
ERROR_MESSAGE = 1
VARIANT_NOT_FOUND = 3
OTHERS = 2. -
Selection Screen Disappearing on error
Hi
I am new to ABAP.
Below is the driver program for Smartform,
after:
Step-1 Entering data at selection screen
Step-2 Pressing Execution Button
An error is displaying 'Document no. not found' but the problem is, as soon as the error appears, selection screen goes blank, its not staying.
Please suggest correction.
With warm regards.
Yogesh.
*& Report Z_MM_GPASS
REPORT Z_MM_GPASS.
tables: MSEG,ADRC,T001W,MAKT .
data: FM_NAME TYPE RS38L_FNAM.
*& Selection Screen
Selection-screen: begin of block b1 with frame title t1.
Parameter: Docno like MSEG-MBLNR ,
YEAR like MSEG-MJAHR .
selection-screen: end of block b1.
*& Comment on selection screen
At selection-screen output .
t1 = 'Selection-Screen' .
*& Data validation at selection screen
At selection-screen .
select single * from MSEG where MBLNR = docno and MJAHR = YEAR .
if sy-subrc <> 0.
message 'Document no. not found' type 'E'.
endif.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'Z_MM_PASS'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FM_NAME
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
DOCNO = DOCNO
YEAR = YEAR
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
IF SY-SUBRC <> 0.
*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Code Formattted by: Alvaro Tejada Galindo on Jan 7, 2009 2:30 PM*I have replaced
if sy-subrc <> 0.
message 'Document no. not found' type 'E'.
endif.
with
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
INTO mtext
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
write:/1 mtext.
ENDIF.
*Program sintactically correct.
*but still I'm facing the same problem, for your kind knowledge I don't know what is return code
Edited by: Yogesh Pathak on Jan 7, 2009 9:45 AM
Messege posted more than one time due to "SERVER ERROR" while posting., sorry for inconvenience.
Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 2:34 PM -
Selection screen dialog programming
I have used a selection screen in the dialog programming.
I have written some code in the at selection screen to display the output on a table control in another screen 1001.
my problem is that when i try to enter the multiple values for material ,
it goes to the at selection screen and displays the output again.
if i write the code in start of selection instead of at selection screen
it doesnt give any output at all.
how do i correct this error?
SELECTION-SCREEN BEGIN OF SCREEN 2000 .
SELECT-OPTIONS : s_ersda FOR MCHB-ERSDA OBLIGATORY.
SELECT-OPTIONS : s_matnr FOR MCHB-MATNR.
SELECT-OPTIONS : s_matkl FOR MARA-MATKL.
SELECT-OPTIONS : s_ferth FOR MARA-FERTH.
SELECTION-SCREEN END OF SCREEN 2000.
at selection-screen.
statements to fill the output table
screen containing table control
call screen 1001Friends,
Req for ABAP HR
ROLE: SAP HR ABAP DEVELOPER
Location: TULSA, OK
Duration: 3 + MONTHS
REQUIRED SKILLS: SAP ABAP / Dialog and regular / R/3 and HR / Workflow / smartforms
/ ALV / LSMW for HR and R/3 / Modules - MM , SD , HR, PD , PS
Start Date: 11-12-07
If interested Please send the cvs to [email protected] -
Dear Gurus,
I'm wondering is there any way to pop up a selection screen before printing a form using output type ???
Thanks & Regards,
William PrawiraThanks for the reply.
My requirement is that I need to pop a screen when user is printing billing document. Then use the screen as input to later on beeing printed on the form.
I created a selection screen over my program for my smartforms, then call it using the call screen. But seems like it can't find my screen.
Any idea for condition above?
thanks & Regards.
William Prawira
Maybe you are looking for
-
External Hard Drive not showing up on iMac retina 5K
Hi, I have an external hard disk WD Passport 500Go. It does not appear on my iMac Retina but it appears correctly on my macBook Pro. I have already tried several solutions but nothing seems to work : Not visible on the finder Not visible on disk util
-
4.0EA1 - Copy/Paste in Script Output window on Mac is not working
I'm running 4.0.0.12 on MacOS X 10.8.4, and I can't Copy from the "Script Output" window. What I regularly do is generate some SQL using an SQL query, so I want to copy the output and paste it back into the Worksheet so I can run it. For example: s
-
? Camera raw 4 & pse 6 for mac
I have camera raw 4, it came with my pse 6 for mac. Every once in a while my computer tries to install an update, but it never works. I would like to have the latest version of camera raw, but can pse 6 handle it? If not, what is the highest versi
-
Format a WD passport drive for MAC
Need to understand benefits of partitioning more than 1 partition and format options. Your help will be appreciated Dave
-
Conditional Alerting For Servers and Network Device
We have a management server here in the states with sites across the pond with servers there as well. All servers point back to the sole management server. I have setup a subscription on Failed to Connect to Computer with a 90 second threshold. The p