Display in smartforms
Hi abapers,
I am developing a smartform which should display the customer data in each page for a given company.
I have two header details one main and a footer window.
My header one window contains the company name and address.
My second header window contains the customer name , address and another window contains the other detail of the customer.
My main window contains the customer invoice data.
My footer the summary of invoice data.
Now,
I am using the loop to display data from the header window.
Table from the main window.
When it is having one customer as input ,it is working fine. For more than one customer it is displaying the last customer name and address in the customer secondary window.
and all the records in the main window. If i give the command option --> go th new page also, the main window is not changing.
How can i get one customer in each page .
Please help me to sort out this issue
I assure u points if helpful also.
Regards,
Priya
Priya,
If each line item in ur internal table is for a different customer then there is no need for u to go for program line, you can just create a command node and do what I said.
Suppose if u have multiple line item for a single header item then,
you change the structure of ur internal table by includeing a flag field then
In ur Report pgm (SE38), u create a loop and in that loop u set the flag in
AT NEW <invoice no.>. Then u pass to smart forms.
Now in smart forms create a command node and mark the check box for new page. Then in the conditions tab u can check for FLAG value for 1. This will create a new page for a new invoive number.
Remember to create the command node in the begining of the loop.
Similar Messages
-
Barcodes are not getting Displayed in Smartforms.
HI
In Previous Month barcode was getting displayed in smartforms print Preview. And PDF form is generated successfully. I am not using standard form this is custom.
In Previous month, Service pack SAPKA70023 ABA Support Package 23 & 22 for 7.00 were applied, After that Barcode is not getting displayed for current month. I identified that Barcode Name is not mentioned in smartstyles.
Ther is no transport Request Moved from last one year.
Can any one suggest me there will be any impact on barcodes after service packs
Thanks
RaviHello,
have created some new users and done with the leave request, it comes to backend inbox, but not
visible in portal. Re-configured UWL, but still the task not coming( leave request). For other users it is > coming?
Where have you created these users? Many times it is not enough to create new users in a backend system. You will have to create them in the data source which is used by the UME of your portal or to map this data source with the system where you have created your new users
You can see what data source your portal is using by going to
Portal --> System Administration --> System Configuration --> UME Configuration --> Data Source
If this Data Source doesn´t contain your new users, then UWL wouldn´t be able to show their items.
Here you can check if your user is contained in the data source:
Portal --> User Administration --> choose the right data source --> put in the username --> search
Please check if your users are correctly created.
Regards,
Iris -
How to display the smartform of a purchase order from EBP (its) into a BSP
Hello,
I'm trying to make a bsp which lists the purchase orders (PO) for a user, that is not a problem.
But I would like to open the smartform of a PO like in EBP (SRM) into my BSP.
In EBP with the ITS i use this function :
BBP_OUTPUT_PO_PREVIEW_SMART
I give in input of this function the GUID (number) of my PO and the name of smartform to use with.
I would like to reproduce this functionality in a BSP like on the ITS.
Can someone help me ?
Thanks a lot !
FrancoisIndeed with the example of the bsp sf_webform_04 i can display my smartform !
I have two choices : HTML or PDF.
You only have to choose OTF for PDF or XSF for HTML !
Thanks a lot !
Francois
Message was edited by: Francois Lavoissiere -
Displaying a Smartform as PDF in WDA
Dear All,
I am trying to display a smartform as PDf in the web dynpro application. I am getting the below error while trying to display the smartform.
Note
The following error text was processed in the system DE5 : Function module does not exist
The error occurred on the application server MTW02SDEC01_DE5_00 and in the work process 0 .
The termination type was: ERROR_MESSAGE_STATE
The ABAP call stack was:
Function: FUNCTION_IMPORT_INTERFACE of program SAPLSUNI
Method: DATASOURCE_2_FM_PARAMS of program CL_WD_ADOBE_SERVICES==========CP
Method: CREATE_PDF_DDIC of program CL_WD_ADOBE_SERVICES==========CP
Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Please let me know does any services needs to be activated in SICF or any other problem?
Thanks,
MugundhanHi Thomas,
Pleasure in receving the reply from you. I had created a node called pdf_data of cardinality 1..1, under which i had created a attribute called SOURCE of type XSTRING. i had used the below code to display the smart form.
DATA: node_pdf_data TYPE REF TO if_wd_context_node,
fm_name TYPE rs38l_fnam,
outop TYPE ssfcompop,
cparam TYPE ssfctrlop,
tab_otf_data TYPE ssfcrescl,
tab_otf_final TYPE TABLE OF itcoo,
bin_filesize TYPE i,
bin_file TYPE xstring,
pdf_tab TYPE TABLE OF tline.
" Get function module name for smart form
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZMG_SF_TEST'
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
" Get Report Format With Data From Smart Form
outop-tdprinter = 'LP01'.
outop-tddest = 'LP01'.
cparam-no_dialog = 'X' .
cparam-preview = 'X'.
cparam-getotf = 'X'.
CALL FUNCTION fm_name
EXPORTING
control_parameters = cparam
output_options = outop
user_settings = space
IMPORTING
job_output_info = tab_otf_data
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
" Get all data of Smartform
tab_otf_final[] = tab_otf_data-otfdata[].
" Convert OTF data into PDF data
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = bin_filesize
bin_file = bin_file
TABLES
otf = tab_otf_final
lines = pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
" Set PDF Data to context attribute
node_pdf_data = wd_context->get_child_node( name = 'PDF_DATA' ).
CALL METHOD node_pdf_data->set_attribute
EXPORTING
value = bin_file
name = 'SOURCE'.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'W_PDF'
* title =
* close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
* close_button = abap_true
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
lo_window->open( ).
The above code works fine. Finally in the bin_file i am getting the raw data. After that i am getting the below error.
The following error text was processed in the system DE5 : Function module does not exist
The error occurred on the application server MTW02SDEC01_DE5_00 and in the work process 0 .
The termination type was: ERROR_MESSAGE_STATE
The ABAP call stack was:
Function: FUNCTION_IMPORT_INTERFACE of program SAPLSUNI
Method: DATASOURCE_2_FM_PARAMS of program CL_WD_ADOBE_SERVICES==========CP
Method: CREATE_PDF_DDIC of program CL_WD_ADOBE_SERVICES==========CP
Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP -
In PDF display of smartform in polish langauge - copyright character prob
hi gurus!
In PDF display of smartform in polish langauge - copyright character is not displaying properly.its showing # for copyright character. but It displays in english language.
please need ur help.
thanks
SGPlease note - the duplicate post in General has been deleted Please only post a question in one forum.
Thank-you -
I want to retrieve a photo image of an Employee to display in smartforms
Hi,
i want to retrieve a photo image of an Employee to display in smartforms , how do i do that? can anyone help me with this?
Regards
Anbu BHi Anbu,
Check this link:
smartforms: logo
http://help.sap.com/saphelp_nw2004s/helpdata/en/27/1d008bdd4811d3969500a0c930660b/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/69a154cd8b11d3b563006094192fe3/content.htm
Regards,
Chandra Sekhar -
Error while displaying PO smartform print preview
Hi,
In th PO smartform iam trying to display the service PO. the data is coming in runtime but it is not displaying the print preview only for the service POs the error iam getting is "<b>system message 042 from work area SSFCOMPOSER does not exict</b>". other POs are displaying correctly. pl. help me inthis its urgent .. rewards for every correct guidence
Message was edited by:
satish kHi
pls check if you are using any checks or conditions under which a node gets executed only for service PO's. problem may be like some colums or rows may be missing in the table node etc. -
Problem with a display in SMARTFORMS
Good afternoon everybody,
I have a problem concerning a smartform.
My actual table looks like this :
Page 1
Column 1 Column 2
DATA 1 -
> DATA 2
DATA 3 -
> DATA 4
DATA 5 -
> DATA 6.... etc
Page 2
Column 1 Column 2
DATA 7 -
> DATA 8
etc.
And I need to display the table like that (in vertical) :
Page 1
Column 1 Column 2
DATA 1 DATA 4
DATA 2 DATA 5
DATA 3 DATA 6
Page 2
Column 1 Column 2
DATA 7 DATA 11
DATA 8
DATA 9
DATA 10
Does anybody know how to do that (if this is possible) ?
Thx for your help.
Edited by: HenriAD on May 4, 2009 2:17 PMsuppose the table is itab with columns A and B,
so ur data is like wa-A and wa-B.
now use a table node to loop at itab into wa.
now create two rows with line type having single column.
loop
ROW1 -
print wa-A
ROW2
print wa-B.
endloop.
this way u'll get ur data vertically -
PDF binary image display on smartforms?
Hi guys,
I'm very new to this but i hope i can explain it correctly.
Lets say right now l have some pdf stored in SAP(Service Contract for example) and we're reading them as binary image files right?
Is it possible to retrieve such binary image and display them in an existing smartform?
I hope i'm explaining the right way...this has something to do with DMS ??
Below are some codes to further help in my questions.
ALL FUNCTION 'SCMS_UPLOAD'
EXPORTING
filename = '/usr/sap/XXXX/XXXXXX/test.pdf'
binary = 'X'
frontend = ' '
* MIMETYPE =
IMPORTING
filesize = size
TABLES
data = file_data
* EXCEPTIONS
* ERROR = 1
* OTHERS = 2
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA: BEGIN OF content_bin OCCURS 1,
line TYPE SDOK_SDATX,
END OF content_bin.
DATA: BEGIN OF content_txt OCCURS 1,
line TYPE sdokcntasc,
END OF content_txt.
CALL FUNCTION 'SCMS_DOC_READ'
EXPORTING
mandt = sy-mandt
stor_cat = ' '
crep_id = crep_id
doc_id = doc_id
TABLES
* ACCESS_INFO =
content_txt = content_txt
content_bin = content_bin
* EXCEPTIONS
* BAD_STORAGE_TYPE = 1
* BAD_REQUEST = 2
* UNAUTHORIZED = 3
* COMP_NOT_FOUND = 4
* NOT_FOUND = 5
* FORBIDDEN = 6
* CONFLICT = 7
* INTERNAL_SERVER_ERROR = 8
* ERROR_HTTP = 9
* ERROR_SIGNATURE = 10
* ERROR_CONFIG = 11
* ERROR_FORMAT = 12
* ERROR_PARAMETER = 13
* ERROR = 14
* OTHERS = 15
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Anyone? Please its kinda urgent.
Basically, If I understand correctly, what I have now is are converted binary data from the PDF document?
Is there a way to take these data and displaying it meaningfully(may be through some other processes like conversion again) in a smartform? Is this possible? -
Hi,
all.
how to display the contents of a form in chineese language in a smartform when i logged on with english languageHi ,
In your sap screen in the end of the Application toolbar there is button called Customizing of local layout then goto the Character set then click on the simplified chinese or traditional chinese . Then you are able to see the chinese contents with the help of english log on language.
Thanks!
Please reward points if it helps you -
Page not displayed in smartform
Hi Experts
I have modified an existing smartform development which had 3 pages. I have added another page into that & made 4 windows in that & wrote some heading text.
I have added NEXT PAGE in page 3 as the new page added & all other options which should be there, but still when i go for print preview, the fourth page is not displayed.
I am unable to get the problem & i have to solve the problem by EOD. Please help what could be the problem & how to solve it.
prateekHi,
In the main window of the 3rd page create command node ( for explicit page break) and check the checkbox for new page and give the name of the 4th page..
and also just check whether you have activated your form or not
regards
padma -
Displaying a Smartform Using IMG (Web Dynpro)
Hi Guys,
I am trying to display one of my smartforms in the front end using the IMG and I am finding it hard to do so. I cant find the appropriate path to assign my smartforms.
Please help!
Val.CALL FUNCTION LV_FUNC_MOD_NAME
EXPORTING
CONTROL_PARAMETERS = LS_SSFCTRLOP
OUTPUT_OPTIONS = LS_OUTPUT_OPTIONS
USER_SETTINGS = ' '
RRNUM = IM_RRNUM
IMPORTING
JOB_OUTPUT_INFO = LT_RETURN
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
ENDIF.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = LV_LENGTH
BIN_FILE = LV_XSTRING
TABLES
OTF = LT_RETURN-OTFDATA
LINES = LT_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
ENDIF.
LV_FUNC_MOD_NAME is your smartform function module name.
LV_XSTRING contains the stream of the pdf , send this to the browser using the following code.
LV_FILENAME = 'RebateRequest.pdf'.
LV_CTYPE = 'pdf'.
CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE(
EXPORTING I_FILENAME = LV_FILENAME
I_CONTENT = LV_XSTRING
I_MIME_TYPE = LV_CTYPE
I_INPLACE = ABAP_TRUE
I_IN_NEW_WINDOW = ABAP_TRUE ).
Abhi -
Displaying a smartform in pdf format using webdynpro
Hi,
I have created a smartform using t.code smartforms. I have created a function module within which i used the function mocule convert_otf which will convert the smartform into binary format. Now how do i proceed in displaying the form using web dynpro.
Plz give me your suggestions.
Thanks in advance.CALL FUNCTION LV_FUNC_MOD_NAME
EXPORTING
CONTROL_PARAMETERS = LS_SSFCTRLOP
OUTPUT_OPTIONS = LS_OUTPUT_OPTIONS
USER_SETTINGS = ' '
RRNUM = IM_RRNUM
IMPORTING
JOB_OUTPUT_INFO = LT_RETURN
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
ENDIF.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = LV_LENGTH
BIN_FILE = LV_XSTRING
TABLES
OTF = LT_RETURN-OTFDATA
LINES = LT_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
ENDIF.
LV_FUNC_MOD_NAME is your smartform function module name.
LV_XSTRING contains the stream of the pdf , send this to the browser using the following code.
LV_FILENAME = 'RebateRequest.pdf'.
LV_CTYPE = 'pdf'.
CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE(
EXPORTING I_FILENAME = LV_FILENAME
I_CONTENT = LV_XSTRING
I_MIME_TYPE = LV_CTYPE
I_INPLACE = ABAP_TRUE
I_IN_NEW_WINDOW = ABAP_TRUE ).
Abhi -
Display custom SMARTFORM(PDF) not Adobe Interactive on Portal.
Hi All,
I appreciate any direction that you are able to provide.
The scenario is as follows:
The client is currently running SAP R/3 ECC 6.0
The client is implementing ESS/MSS.
A custom SMARTFORM was created in SAP
The question is:
What is the necessary code required in the Model/Application to Display this form?
I have searched the web and found some documentation, but it is incomplete and I receive errors in the NWDS.
Thanks is advance!
The following code was placed in the Init method.
public void wdDoInit()
//@@begin wdDoInit()
Ynag_Test_Pdf_1_Input input = new Ynag_Test_Pdf_Input();
wdContext.nodeYnag_Test_Pdf_Input().bind(input);
try {
wdContext.currentYnag_Test_Pdf_InputElement().modelObject().execute();
} catch (WDDynamicRFCExecuteException e) {
e.printStackTrace();
wdContext.currentContextElement().setSdfgdsfsd(e.getMessage());
} wdContext.currentInternalElement().setUrl(convertXStringToUrl(wdContext.currentOutputElement().getBin_File()));
//@@end
//@@begin others
public String convertXStringToUrl(byte[] doc_content){
String url = "";
WDWebResourceType webResType = WDWebResourceType.PDF;
IWDWebResource webResource = WDWebResource.getWebResource(doc_content, webResType);
try {
url = webResource.getURL();
} catch (WDURLException e) {
e.printStackTrace();
return url;
//@@endHi Chintan,
Good morning. Thank you for your time and advice. While I have been programming in ABAP for over 15 years, I have not had to write SAP style JAVA before. I have written JAVA programs, but not using the NWDS. So that would lead me to ask the next question.
How would I do something like that?
Please advise.
Kind Regards,
Daniel A. La Mendola -
hi,
How can we display a text or number vertically in smartforms?Create a small window..........
and give fields like this
for example if thie field hold value 'BEST'
f1+0(1) B
f1+1(2) E
f1+2(3) S
f1+3(4) T
like this i think this will help u............
Reward IF,................
Regards
Anbu -
Hi,
I need to display barcode in my smartform based on the Delivery No, can any body tell me the way to do it .
Regards,
Srinivashi srini,
define a character format c1. there u get option in 'standard setting' to make it to barcode. choose the required bar code family.
now save and activate this character format.
in ur smartform pass your delivery no. with character format c1.
ex: <c1>wa_itab-devlivery_no</> like this.
the output u will get in barcode.
hope this will help u.
Maybe you are looking for
-
Mac keeps waking up in the middle of the night
So my Mac's been waking up in the middle of the night, and I want to keep my electricity bill down. Anything in these 5 console lines point anything out, internet detectives? +11/20/09 9:24:53 AM kernel System Sleep+ +11/20/09 11:24:52 AM SyncServer[
-
Hi, I create substitution using exit by copy RGGBS000 to ZRGGBS000 and activated it in tcode OBBH. When I test using Tcode F-02, saves as complated, it is work. My questions: 1. When I changes my parked document, why my substitution does not work ? 2
-
Pricing Error masage V1 801 not picked
Dear All I have urgent help required in this As I have configure all settings but enen after that users are able to create SO without pricing I have done the folowing config 1. Made Pricing mandatory in Pricing procedure 2. madre condition as "D" no
-
Mi imac expulsa todos los cds virgen
quiero grabar un cd pero los cds que meto al imac no me los acepta y los expulsa los dvds trabaja muy bien pero al introducir el cd no lo acepta
-
I installed Final cut studio today. When I went to do the Blue Horizon tutorial I could not locate the video and audio clips as outlined in the Final Cut Pro 5 section of the video. I followed all the steps exactly as outlined on the video. Any help