Problem in smartform...quantity field....have ur points..
HI ALL,
I m transferring my itab from main program to SMARTFORMS...itab has a quantity type field.
When i execute my program, i get error message "Reference field WA-CR is unknown in form".
<b>Have ur points..</b>
Regards,
Every quantity field has a reference field.
Check the reference field in the table through SE11 transaction & click on REFERENCE tab. Trace your quantity field & corresponding reference field.
In the Smartform mention the same reference field against the quantity field declaration & activate it.
Similar Messages
-
Problem with the quantity field
hi every one
i am facing a problem with the quantity field (vbap-kwmeng)
as per my requirement i need to display this quantity field along with some other item fields from VBAP in an alv grid.
among all the fields displayed in the alv grid only this quantity field is editable(end user can change this quantity)
once end user changes this quantity and press save button i need to capture this new quantity in my internaltable.
problem is input of length of quantity is 15 and the output length is 19
so when i am pressing save
say my quantity is 50 when i am pressing save '0.050' is coming because of the length difference
how can i capture the original changed value.
vamsiwhat about define two fields in you inner table ,one as char and the other as vbap-kwmeng, you can show the char one in the ALV gird , when user input value and press SAVE ,you can move the value to vbap-kwmeng.
you can test it,mybe some one has one better idea. -
Problem with the quantity field in bdc?
Hi,
i have to populate a quantity field in bdc .
for ex 123.00. but the bdc accepting only in the form of 123,00.
How can I do this .
I tried by changing the user profile, but went in vain.
Suggest me how to convert ?
Thanks.Hi,
Create a variable of TYPE CHAR.Write your quantity field value into this variable and pass this variable to the BDC. This is the way of passing quantity fields to BDC.
DATA: V_AMOUNT(22) TYPE C.
WRITE ITAB-DMBTR INTO V_AMOUNT.
Pass this V_AMOUNT to BDC flow.
Hope this helps.
ashish -
In smartform quantity field move to left side.
Hi,
smartform output quantity field displaying rightside.
how can i move quantity field to leftside.
Regards,
Suresh.Hi Suresh,
check this
Left/Right Alignment of Quantity field?
hope it helps you
Regards! -
Hi all
pleas see the code...
SELECT-OPTIONS : dept FOR equz-ingrp DEFAULT 'DG'.
write : / dept.
output-> IEQDG
Now thing is equz is a fields with length 3 character, what ever i select from the drop down in select option.
IEQ is attached with every value....
Why? Please assist me...
<b>Have ur points.</b>
Regards,
pradeep phogatHi Pradeep,
Select option is similar to an internal table & has 4 fields in it.
SIGN
OPTION
LOW
HIGH
Inorder to display contents of select option you need to code as follows:
loop at dept.
write :/ dept-low, dept-high.
endloop.
Best regards,
Prashant -
Character Problem For SmartForms to Pdf .
Hi Experts ;
my problem about smartforms . I have a custumer list. I use smartform for output. Customer list of smartform ok . Have any problem . But I convert this output to PDF . Some Characters are overlapping . My main language Türkçe(Turkish) . Characters is incorrect for struct of laguage .( smartform output has no problem but pdf output have problem )
My Code :
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.
PARAMETER: p_date LIKE sy-datum.
PARAMETER: p_rea TYPE char255.
SELECTION-SCREEN: END OF BLOCK b1.
DATA: ws_ucomm LIKE sy-ucomm.
DATA: gt_intab TYPE ZSMRT_DNM_T WITH HEADER LINE.
INITIALIZATION.
SET PF-STATUS 'GUI'.
PERFORM get_data.
AT SELECTION-SCREEN.
ws_ucomm = sy-ucomm.
CASE ws_ucomm.
WHEN '&PDF'.
PERFORM f1000_download_form.
EXIT.
WHEN '&BACK'.
LEAVE TO SCREEN 0.
EXIT.
WHEN '&EXIT'.
SET SCREEN 0.
EXIT.
WHEN '&canc'.
SET SCREEN 0.
LEAVE TO SCREEN 0.
ENDCASE.
f1000_download_form
FORM f1000_download_form.
DATA: form_name TYPE rs38l_fnam.
DATA: wa_ctrlop TYPE ssfctrlop,
wa_outopt TYPE ssfcompop.
DATA: t_otfdata TYPE ssfcrescl,
t_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.
DATA: w_filesize TYPE i.
DATA: w_bin_filesize TYPE i.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZDNMSMRT'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = form_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.
wa_ctrlop-getotf = 'X'.
wa_ctrlop-no_dialog = 'X'.
wa_ctrlop-DEVICE = 'I9SWIN'.
wa_outopt-tdnoprev = 'X'.
CALL FUNCTION form_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = wa_ctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = wa_outopt
user_settings = 'X'
mydate = p_date
reason = p_rea
ADRNR = '23713'
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = t_otfdata
JOB_OUTPUT_OPTIONS =
TABLES
RTAB = gt_intab[]
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.
t_otf[] = t_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 150 "132
ARCHIVE_INDEX = ' '
IMPORTING
bin_filesize = w_bin_filesize
TABLES
otf = t_otf
lines = t_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4
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 'WS_DOWNLOAD'
EXPORTING
bin_filesize = w_bin_filesize
CODEPAGE = ' '
filename = 'c: est.PDF'
filetype = 'BIN'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
filelength = w_filesize
TABLES
data_tab = t_pdf_tab
FIELDNAMES =
EXCEPTIONS
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
OTHERS = 10
IF sy-subrc <> 0.
MESSAGE i003(z00) WITH 'File not downloaded succesfully'.
ELSE.
MESSAGE i003(z00) WITH 'File Test.pdf downloaded succesfully '
'under C drive'.
ENDIF.
ENDFORM. " F1000_DOWNLOAD_FORM
*& Form GET_DATA
FORM GET_DATA .
SELECT kunnr belnr gjahr from bsid
INTO CORRESPONDING FIELDS OF TABLE gt_intab
WHERE bukrs = '4000' and gjahr = '2007'.
LOOP AT gt_intab.
SELECT SINGLE name1 from kna1
INTO (gt_intab-name1)
WHERE kunnr = gt_intab-kunnr.
MODIFY gt_intab INDEX sy-tabix.
ENDLOOP.
SORT gt_intab by kunnr.
ENDFORM. " GET_DATA
Regards .Try following logic:
DATA: lt_data TYPE TABLE OF tline,
lt_data1 TYPE TABLE OF tline,
lt_objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
Convert OTF to PDF
REFRESH: lt_data.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = l_binfilesize
TABLES
otf = la_jobout-otfdata[]
lines = lt_data[]
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
IF sy-subrc <> 0.
Error during conversion from OTF to PDF.
ELSE.
Creation of the document attachment
REFRESH: lt_data1.
CALL FUNCTION 'TABLE_COMPRESS' "#EC *
TABLES
in = lt_data[]
out = lt_data1[]
EXCEPTIONS
compress_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
Error during compress operation of the data
ELSE.
REFRESH: lt_objbin.
CALL FUNCTION 'TABLE_DECOMPRESS' "#EC *
TABLES
in = lt_data1[]
out = lt_objbin[]
EXCEPTIONS
compress_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
Error during decompress operation of the data.
ENDIF.
ENDIF.
ENDIF.
Pass table lt_objbin[] to WS_DOWNLOAD function module. It should work.
Thanks
Amol Lohade -
Problem in currency and quantity field
Hi,
I have done a couple of BDC and watched that if some currency or quantity field is there and i want to run the BDC the particular currency/quantity field will not populate the value inspite of i have declared the same table field that it refers to in the screen in the internal table.
But, if i declare a character string in the internal field having same length as the screen field it will populate at run time. Why so?
Regards
SandeepHi Sandeep,
This is a common problem, when carrying out BDC.
For example, while recording you met with the 2 fields --> MSEG-DMBTR (Curr) and MSEG-MENGE(Quantity).
Go to SE11 --> MSEG --> Search for DMBTR --> Double click on the Data Element i.e. DMBTR --> Double Click on the domain WERTZ --> You can see under the block Output Characteristics : Output Length = 16.
While declaring the TYPES Structure, make it CHAR(16).
Similarly for MENGE --> Data Element : MENGE_D --> Domain : MENGE13 --> Output Length = 17.
Make it CHAR(17).
Consider this technique as the Rule-of-Thumb while doing BDC.
Regards,
Abir
Don't forget to award points * -
Problem in displaying quantity in screen field.
Hi all,
Am facing a problem in displaying the quantity in a screen.
In my program,am displaying the material no , unrestricted stock , blocked stock and the related pending prs for that material say
mat no - 6021 Un.Res.Stock - 100 blocked stock 10 .
if 2 PRs are pending for tat material, i hav to display in this for mat
Mat.no Un.res.Stock Blockd stock pend.pr
6021 100 10 100012
100013.
But here am getting
Mat.no Un.res.Stock Blockd stock pend.pr
6021 100 10 100012
0.00 0.00 100013.
am using table control for the screen.
i dont want 0.00 to get displayed below the Un.res qty.
since it is a quantity field it is getting displayed with 0.00
Can it be solved?
Thanks
PriyaHi,
one thing can be done that before passing the data to the table control take work varibale of char type and pass the PRS values to that variable using MOVE Keyword and then to the table control .
ie. data :
w_prs(10) type c.
move wa_prs to w_prs.
" pass w_prs to the table control
Hope u got the idea...
thanks
ravi -
In smartforms the quantity field is not showing the perfect value .
In smartforms the quantity field is not showing the perfect value because the point is shifting left
insted of showing 8.10 it is showing 80.00.Hi,
Dont use the quantity field same as that it come from interface Fm declare one field for quantity in the global settings and write the logic to pass the value to that field and pass that global value to the particular texts...same is the case with currency fields also.
Regards,
Rohan. -
Currency and quantity field allignment in smartforms
hi experts
i am facing problem in smartforms allignment for currency and quantity fields. these fields are not coming exactly on the same line of the other fields with char types. please help me resolving it.
Moved to Crrect Forum
Edited by: Vijay Babu Dudla on Apr 6, 2009 4:38 AM&wa_vbap-kwmeng(C)&
adjust with left and right alignment.
it will definately work.
what happend? isn't ur problem solved?
Edited by: MONIKA DHUMAL on Apr 6, 2009 4:38 PM -
Problem with currency and quantity field
Hi,
I have done a couple of BDC and watched that if some currency or quantity field is there and i want to run the BDC the particular currency/quantity field will not populate the value inspite of i have declared the same table field that it refers to in the screen in the internal table.
But, if i declare a character string in the internal field having same length as the screen field it will populate at run time. Why so?
Regards
SandeepHi,
Even i have experienced the same problem many a times and use a character string as a work around to solve it.
I guess one reason for it is for the currency and quantity fields, the actual defined length and the output length are different with output length being 3 or 4 bytes greater than that of actual lenght and also the fact that these fields are always right justified. hence some bytes of the field is getting truncated which the system does not allow and discards the whole value.
regards,
Mahesh -
Smartform - Format quantity field - CIZ
Hello all,
I have a quantity field which has a value 11.000.
I need to print it as 11 (no trailing zeroes ). But if the quantity is 11.23, then it shud print 11.23.
To acheive this, In sapscript, We used to write the quantity field with a C in bracket.
for eg. &CAUFVD-GAMNG(C)&
How Could I acheive this same functionality in smart forms ?
I beleive CIZ shud work in smartforms also..but unfortunately it is not..
Am i missing something.. ?
Thank you so much for your time.I donot think control commands are possible in Smartform like in sapscript. You have to create a program lines node and there u can write ur logic to meet this requirment.
Ex:
data: val type p decimals 3 value '10.230'.
data: l_char type c length 10.
data: l_whole_no type c length 10.
data: l_decimal type c length 3.
l_char = val.
split l_char at '.' into l_whole_no l_decimal.
if l_decimal = '000'.
l_char = l_whole_no.
endif.
Regards,
Joy. -
Quantity field conversion problem in SAP script
Hi experts,
I have problem with sap script quantity field conversion.
In purchase order the actual value of field( MDPM-ERFMG) is 3,500.
But in Print preview it is showing only 3.5
Any one Please help me in this problem
thanks in advance
muraliHello,
check this:
Number of Decimal Places
A program symbol of one of the data types DEC, QUAN, and FLTP can contain decimal place data. Use the option below to override the Dictionary definition for the number of decimal places for the formatting of this symbol value.
Syntax
&symbol(.N)&
The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.
&EKPO-MENGE& -> 1,234.560
&EKPO-MENGE(.1) -> 1,234.6
&EKPO-MENGE&(.4) -> 1,234.5600
&EKPO-MENGE&(.0) -> 1,235
REgards,
Vasanth -
Handling currency and quantity fields in smartforms
Hi,
can i know how to handle currency and quantity fields in smartforms.
i have to display ZMENG field of VBAP table but it is not getting displayed.
i have given the details in CURRENCY AND QUANTITY tab in the GLOBAL DEFINITIONS.
Thanks,
BJR.Hi
Did u pass that value in the INPUT and OUTPUT parameters where u r calling that field...
if u have not included that in The Currency/Quant Tab will get an Error Message.....
and &VBAP-ZMENG& ..in the text
surya -
Hi all,
I want to declare a field symbol <fs> in a class, & to use it in different methods of the same class.
But in attributes of the class, how i declare field symbol in a class.
I m not able to do this...
<b>Pleas assist me..& have ur points.</b>
Regards,
pradeep phogatPradeep,
See this thread. It gives details about field symbol used in a standard class. This should give you some idea.
Re: Field Symbol
ashish
Maybe you are looking for
-
Do they make a cable or device that can take the audio and video RCA and convert it to a HDMI out?Thanks!
-
Premiere Pro CC2014をiMac (27, Late 2012) 3.4 GHz Intel Core i7 メモリ32GBで作業中に前触れもなく突然に電源が落ちる事態が頻繁に発生してしまっています. 対策などあればお知らせください 追記(2015/1/20 18:00) 主にPhotoshop系のソフトを使っていますがPhotoshop系ソフトでは落ちず.premiereでは決まった動かし方ではなく.編集画面をブラウズしているだけでも落ちてしまいま す. メッセージ編集者: 邦
-
Wacom Intuos4 keys bug on AE CS4/5 on Win7 64bit
After a lot of futzing, I still can't get the ExpressKeys and the Touch Wheel to operate as a jog - it turns out that any key that is replicated as a Num-Lock key on the keypad fails to work properly in AE. For example, the Wacom control panel sends
-
No domain accessible to user logged in from BPEL Console
I am unable to log in BPEL Console installed through SOA Suite 10.1.3.1.0. OC4Jadmin user integrated with OID. Unable to logged as oc4jadmin user to BPEL console or BPEL admin.
-
Hello , Could anyone let me know what are the reasons for the below error message . Message no. TD000 : No SAPscript message exists The error occurs in the transaction ME9F when i try to display the message. Please note that the condition records ar