Reg: smartform in modulepool screen
Hi Experts,
I have a requiremnet like smartform display in modulepool screen.
requirement like : firsthalf in modulepool screen and second half have to display the smartform.
is there any option to display hte smartform .
Hi the easiest way is to convert the SSF in a PDF ( ..OTR.. )
after converting start the web browser in a hidden Container > show the PDF in the Web Browser....
a) seperate Window (outside gui )
b) in a Container of the dynpro
Similar Messages
-
How to Fetch Data From an Internal table to a field in Modulepool Screen ??
In my Modulepool Screen i have two fields ,
Based on the data of the First field ,the second field will display the data.
For ex- first field - I choosed the data -" MARUTI",
then in the second field , all d CARs ( 800,zen,waganor.....)related to MARUTI shd be displayed.
without using POV module hw to use dis ? and also using POV ,what are the function modules to be used ..
pls explore in details...
Thnks to all d contributors for their Time.....see if u have a limited values to display in Listbox, den we will go for vrm_set_values.
but here as per the requirement
thr is no limited Values in d second dropdown box.
Let me Clear abt the requirement.
First field - issue no.
2nd field- Item no.
when u select a particular issue no, den in item it shd display the corresponding item nos related to that issueno. And both Fields r Primary keys in d table( customised Table.)
this is wwht exactly my requirement.
as i created The search help for issueNo, its displaying all the issueno Dat are in DB.
But Itemno Field is nt behaving as per That.
Pls Suggest me.. in details -
Help Window in a modulepool screen
Hello Folks,
I have created a button(named it as HELP) in the modulepool screen. I have a requirement where when i click on the button it should display the help information in the same screen.
For example: whenever we click F1 on any standard field it will display the help information in a same screen with new window.
Please assist me in fixing this.Hi
trap the Fcode and write the code inside
this is some demo programs which will help u.
Hi Sri,
Check these demo programs:
DEMO_DYNPRO_F1_HELP
DEMO_SELECTION_SCREEN_F1
Regards,
Amresh. -
Problem in Modulepool Screen validation
Hi friends,
In my Prog. i am using Modulepool screen with 10 fields on it.
Using this screen i am updating the Ztable.
In these fields if i enter the wrong data then it is displaying the system defined error message like <b>'Entry xx is defined in T178 table, check your entry'</b>.
But in my requirment i need to get my own Error Message insted of system message.
Is it possible or not.
Iam sending the code which i designed in Modulescreen .
<b>PROCESS BEFORE OUTPUT.
MODULE clear .
MODULE status.
PROCESS AFTER INPUT.
MODULE exit AT EXIT-COMMAND.
CHAIN .
FIELD zmjbr_det-spg.
FIELD zmjbr_det-brand MODULE validation_brand.
FIELD zmjbr_det-flavor MODULE validation_flavor.
FIELD zmjbr_det-beverage_prod MODULE validation_beverage_prod.
FIELD zmjbr_det-pack_type .
FIELD zmjbr_det-pack_size .
FIELD zmjbr_det-tragr .
FIELD zmjbr_det-to_eff_date MODULE validation_to_date.
FIELD zmjbr_det-from_eff_date MODULE validation_from_date.
FIELD zmjbr_det-major_brand MODULE validation_major_brand.
ENDCHAIN .
MODULE user_command.
PROCESS ON VALUE-REQUEST .
FIELD zmjbr_det-brand MODULE value_req_brand .
FIELD zmjbr_det-flavor MODULE value_req_flavor .
FIELD zmjbr_det-beverage_prod MODULE value_req_beverage_prod .</b>
in above code for the following fields i need own error messages.
spg (T178-KONDM) ,
pack_type (TMFG-MFRGR),
pack_size (TVM1-MVGR1) ,
tragr (TTGR-TRAGR) ,
major_brand (TVBO-BONUS).
Reward is Sure.
Thanks,
Anil.Sure, just create new modules for those fields and do your check within the modules and issue your own error messages.
Write the MODULE extension in the FIELD statement.
FIELD zmjbr_det-spg <b>MODULE VALIDATION_SPG</b>.
FIELD zmjbr_det-pack_type <b>MODULE VALIDATION_PACK_TYPE.</b> .
FIELD zmjbr_det-pack_size <b>MODULE VALIDATION_PACK_SIZE</b>.
FIELD zmjbr_det-tragr <b>MODULE VALIDATION_TRAGR</b> .
Now you can double click the module in the statement, the system will ask if you want to create it, say yes. It will create it in the ABAP program, now you can simply put your code in the MODULE. Like this.
MODULE VALIDATION_SPG.
If zmjbr_det-spg is initial.
message e001(00) with 'This field is not filled in!'.
endif.
ENDMODULE.
Regards,
Rich Heilman -
Hi all
atter giving the values in the selection screen, i am generating the output in Smartforms. After coming back to selection screen , i am changing the values in the seletion screen ., But the output of the forms remains same as the previous one.
What could be the solution?
Regards
karthikclear the variables and refresh internal table.For going back to selection screen give leave to transaction <tcode>.
-
Reg smartform background n print prob?
hi experts
i have a requiremnt my sf has to run in backgorund mode by default. how to make it ?
and i have to put a check box on my selection screen for print if the user checked it print should come . how to get this functionality?
thanks & regardsHi Deepu,
Refer to my post below thread
Re: smartform into pdf...
Regards,
Sravanthi -
Hi friends,
I am running packing list smartform for output type PL00 and it is generating output in spool. I want to display the output in the screen instead of spool. Can somebody help please.
Regards,
ChinnaHi chinna,
in spool list overview, switch on debugger and use the display icon. You might be able to find out, what function module is used for the display. You could then use it in your program.
Regards,
Clemens -
Reg smartforms - creating a new page for each customer number
Dear friends,
This is a sample program for smartform.
Below is my coding ...
TABLES : KNA1.
SELECT-OPTIONS : S_KUNNR FOR KNA1-KUNNR.
TYPES : BEGIN OF ZFS_KNA1,
KUNNR TYPE KNA1-KUNNR,
NAME1 TYPE KNA1-NAME1,
ORT01 TYPE KNA1-ORT01,
END OF ZFS_KNA1.
DATA : ITAB TYPE STANDARD TABLE OF ZFS_KNA1 INITIAL SIZE 0,
WA TYPE ZFS_KNA1.
SELECT KUNNR NAME1 ORT01 PSTLZ LAND1 FROM KNA1 INTO TABLE ITAB WHERE KUNNR IN S_KUNNR.
Now i am having one secondary window (cusotmer number) and main window(name and city).
I am able display list of cm nos, names and city in one page.
But i want to display name, city and number of customer in one single page.
suppose 5 customer numbers are there.....then 5 seperate pages should be displayed.
pls help me.
Regards,
S. VinodHi,
In your loop node... you have sort criteria....
give the fieldname of the customer number KUNNR and check the check box under the begin of sort event...
An event node is created... under that event node... create command node for triggering new page and dont forget to tick the checkbox for " not on first page" in the conditions tab....
and under that you can create text elements to display the data
regards
padma -
Hi All,
I have a requirement in my custom program when I double click on vendor number it should navigate to the transaction XK03 by skipping first screen.I have done code for this using set parameter for vendor and compcode and purchasing organization but the problem is the program should select purchasing data checkbox also in the first screen before skipping that.So how to pass default check for purchasing data check box?
We tried to do this also using BDC but the problem is with modes since we have only 3 modes A,N,E.I want to skip the first sceen and go to the 2nd screen which is not possible in BDC.
Please suggest somebody how to do this?
Regards
Maheshdata : opt like CTU_PARAMS.
opt-DISMODE = 'E'.
CLEAR : it_bdc.
REFRESH : it_bdc.
PERFORM populate_bdc_data USING 'X' 'SAPMF02K' '0101'.
PERFORM populate_bdc_data USING space 'BDC_CURSOR'
'RF02K-LIFNR'.
PERFORM populate_bdc_data USING space 'BDC_OKCODE'
'/00'.
PERFORM populate_bdc_data USING space 'RF02K-LIFNR'
l_final-lifnr.
PERFORM populate_bdc_data USING space 'RF02K-BUKRS'
'1000'.
PERFORM populate_bdc_data USING space 'RF02K-EKORG'
l_final-ekorg.
PERFORM populate_bdc_data USING space 'RF02K-D0310' 'X'. <-- for checkbox ..
CALL TRANSACTION 'XK03' USING it_bdc OPTIONS FROM opt. -
Reg : smartform in abap-hr
hi ,
In hr-abap we have the smartforms i.e hrforms i got the standard smartform... SAP_PAYSLIP_US ... is this smartform wat we use is same as in abap... smartform or different.. also i need the information related to this smartform SAP_PAYSLIP_US.. and driver program....Hi
RPCEDTX0 is the standard program which takes of Remuneration Statements(payslips) for payroll. It has a include RPCEDSZ9 which can control the form routines of the form which is used as a payslip. However, the selection of form which can be used a payslip is controlled from IMG settings. You can always edit this form using a smartform if you are using SAP_PAYSLIP_US as your payslip.
Which version of SAP you are working on?
Regards
Waz -
Reg: GOING TO SELECTION SCREEN FROM ALV GRID.
Hi all,
Iam using an ALV grid display.
I have called the grid display every times when i select a check box in the grid display.
Then when i click on the back button the screen navigates to the previous ALV grid. My requirement is to go to the first selection screen.
For this I have coded in the Back button as Call selection--screen <screen no>.
When i do this, and after navigation to the selection-screen when i click on the back button on the selection screen its navigating back to the ALV grid.
But i need to exit to the program in this case.
Can anyone Help me on this issue?
Regards
NaveenYou have to use LEAVE TO SCREEN 0.
Regards
Eswar
Addition: Also see that you are releasing the grid with statement like CALL METHOD g_grid->free.
So the code should be something like:
CASE ok_code.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
CALL METHOD g_grid->free.
LEAVE TO SCREEN 0.
ENDCASE.
Edited by: Eswar Rao Boddeti on Feb 19, 2008 1:48 PM -
Reg: Alv and selection-screen
Hi,
I created a ALV report,
I gave the user provision delete rows and dispalyed the new list without the deleted rows( one row at a time)
when i deleted few rows and when i press the back button i am getting all the rows deleted, but i want to jump directly to selection screen
please help me how to jump to selection screen after pressing the back button
i tried set screen 0 leave to screen 0 but of no use,
please help in this regard
thnxHi learner,
After deleting a row in ur internal tab u hav to refresh the display to remove dat row from display rite .....how r u doing it...??
Are u calling the ALV FM again... if ur doin so !! its a wrong way and der lies de problem....
check the sample code below in which if u double click on a row dat row gets deleted and the screen is refreshed.....also if u click back it goes to the selection-screen and not the previous alv display with deleted rows......
TYPE-POOLS: slis.
PARAMETERS rows TYPE i DEFAULT 20.
DATA: itab TYPE TABLE OF mara WITH HEADER LINE,
ls_layout TYPE slis_layout_alv.
START-OF-SELECTION.
SELECT * UP TO rows ROWS
FROM mara
INTO CORRESPONDING FIELDS OF TABLE itab.
ls_layout-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_structure_name = 'MARA'
is_layout = ls_layout
i_callback_program = sy-repid
i_grid_title = 'Double click on a row'
i_callback_user_command = 'EVENT_HANDLER'
TABLES
t_outtab = itab[].
*& Form event_handler
FORM event_handler USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
CLEAR itab.
DELETE itab INDEX rs_selfield-tabindex.
MOVE 'X' TO rs_selfield-refresh . " this automatically refreshes the display
ENDFORM. "event_handler
Cheers,
jose. -
Reg : SMARTFORM name and DRIVER PROGRAM
Dear Gurus,
Can anybody help me out in providing standard SMARTFORM name and also driver Program for
'ANNUAL MAINTENANCE CONTRACT CONFIRMATION' in CS(Customer Service) module.
Cheers,
Loverboy KHi,
there is on a standard system no smartform for you. So you have to do your thing with the standard sapscript.
However there have been some BestPractices projects at SAP. There they have a lot of standard smartforms. Maybe you can download them from SAP somewhere the name will something
with MMCON or MMDLS in it.
you have to find out yourself because i do not have it here to send it to you.
Gr., Frank -
Reg SMARTFORM emailing n fax options?
hi friends
i have to run my smartform in background mode and there is a requirement to fax and emailing
the output. how to make my form run in background , email n fax ?
thanks & regards
thirupai
Edited by: rafi md on Dec 20, 2008 1:32 PMHI
you may use the FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF' to convert the fom
into PDF.
But first to get the printed form from the spool, use FUNCTION
'RSPO_FIND_SPOOL_REQUESTS'.
Then you may send it to your PC, email, fax, etc by reading the record in
the lines of table IT_PDF_OUTPUT.
Note: You may also use program RSTXPDFT4 as a reference to get code
examples which uses different functions to perform the creation of PDFand
download the form to the PC,etc.
An example:
CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
EXPORTING
RQOWNER = SY-UNAME
TABLES
SPOOLREQUESTS = SPOOL_REQUESTS.
READ TABLE SPOOL_REQUESTS INDEX 1.
GD_SPOOL_NR = SPOOL_REQUESTS-RQIDENT.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = GD_SPOOL_NR
NO_DIALOG = C_NO
IMPORTING
PDF_BYTECOUNT = GD_BYTECOUNT
PDF_SPOOLID = PDFSPOOLID
BTC_JOBNAME = JOBNAME
BTC_JOBCOUNT = JOBCOUNT
TABLES
PDF = IT_PDF_OUTPUT
EXCEPTIONS
ERR_NO_OTF_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DSTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11.
CHECK SY-SUBRC = 0.
Hope this will help send you in the right direction
Regards
Alok -
Uploading two images at a time on to modulepool screen
Hi all,
I uploaded one image on to the module pool screen using the custom container. Now i want another image on the screen. I used one more container and tried. But the old image is beeing overwritten by the new one in the first container only. Is it possible to upload two images at a time?
Thanks in advance,
Dev.This is the code in TOP,
DATA CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA PICTURE TYPE REF TO CL_GUI_PICTURE.
DATA URL(256).
DATA CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA PICTURE1 TYPE REF TO CL_GUI_PICTURE.
DATA URL1(256).
Code in F01. I have written a similar subroutine for the other image also.
form load_pic_from_db changing p_url.
DATA query_table LIKE w3query OCCURS 1 WITH HEADER LINE.
DATA html_table LIKE w3html OCCURS 1.
DATA return_code LIKE w3param-ret_code.
DATA content_type LIKE w3param-cont_type.
DATA content_length LIKE w3param-cont_len.
DATA pic_data LIKE w3mime OCCURS 0.
DATA pic_size TYPE i.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
query_table-value = 'ZTEST_ICICI'."name of logo
APPEND query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
object_not_found = 1
parameter_not_found = 2
OTHERS = 3.
IF sy-subrc = 0.
pic_size = content_length.
ENDIF.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1.
endform. " load_pic_from_db
Dev.
Maybe you are looking for
-
Sorry, something went wrong and Word was unable to start (6) Office 2013
Ok this is just so annoying. Whenever I try to open Word, it gives the error "Sorry, something went wrong and Word was unable to start.(6)". Other office applications either freeze or crash. Only Excel works fine. Running Win7 64 bit. Tried all possi
-
I updated my firefox browser for my Mac and now, when I open it, an empty white box appears at the top of the page with only a gray bar in it. It over lays the Firefox home page and I can't get rid of it, so I can't click on anything on the Firefox p
-
My PRS-T1 can't be seen in Adobe Digital Editions
I can not get Adobe Digital Editions to see my PRS-T1. This is where all of my books from the Reader Store are that are not available from Kobo, but I can't get them to download onto my reader.
-
My daughters iPhone 5 c, keeps showing invalid sim, what do we do?
IIt just started do this today she has had this phone for about 7 months never had any problems before.
-
Passing Material text to BAPI BAPI_SALESORDER_CREATEFROMDATE2
Hi all, I am making use of BAPI_SALESORDERCREATE_FROMDAT2 for creating a sales order. for some orders i need to pass even the material text. I am not able to find the field in the BAPI structures to pass the material text. PLease help me solving this