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
Pranay
Hi, trace in abap editor function from BTE, may be there is a mistake in code
Similar Messages
-
I need to make the ordered quantity field (RV45A-KWMENG) disabled in 'VA02'
Hi SAP COMMUNITY,
I have urgent requirement for which i did'nt worked before on this requirement. I hope you people can help me in this regerd.
My requirement is, I need to make the ordered quantity field (RV45A-KWMENG) disabled in the transaction code is VA01/VA02. User should not be able to edit this ordered quantity in VA01/VA02 Transaction.
Here the condition to disable this field ordered quantity is IF ORDER TYPE EQUAL TO OR AND IF ITEM CATEGORY EQUAL TO TANN in technical IF VBAK-AUART EQ OR AND IF VBAP-PSTYV EQ TANN then only the field (RV45A-KWMENG) ordered quantity should be disabled in that transaction VA01/VA02.
Correct me if iam wrong, I think in the program SAPMV45A and do we need to include any screen number which i have seen in VA02 is 4001. Do we need to write a code in Include MV45AFZZ (FORM USEREXIT_FIELD_MODIFICATION.). But i don't know what code i need to write here to disable this field.
I had searched in the forum some example code so please suggest me whether i can use this and if i can use this please suggest me how to write the condition and insert the code in that FORM. If this sample code is wrong then please suggest me what exact code should be given. Can anyone help. Quick response will be much appreciated.
Looking forward for ur prompt replies.As per my understanding , To disable the field RV45A-KWMENG based on the condition for Transaction VA01/VA02.
The conditions which i need to check is Order Type and item category.
I understand that this is the code which i need to insert for disabling the field but i have a question here, where is the condition here and how the system understand for this field RV45A-KWMENG it has to disable. I think we need give the condition as if RV45A-KWMENG....... Another one if iam not wrong we need check that it has to be done in VA01 and VA02 then only this condition should be executed.
IF VBAK-AUART EQ 'XXX' OR VBAP-PSTYV EQ TANN .
IF SCREEN-NAME = 'XXX'.
SCREEN-ACTIVE = 0
ENDIF.
ENDIF.
Please suggest me the better way how can i do it in the coding.
Awaiting for ur prompt reply. -
How to include new fields in PRICAT
Hi,
My aim is to import a new field to the PRICAT price catalogue, and be able to
maintain this field in transaction W_PRICAT_MAINTAIN.
I have entered the new field in table PRICAT_K003 (using an append structure),
and have used the Badi implementation WRF_PRICAT_DIALOG to include the new field in the ALV report definition for transaction W_PRICAT_MAINTAIN. For this purpose I also included the field in structure WRF_PRICAT_K003_STY.
However, when trying to make the necessary changes to copy the field content from PRICAT_K003 to the new screen field, I encounter a few problems.
For this I have created a new Badi implementation for Badi definition
WRF_PRICAT_POOL, method IF_EX_WRF_PRICAT_POOL~EXTEND_ARTICLE_MASTER.
This method uses parameter io_inbound_item (type ref to CL_INBOUND_ITEM). The field doesn't seem to be visible in any of the available structures in this method. I have attempted to include the new field in some of the other structures (in addtion to WRF_PRICAT_K003_STY), but have been told by the system not to do this.
Any suggestions on how to solve this problem?
If there is anybody out there who have a description on how to import new fields
into PRICAT and further on to the article master, I would very much appreciate if you could pass it on to me.
Best regards,
Per Erik FjeldeHi,
I have a similar problem with inbound pricat. I extended PRICAT_K003 with a few custom fields. These fields are filled using a BAPI table extension and implementing IF_EX_PRICAT_IN_EXTIN. The fields show up correctly in W_PRICAT_MAINTAIN and are also filled when I look in the database table. But when I create an article master from an entry in the pricate catalogue, all custom fields are cleared. I wanted to use IF_EX_WRF_BADIPRE_POST_MAT~PRICAT_PRE_POSTING_PROCESS to transfer the custom fields to MARA, but the incoming structures of the method only include blank custom fields.
So I found IF_EX_WRF_PRICAT_POOL, but it's methods include only structures which are not extendable. So I don't see how I can preserve the data in my custom fields.
Per Erik, have you found a solution for your problem?
Is there anybody else out there who knows how to transfer custom fields from the price catalogue to material master data?
Best regards,
Holger Merk -
Table Name For 'Picked Quantity' Field in VL03 Transaction
Dear All,
I am not able to find out 'Picked Quantity' Field in VL03 Transaction.Can anybody provide me Table name and field name for the same.
Regards,
MayankHi Mayank / Masha.
Your requirement is to find out the picked quantity for the delivery document.
Please note that this value can never be found from any table & what you will find are only structures.
For this you need to use / run a function module to fetch the Picked Quantity
Functional Module: WB2_GET_PICK_QUANTITY
Goto Tcode SE37 & enter the function module.
Further enter the delivery details in the screen
I_VBELN - Delivery Number
I_POSNR - Item Number
And Execute.
E_PIKMG - the picked quantity.
If you require to find picked quantity for any report you can very well ask your ABAPer to include this function module in your program
Hope this solves your requirement
Regards,
Dhananjay -
Include new field in dynamic selection in fbl1n
Hi Guys,
I want to add a new field in dynamic selection in tcode FBL1N.
Regards,
H.SathiskumarHi Sathiskumar,
Here are general instructions for adding new fields to the dynamic selection:
1) Call Transaction SE36
2) Enter logical database DDF, KDF or SDF (for FBL5N, FBL1N, FLB3N)
3) Menu -> Extras -> selection views
4) Here you can find 2 origins of the view (SAP and CUS).
The standard view SAP is used. Create your own using view CUS. First copy the view SAP.
On the left side are the functional groups.
01 Customer master => fields from table KNA1
02 Company code => fields from table KNB1
03 Documents => fields from table BSID
Only those fields from these tables can be used for dynamic selection
5) To get another field from e.g. table KNB1 for the dynamic selection double click on the right side on
table KNB1. The field in the lower area will be changed. Search for the desired field and enter a 03
in front of the field. Save.
6) Test in your report.
Note: Not every table and field can be used as dynamic selection. It is also necessary that the report
allows selection for that field."
Furthermore I suggest You to have a look at the note number 310886 that can be useful.
Customers: logical database: DDF
Permitted tables:
KNA1, KNB1: All fields are permitted that are contained in the VF_DEBI view. If necessary, you have to
include additional fields in the view fields category using Transaction SE11.
I hope this information may help you in resolving the reported issue.
Regards,
Emoke -
Defining a new quantity field in SD
Hi,
I added a custom Z....... field to VBAP table . I want
this field to be assgined to a user-defined CO-PA quantity field
so as to be accumulated for some analysis. However, when I run KE4M
(assign SD qty fields-CO-PA Qty fields) transaction, I can not
see my user-defined SD field in the available SD quantity
fields.
Is that possible to make such an assignment? or is there any other way to carry a custom quantity field from SD to PA?
thanks in advance
ihsanhi mukund,
I have an append structure including some custom fields for characteristics and I can use them properly. and I added my custom quantity field of data type FLTP in this structure, however, it is not listed in ke4m. Do I need any other append structure for quantity fields. -
Currency and Quantity fields in Nested Table
Hallo Experts,
I have created a Interface with import Sturcture SLS_PRT_COM. This Sturcture have many nested Sturctures. Now I created a Table type ZEBFO with line type VBDPA. VBDPA has many currency and quantity fields such like GEWEI.
Now I have created internal Table of ZEBFO.
Declare the nested Quantity field in the Currency/Quantity Fields section, using the autofiller (the buttons to the right of the field).
Create an adobe form for it and a program and execute it.
Dump
The following syntax error occurred in program "/1BCDWB/SAPLSM00000034 " in
include "/1BCDWB/LSM00000034F01 " in
line 1769:
"Field "VBDPA-GEWEI" unknown. "."
can somebody help me what shall I do.
Thanks
Best regards
Waseem Rana
Edited by: ranawaseem165 on Feb 17, 2012 9:14 AMHi,
When Creating a Structure ,include currency and quantity Fields in the same structure and Refere those as currency and
Quantity Fields.
In the Form when click on Currency/Quantity Fields,they automatically visible and you can add them .
Thanks.
uma -
Quantity field in Asset Master
Dear All,
We have created one Asset e.g. "Drawframe" which includes the total acqusition value of 10 Drawframes i.e. if 1 drawframe is of 1000 Rs/- then we have included 10,000 Rs (1000*10) in single asset "Drawframe".
Now my query is:
When I sell one drawframe then how would I be able account it in Asset accounting, because I have a single asset with combined drawframe values.
I saw quantity field in the Asset Master. Please let me know if the use of this field in my case.
Regardshi
check out this SAP explanation for that field
Quantity
Quantity that the system manages on the asset
Use
For assets in which a base unit of measure is entered, you can enter a quantity when you post acquisitions and retirements. The system then updates the asset according to this quantity when you post, based on the debit/credit flag of the transaction posted.
In addition, you can already specify a quantity when you create a new asset master record. However, any quantity you enter in master data maintenance (such as 1) is added to any quantity that is entered in the acquisition posting. -
Hi gurus,
I have one quantity field NSOLA in LTAP table for that fields there is reference field ALTME.
Now i am generating one ALV report.In that field catalog i mentioned as
wa_fieldcat-fieldname = 'NSOLA'.
wa_fieldcat-tabname = 'T_OUTPUT'.
wa_fieldcat-seltext_l = 'Quantity'.
wa_fieldcat-qtabname = 'LTAP'.
wa_fieldcat-qfieldname = 'ALTME'.
wa_fieldcat-col_pos = 5.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
like this, even thogh in o/p i get as 1.000 like that but i want the quantity as 1.
Please suggest me how to do this.
Thanks in Advance
Thanks and Regards,
Siri.....Please check it
TABLES : mara.
DATA : BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
brgew TYPE p DECIMALS 0, " this qty file for mara table
sell(1),
END OF itab.
INCLUDE icons.
TYPE-POOLS : slis.
DATA : t_fieldalv TYPE slis_t_fieldcat_alv,
t_sort TYPE slis_t_sortinfo_alv WITH HEADER LINE,
import_variant LIKE disvariant,
xrepid LIKE sy-repid,
layout TYPE slis_layout_alv,
table TYPE c,
dbcnt TYPE i,
dbcntr(10) TYPE c.
DATA : events TYPE slis_t_event WITH HEADER LINE.
START-OF-SELECTION.
CLEAR : itab,itab[].
SELECT * FROM mara INTO CORRESPONDING FIELDS OF TABLE itab WHERE
matnr = 'A036119719501003'.
IF sy-subrc = 0.
PERFORM initial_alv_fieldcat CHANGING t_fieldalv[].
PERFORM layout_alv CHANGING layout.
PERFORM alv_display
TABLES itab
t_fieldalv
t_sort
USING 'Weld Process'
dbcntr
'Weld Process'
' ' "'status'
layout "'layout'
' '." usercommand
ENDIF.
*& Form initial_alv_fieldcat
text
<--P_T_FIELDALV[] text
FORM initial_alv_fieldcat CHANGING rt_fieldcat TYPE
slis_t_fieldcat_alv.
DATA: ls_fieldcat TYPE slis_fieldcat_alv.
DATA: i_color TYPE slis_t_specialcol_alv WITH HEADER LINE.
DATA:cntr TYPE i VALUE 1.
CLEAR : rt_fieldcat,rt_fieldcat[].
DEFINE fieldcat.
ls_fieldcat-fieldname = &1.
ls_fieldcat-seltext_m = &2.
append ls_fieldcat to rt_fieldcat.
END-OF-DEFINITION.
fieldcat 'MATNR' 'MATNR'.
fieldcat 'BRGEW' 'BRGEW'.
ENDFORM. " initial_alv_fieldcat
*& Form layout_alv
text
<--P_LAYOUT text
FORM layout_alv CHANGING p_layout TYPE slis_layout_alv.
p_layout-box_fieldname = 'SELL'.
p_layout-colwidth_optimize = 'X'.
p_layout-zebra = 'X'.
ENDFORM. " layout_alv
*& Form alv_display
text
-->P_ITAB text
-->P_T_FIELDALV text
-->P_T_SORT text
-->P_0111 text
-->P_DBCNTR text
-->P_0113 text
-->P_0114 text
-->P_LAYOUT text
-->P_0116 text
FORM alv_display
TABLES p_i_weldnew
p_t_fieldalv
p_t_sort
USING p_grid_title
p_count
p_title
p_status
p_layout
p_usercommand.
CONCATENATE p_title ' -
' p_count INTO sy-title.
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 = p_status
i_callback_user_command = p_usercommand
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
i_grid_title = p_grid_title
I_GRID_SETTINGS =
is_layout = p_layout
it_fieldcat = p_t_fieldalv[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = p_t_sort[]
IT_FILTER =
IS_SEL_HIDE =
i_default = 'X'
i_save = 'A'
IS_VARIANT =
it_events = 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
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = p_i_weldnew.
ENDFORM. " alv_display -
Incorrect result of multiplication for quantity fields,coverting LB to KG.
Hi All,
The requirement is to convert LB(pounds) to KG.The formula goes as follows.
l_ntgew = vbap-kwmeng * w_mara-ntgew * l_zcazz .
l_brgew = vbap-kwmeng * w_mara-brgew * l_zcazz .
where kwmeng = '1' is ordered quantity,w_mara-ntgew = '0.157' is the net weight from mara and l_zcazz ='0.454' is the conversion factor from LB to KG.
This information is for material mara-matnr = '100014609'
The result I am getting is l_ntgew = '71278.000' which incorrect.
Actual result is = '0.071278' .
Similar issues with l_brgew.
The same code works fine in a custom program but the requirement is to modify userexit 'userexit_check_vbap using us_dialog' within include 'MV45AFZB'.Here it fails completely. We have tried all types of field declarations, be it float or packed or ntgew_ap(quantity field).
Please help.Its urgent.Full points will be awarded to the correct solution.
Thanks,
Shamia.VBAP-KWLMENG is a quantity field associated with unit VBAP-VRKME. (sales unit)
Try to use FM to convert quantithy from sale unit to base unit
call function 'MD_CONVERT_MATERIAL_UNIT'
exporting
i_matnr = vbap-matnr
i_in_me = vbap-vrkme
i_out_me = mara-meins
i_menge = vbap-kwlmeng
importing
e_menge = <qty in base unit>
exceptions
error_in_application = 1
error = 2
error_message = 3
others = 4.
Then multiply by <b>mara-ntgew</b> giving a result in unit <b>mara-GEWEI</b> then convert from this unit to KG. (same FM)
Regards -
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 -
Quantity fields not getting displayed in the second total row
Hi,
As per the requirement I have to display 2 total rows for an ALV report using CL_GUI_ALV_GRID. I am able to get the first total row properly using method get_subtotal(). However for the next total row only the character fields are getting displayed and the quantity fields are coming blank.
The second total row will have different values based on a formula.
Please help me out in resolving the issue.
Thanks,
AbhishekYou can provide first row as the SUBTOTAL and next row as the TOTAL.
Get one extra column on which you can do the SUBTOTAL.
Regards,
Naimesh Patel -
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. -
Make quantity field of Free goods as non-editable.
Hie!
I have free goods scheme of 9 + 1 .If quantity of main material is 10 then it will split into 9 + 1 where 1 is free of cost.
While making the sales order the free goods quantity field is editable. So the users are able to change the free goods quantity. I want to make this field as non-editable.
Please suggest how to do this.
Thankyou.Hi Pallavi
If you change the manual qty which is automatically determined by the system then there will be a message thrown by the system
Suppse in your case if 9+1 you change the qty manually to 2 from 1 there is a message V1 no 737 thrown by the system
You need to change the message class thro ABAP development only not possible thro customization
Not only this in delivery also it is possible to change the free qty and this also has to be controlled by the ABAPer only
Regards
Raja -
Include A Field in ALV which is not in data dictonary.
Hi all,
Im doing ALV report.
in that i need to calculate the gross price.
so i've to take difference of two fields & store it in a variable.now i want to know how i should display this field in alv.
Example:
v_gprice = i_tab-netwr - i_tab-wavwr.
i want to display this field(v_gprice) in my output along with other fields.
i moved this field to that i_tab.but im not getting the result.it shows dump.hii
just include that field in your internal table , and while display give perticular column no. and filed value , if u r using it without merge.
chk the following code
OUT TYPE P DECIMALS 2,
OUTINR TYPE P DECIMALS 2,
END OF ITAB.
LS_FIELDCAT-TABNAME = 'ITAB'.
LS_FIELDCAT-FIELDNAME = 'OUT'.
FLDNAMES-FIELDNAME = 'OUT'.
LS_FIELDCAT-COL_POS = 22.
LS_FIELDCAT-KEY = ''.
LS_FIELDCAT-KEY_SEL = 'X'.
LS_FIELDCAT-SELTEXT_L = 'OUTSTANDING AMOUNT'.
LS_FIELDCAT-datatype = 'CURR'.
LS_FIELDCAT-DO_SUM = 'X'.
LS_FIELDCAT-cfieldname = 'WAERK1'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT .
LS_FIELDCAT-TABNAME = 'ITAB_VBMTV'.
LS_FIELDCAT-FIELDNAME = 'OUTINR'.
LS_FIELDCAT-COL_POS = 24.
LS_FIELDCAT-KEY = ''.
LS_FIELDCAT-KEY_SEL = 'X'.
LS_FIELDCAT-SELTEXT_L = 'OUT IN INR'.
LS_FIELDCAT-DO_SUM = 'X'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT .
Maybe you are looking for
-
How to connect a home Ethernet network and Time Machine?
My home is wired for Ethernet, but I cannot figure out how to make it active. Currently I have my cable modem connected to a Time Machine. Then, the Time Machine is connected to the Ethernet lines that run through my house. If I try to connect my lap
-
Firewire 400 and 800 won't work
Any trouble shooting tips I have a terabyte maxtor one touch. I've shut down unpludded all and started plugging in one at a time no luck. usb works fine.
-
Hello friends, I need one sample report of production recory. So please pass it to me if someone have. Thanx & Regards, Rahul Talele
-
How to change field in runtime at update query
hi buddys i have to change the particular field during runtime how is it possible sample : UPDATE zmpq_qcchk_hdr SET (field) = i_hdr-ind1 WHERE zcust = i_hdr-zcust AND zns = i_hdr-zns AND zpgma = i_hdr-zpgma
-
the only way that I can then use Firefox is to reboot the system.