Output Quantity fields
Hi!
Output Quantity fields with thousand position indicator .
How is it possible ?
THX
sas Erdem
Hello,
what happens if I have the followings situation ?
gv_s_brgew is standing for Gross weight
data gv_s_brgew(10) type c
&gv_s_brgew& (sap script)
Regards
sas
Similar Messages
-
Purchase order output-quantity field
This is a smartform program for Purchase order..the Requirement is
when the qty is without decimal places then it should be printed without decimal places on PO printout. E.g. if PO contains 10 EA then 10 EA should be printed and not 10.00 EA. Similarly if 10.5 KG is in PO then 10.5 KG should printed on the printout.
eg: 100.000 EA that is to be printed as 100 EA
123.458 kg that is to be printed as 123.46 kg
234.000 EA that is to be printed as 234 EA
2.00 KG that is to be printed as 2 kgHi Experts,
Excel file contains 1000 records when i upload excel using alsm_excel_to_internal_table it is taking 100 records only....
could u please help me for this....i have given as shown below
call function'alsm_excel_to_internal_table'
exporting
filename = p_file
i_begin_col = '1'
i_begin_row = '2'
i_end_col = '8'
i_end_row = '500'
tables
intern = itab_xl_itab
exceptions
inconsistent_parameters = 1
upload_ole = 2
others = 3.
regards
Dileep -
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! -
How can we remove the following zeros from quantity field ?
Hi All.
how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
eg:getting output zqty = 2.000
but i need zqty = 2.
help me to reslove this issue.
Regards.
jayHi,
While populating the field catlog do the following thing to avoid zeros.
wa_fieldcat-tabname = 'I_OUTPUT'. " Curr
wa_fieldcat-fieldname = 'FWAER'.
wa_fieldcat-seltext_l = text-023.
wa_fieldcat-no_zero = 'X'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Thanks,
Khushbu. -
Hi all.
we are phasing a problem.
I am using alv to display in output.
I am using a Quantiti field (BDMNG),.
in this field if nodata is there then it is showing 0.000(that is the default value).
I don't want those zeros.I want only space(blank only).
Can any body help me to solve this issue.
Thanks in advance
Eswar.Hai,
While building field catalog For quantity field Set the NO-ZERO attribute to 'X'.
Or you can change the quantity filed to character in the alv display.
Mark points if helpful.
Regards,
Umasankar -
How to validate Quantity field in TV - Inputfield ?
Hello All,
I'm using a table view to show the output .
IN this table view I made 2 fields as Input fields.
Both the fields are Quantity fields.
Now when the user enters a value in this Quantity field I want to validate it with respect to it's units .
How can I do that ?
In my case if the user enters correct value it works but when he enters a wrong value my BSP is going for a dump.
I tried to debug the<b> LIPS table</b> to verify how SAP was handling this checking for the field <b>LFIMG</b>. But there there is a statement called chain --endchain.
SO there is no chance for debugging.
My code is as follows :-
LOOP AT gt_final INTO wa_final.
CLEAR: gv_row,lv_qty,lv_string,gv_len,gv_cell_id1.
gv_row = sy-tabix.
gv_len = STRLEN( gv_row ).
gv_len = gv_len - 1.
* Modify the Third Column
CONCATENATE 'INB01_TV_ID' '_' gv_row(gv_len) '_' '3' INTO gv_cell_id1 .
lv_string = request->get_form_field( name = gv_cell_id1 ).
WRITE lv_string TO lv_qty UNIT wa_final-units.
CLEAR :wa_final-del_quantity.
wa_final-del_quantity = lv_qty.
MODIFY gt_final FROM wa_final TRANSPORTING del_quantity.
ENDLOOP.
Can anyone tell me how to validate the entry for the Quantity filed ?
Regards,
Deepu.K
I have one more Question .
Whenever BSP goes for a dump in this case I want to handle this by a message .
Is it possible ?
Message was edited by:
deepu kHello Raja,
I want to validate the entry in the QUantity field with respect to the Unit of the Quantity.
I.e say for example I have a unit as PC (pieces) then the quantity must be only of thousands,lakks and so..on......but not in points i.e a piece quantity must be full either 200 ,2 lakhs or 2 pieces but not 2.5 pieces.
SO now if the user enters 2.5 it's a wrong value as the quantity for the Unit PIECES can't have half-piece. (2.5 = 2 + 0.5) .SO i want to validate this .
I hope I'm clear.
How should I do ?
Regards,
Deepu.k -
FBL5N extension including Quantity field
Hi,
Kindly note that we are trying to extend FBL5n(Customer line item display) and our client requirement is to include quantity in the output.We are using BTE (business transaction extension) however the quantity field is appearing blank although we have added the field.
Kindly suggest as to how this can be carried out.
Regards
PranayHi, trace in abap editor function from BTE, may be there is a mistake in code
-
How to truncate the decimals in the ALV report for the quantity field
Hi All,
I have to display a quantity field and units of measure in the ALV output. If the units of measure eq 'PC' i should not display the decimal places for quantity in the alv output, otherwise i have to display the decimals in the output. How to do this....any help would be highly rewarded. I knew that for this type of cases decimal_o will not work.Hi,
Declare one more Internal table same as output table. In that intead of that quantity field, declare field_name(15) type c.
data temp type i.
Loop at itab.
if field = 'PC'.
temp = qunantity field.
field_name =temp.
else.
field_name = quantity field.
endif.
endif.
endloop. -
Rounding a quantity field to one decimal place. PLEASE URGENT
I have a quantity field with three decimal places. I have to print this field with only one decimal place. This is in a smartform.
suppose: qty = 45.678
I want it to be printed as 45.7
Thanks in advance.Hi Riki,
I think you can use Function Module ROUND to round off the value...
REPORT ZTEST_SHAIL4 .
data: out type p decimals 1,
inp type f.
inp = '45.678'.
CALL FUNCTION 'ROUND'
EXPORTING
DECIMALS =
input = inp
SIGN = ' '
IMPORTING
OUTPUT = out
EXCEPTIONS
INPUT_INVALID = 1
OVERFLOW = 2
TYPE_INVALID = 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.
Now use the variable 'out' to display the rounded off value...
Regards,
SP. -
Set quantity field disabled in MIRO for Services PO
¿How can I do in order to disable the quantity field in MIRO transaction ? (Only for Services PO)
Edited by: Luis Ganoza on Oct 11, 2011 9:01 PMHi,
Please check whether you have selected service based invoice verification indicator in service PO or not. I f not selected select and see. Ultimately the quantity field will be greyed out. An alternative is use OLMRLIST transaction and Now Click on "Change" button and Confirm the Message by Pressing Enter. Here mark Quantity (DRSEG-MENGE)
field as "Output Only". Thanking you. -
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 -
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 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. -
hello
i have following data in my internal table
RUBBER1 1100 2007 BISO AA 9.000 0.000
RUBBER1 1100 2007 BISO AB 5.000 0.000
RUBBER1 1100 2007 EXTO AB 3.000 0.000
RUBBER1 1100 2007 FG AC 8.000 0.000
RUBBER2 1100 2007 BISO AA 0.000 0.000
RUBBER2 1100 2007 BISO AB 5.000 0.000
RUBBER2 1100 2007 EXTO AB 3.000 0.000
RUBBER2 1100 2007 FG AC 8.000 0.000
i want output like
RUBBER1 1100 2007 BISO AA 9.000 0.000
RUBBER1 1100 2007 EXTO AB 3.000 0.000
RUBBER1 1100 2007 FG AC 8.000 0.000
RUBBER2 1100 2007 BISO AA 0.000 0.000
RUBBER2 1100 2007 EXTO AB 3.000 0.000
RUBBER2 1100 2007 FG AC 8.000 0.000
i used at new on storage location that is BISO but then i am getting data like above but in that i get my quantity fields value as 0.000.
regards
soniya.HI,
You need to write this way..
SORT ITAB BY <storage location>.
LOOP AT ITAB.
MOVE ITAB TO WA.
AT NEW <storage location>.
WRITE:/ WA. " write the data to output.
ENDAT.
ENDLOOP. -
Change in the ALV Output Screen field
Dear All,
How can I change or Edit the output apperared in the ALV report.
My requirement is that,
Consider Report have given Output in ALV as 213.00 in quantity field that I want to change at run time manualy as per my requirement.
Pls. Suggest.
AniruddhaDear Sir,
I AM CALLING THIS SUBROUTINE IN FOLLOWING SEQUENCE...AND I WANT MY QUANTITY FIELD SHOULD BE EDITABLE IN RUNTIME .PLZ SOLVE MY PROBLEM.
PERFORM top_of_page.
PERFORM fieldcat_init USING gt_fieldcat[].
PERFORM sub_comment_build USING t_list_top_of_page.
PERFORM ALV .
FORM fieldcat_init USING rt_fieldcat TYPE slis_t_fieldcat_alv.
DATA: ls_fieldcat TYPE slis_fieldcat_alv.
DATA: pos TYPE i VALUE 1.
CLEAR ls_fieldcat.
pos = pos + 1.
lCLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'GSMNG'.
ls_fieldcat-seltext_m = 'QUANTITY'.
ls_fieldcat-tabname = 'MATRIX1'.
ls_fieldcat-outputlen = 18.
ls_fieldcat-EDIT = 'A'.
APPEND ls_fieldcat TO rt_fieldcat.
FORM ALV .
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND =
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
T_OUTTAB = matrix1
EXCEPTIONS
PROGRAM_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.
Pls. suggest the changes inthe above coding
Thanking you in anticipation
Aniruddha
Maybe you are looking for
-
Hello all! I was bought a Zen Neeon 2 GB from Japan as a gift recently. I'm quite fond of it so far, no problems getting music on and off or with the radio and getting videos on and off and converting them is fine too. BUT (yes, there's always a but)
-
Migrating mysql procedures into oracle
Hi friends! I have a task to migrate one mysql db into oracle enviroment. So i plan to use a handy sql developer migration tool. I have not yet seen the source mysql db. So for now i just trying to figure out some issues wich may appear in the course
-
Cleaner app for duplicate contact
i hear there was a cleaner app to clean up duplicate contacts on z3o? any one know? Thnaks Linda Kay Vandenberg White
-
The clip properties are Frame size 1440x1080, 23.98 fps (yes a problem for FCE), Compressor: Apple Intermediate Codec, but unfortunately I did all of my hard work on a 30 minute film on a sequence that has SD settings (Frame size 720x480), 29.97 fps
-
Safari 7.1 blocks all keyboard input in Flash app
Safari 7.1 on OSX 10.9.5 blocks any and all keyboard input for FlashPlayer applications!! Everything worked fine until the upgrade to Safari 7.1 and OSX 10.9.5. Tried FlashPlayer 14 and the latest 15 -- still no keyboard input, not even in debug mode