Quantity field is not getting as an mandatory field.
Hi all,
when I try to add a material without quantity field it is allowing me to add in the order.
I have Item categeory TAN for which I have assigned incompletion procedure 20 which has KWMENG field for screen PKAU and warning indicator is set.
Despite of this I am able to enter material without quantity.
Is there any other setting I am missing please guide.......
Regards,
Rathan
Hi Mr.Rathan Kumar
As far as I know for Item Incomplete procedure I have added field "KWMENG" with
Warning Indicator set but even then iam not getting error when entering material
with out quantity.
Pls be informed that SAP is giving the option of warning only for Incompletion procedure not error
This is because SAP allows you that there will be some fields which will be incomplete during creation say PO number or order reason in return order That information may not be available during creation but can be filled later in change mode in VA02 transaction on a later date
It is not logically correct to stop with error if any data is incomplete during creation itself
Coming to your issue how we will be doing a sales order
We will give order type then sales area and sold to party and PO number ( if reqd )
Then the materail and qty
Say you are entering material A then not entering the qty pressing enter
System will give warning message (even without the incompletion log set as per your confiuration)
Check that message no if V4 message type in t code OVAH you can convert the message from warning to error
Try this (remove your incomplete config and try)
Otherwise you need to use userexit to throw error when the qty is not entered and if anyone is trying to save the order
My suggestion in earlier post actually does this only, in another way
For your exact requirement you have to use userexit
Regards
Raja
Similar Messages
-
Quantity field not getting displayed
Hi,
I am using Adaptived RFC Model to get Sales Order Data from SAP. The Sales Order BAPI that i am using is
BAPI_SALESORDER_DETAIL. I have mapped the SALESORDER table(SALESOPRDER Model node) to the TABLE UI element in my WebDynpro Application.
The problem i am facing is that while all the fields get displayed the Quantity value is not getting displayed in the appropriate column. I have checked the mapping and everything seems to be fine.
Also when i create a separate value node for the table and fill the value node from the model node the quantity value gets displayed then.
Please suggest what can be the possible cause for this.
Regards
Sidharth
Can you pleaseHi,
As far as I understand you display output parameters of BAPI, so check to following things:
1. After calling BAPI model method call invalidate on context node to update the values (e.g. outputNode.invalidaet() )
2. Check that you dispaly output parameters and not input parameters of the table. (e.g. You have Quantity and QuantityOutput node so connect you table field to QuantityOutput)
Hope it helps.
Victor. -
Dynamic mandatory field error message is not getting displayed in webui
Hi,
In Appointment if the importance is HIGH i made Location as mandatory.For this i enhanced BT126H_APPT/ApptDetails. In the get_p_location() method of BTACTIVITYYH i have written the code.
Now the problem is Error message for this dynamic mandatory field is not getting displayed in webui.
I debugged in DO_FINISH_INPUT error message is getting generated but it is not getting displayed in ui.
Can anybody tell where the problem is?
Thanks,
Hari.Hi Hari,
Really sorry do not know how to convert this nug file to text
How ever quick solution for your problem would be just keep your validation in 'DO_VALIDATE_INPUT' method of the view controller.
Means even if the User clicks on SAVE , Since it fails here , it would not allow you to go further.
Thanks,
Rajesh P -
Quantity field not getting update in PCA document for Goods Receipt
We have the Purchase Account activated for our company code.
For movement type 101 (Goods Receipt), I am getting the quantity field updated for GR/IR account and Stock Account (B/S item).
But the quantity field is not getting updated for the "Purchase Account" and the "other offsetting PL A/C).
Please advice whether I am missing something.
Regards
B.MohantyHi Aravind,
Check SAP notes 1063198 and 1117587.
FAGLL03 display quantity which is updated in FAGLFLEXA, BSEG is not
relevant in this case. This is clearly explained in the note 1063198.
The quantity posts through to FI on the 'goods receipt' items, but not on the
'invoice receipt' items.
In the FI normally the Quantity is not a 'real' important field, as it
is more related to the MM area.
But in the old 'Profit Center Accounting' and the old' Special Ledger'
the field has been important.
As the same logic of these areas to 'store' the Quantity is also used
in the NewG/L the field get only filled in the line, where it make
'sense' from our point of view, because only in the 'goods receipt'
lines a 'real' Quantity is posted to the system.
So as before in the PCA and SL, now also in the NewG/L the Quantity is
filled in the correct and important lines and postings.
In the BSEG ('old document segment table') the field is filled 'just'
as it is send to the FI, but this is not completely correct from the
business point of view.
This can also lead to issues with the reporting and summation to this
field. So with creating the new logic in the NewG/L the 'correct'
standard of the 'writing' for the Quantity has also been taken over.
So in the end, the update and display is correct according SAP standard behavior.
Actually,Quantities within G/L are never reliable,
because the purpose of FI is a view on the data according to amount
but not according to quantity.
In the FI normally the Quantity is not a 'real' important field, as it
is more related to the MM area.
I hope I could be of assistance.
Regards,
Fernando -
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 -
Picked quantity not getting updated in ERP outbound delivery
Hi All,
I have an outbound delivery which is replicated from ERP to EWM. I have confirmed the Warehouse task for picking & completed PGI in EWM system. The status update has taken place in ERP delivery (i.e ERP delivery status shows that goods movement is complete and the distribution status shows processing of the delivery in the decentralized system is complete). However the picked quantity (LIPS-PIKMG) is not getting updated in the ERP delivery. How do i make this happen?
Regards,
Smitha PaiHi Smitha
Picked Qty in ECC will never get updated when do the PGI in EWM. I think, this field is not designed when delivery is distributed as system assume picking will be done in other system in this case it is EWM.
But You can always refer VBFA (Document flow table) to identify the picked quantity if you are working z report or interface to send this information.
Thanks,
Jagdeep -
Rounding quantity field in scheduling agreement not considered in JITK
Hello ALL,
I would like to consult to you a scenario I am facing when it comes to creating a scheduling agreement (VA31) and maintaining a Rounding Quantity (field ABLFZ) in it.
When using the standard LZ type scheduling agremeent, the Rounding quantity is considered when creating a delivery in VL10.
However, when using the LZJ type of scheduling agreement, the Rounding quantity is NOT considered when creating a delivery in JITK.
Can you please tell me what causes the case in LZJ scheduling agreement?
Thank you all in advance.Hi,
This field is not available for Scheduling Agreement. It is only available for Purchase Order.
Even you will not get this in Field selection also. -
PO Custom Field not getting filled from Shopping Cart
Hi Gurus,
I am new to SRM. The requirement I had was to add a new field to the SC. I read several posts and articles on this but couldn't find the solution to it. I managed to do this modifying the corresponding structures in SRM and making the necessary changes in R/3 so the new filed can be seen in ME21/22/23N.
I checked Andreas Milbredt document to achieve it as mentioned:
Document: How to transfer custom fields from SRM to Backend.
http://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/20b36c12-685f-2c10-4fb4-ba2e0b969c27
After that, when I create a Shopping Cart, the value in the New field is not transferred to the Back end.
I coded the following BADIs and User Exits:
In SRM:
BBP_CUF_BADI_2 (MODIFY_SCREEN) ->To enable or disable the field depending on conditions. Works fine.
BBP_DOC_CHECK_BADI (BBP_DOC_CHECK) -> To do some checks. Works Fine
BBP_CREATE_BE_PO_NEW (FILL_PO_INTERFACE1) ->Here I fill structures BAPI_TE_MEPOITEM and BAPI_TE_MEPOITEMX. I added another u2018Xu2019 to indicate the new field to BAPI_TE_MEPOITEMX. But I think I am not doing it right. This structure BAPI_TE_MEPOITEM/X, does the order of the fields correspond to the order of the fields in any of these 3 structures (which I am using)?
INCL_EEW_PD_HISTORY_CSF
INCL_EEW_PD_ITEM_CSF
INCL_EEW_PD_ITEM_CSF_SC
I also checked the following link:
Map a custom SRM field to a standard field in R/3
In R/3 I populated the Exits Andreau2019s mentions on his article. Am I missing anything else?
Thanks & Regards,
Ernesto.Hi Ernesto,
You can find out how your BAPI structure is being populated (by generating the test data ) using FBGENDAT program and activating the BAPI_PO_CREATE1 (and you will need to set the parameter for the specified user id)... This will provide you ability to execute the BAPI offline and figure out what is happening...
Note 517767 - Generate test data for function modules
Things to look for, Is any of your custom fields quantity fields or integer?
Check out the following OSS note
Note 509898 - BAPI enhancement concept and Unicode
Also check out the following SDN Thread,
problem using BAPI_BUS2001_CREATE to create project definition
Check out a similar thread that we are discussing (for PR)
Custom Fileds Data Was Not Getting Updated In BAPI_PR_CREATE -
BAPI_SALESORDER_CHANGE Quantity in the sALES ORDER NOT GETTING UPDATED.
Hi Experts,
i am adding a new line item to the sales order with line item number and material number and QUANTITY.
by using BAPI_SALESORDER_CHANGE bapi every thing is geeting updated but QUANTITY field is not getting updated.
regards,
Jay Sawant.I m using this code..
Fill Line Item Details
fl_order_itm-itm_number = line_item + 1000.
fl_order_itm-material = mpn.
fl_order_itm-target_qty = qty.
fl_order_itm-sales_unit = unit.
APPEND fl_order_itm TO it_oditm.
Fill the Header Order Details
fl_order_itm_inx-itm_number = line_item + 1000. "added
fl_order_itm_inx-updateflag = 'U'.
fl_order_itm_inx-material = 'X'.
fl_order_itm_inx-target_qty = 'X'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = vbeln
ORDER_HEADER_IN =
order_header_inx = order_header
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
return = it_ret2
order_item_in = it_oditm
order_item_inx = it_oditx
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST = -
Sales Order is getting created without quantity field getting populated?
Hi All,
I am creating sales order with the help of IDocs. Here I am using the standard function module IDOC_INPUT_ORDERS.
But, when I execute this function module idocs are getting generated successfully but the quantity field is not getting updated. It is getting populates as Zero.
With in this function module there is a perform to check_idoc_orders, when the data flow comes to this point quantity field MENGE is getting cleared.
So just want to know what could be the reason why quantity field is getting cleared.
RaghuHello
Q1 )
If I change option 1 or 2 :
1 User decides on creation if material is missing
Answer:If Material is not Created the system wont allow to add you that material until unless you create the material master created.I am considering here that you don't have material master
2 Creation even though no material is available
Answer:It will allow you to create the work order.i am considering here that you don't have sufficient stock.
Q2) what should be the expected Status for Option 1 or 2.
Before Config it was showing
Status is showing Mat.availability not checked ( MANC ).
After Option 1 or 2, Expected Status ?
Answer: You need to enter value 02 on the Availability Check field on the MRP3 tab of Material Master via TC MM02.
you will be get Material committed MACM after Saving the Order.
Br
Rakesh -
Ordered Quantity does not get copied to Invoice by DIAPI
Hi All,
I am stuck with an issue in Invoice creation using DI API by code.The field Ordered Qty (DB Filed INV1.OrderedQty) does not gets copied to Invoice line from delivery lines. But while we add invoice from delivery >Copy To> AR Invoice , it gets copied to Invoice lines. This OrderedQty field is not exposed through DI API, so we cant set that field throgh code. What I do in Invoice creation code is as follows.
SAPbobsCOM.Documents oINV;
oINV = (SAPbobsCOM.Documents)
modups.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
oINV.CardCode = oDLN.CardCode;
for (int i = 0; i < oDLN.Lines.Count; i++)
oDLN.Lines.SetCurrentLine(i);
string str = oDLN.Lines.ItemCode;
if (i != 0)
oINV.Lines.Add();
//oINV.Lines.ItemCode = oDLN.Lines.ItemCode;
//oINV.Lines.Quantity = oDLN.Lines.Quantity;
oINV.Lines.BaseType = Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
oINV.Lines.BaseEntry = oDLN.DocEntry;
oINV.Lines.BaseLine = oDLN.Lines.LineNum;
taxcode = oDLN.Lines.TaxCode;
if (DeliveryExpenseCount > 0)
for (int i = 0; i < DeliveryExpenseCount; i++)
oDLN.Expenses.SetCurrentLine(i);
if (i != 0)
oINV.Expenses.Add();
//oINV.Expenses.ExpenseCode=i;
oINV.Expenses.ExpenseCode = oDLN.Expenses.ExpenseCode;
oINV.Expenses.LineTotal = oDLN.Expenses.LineTotal;
oINV.Expenses.TaxCode = oDLN.Expenses.TaxCode;
oINV.Expenses.BaseDocEntry = oDLN.DocEntry;
oINV.Expenses.BaseDocLine = oDLN.Expenses.LineNum;
oINV.Expenses.BaseDocType = 15;
int retVal = oINV.Add();
if (retVal != 0)
int lErrCode; string sErrCode;
modups.oCompany.GetLastError(out lErrCode, out sErrCode);
Any help will be appreciated..
DeepeshHi Gordon,
Thank you for your reply.But it didnt fix the problem.The only change of previous code with this one was oINV.Lines.Add() method is called in the last of the loop.But it wont fix issue.
Updated on 20/10/2011
I have found the issue.The issue is causing if we update the resulting invoice's expense lines.
If we copy the expense lines from delivery and update any line with an amount it works fine and resulting invoice has "Ordered Qty" in its lines. Code is
for (int i = 0; i < DeliveryExpenseCount; i++)
oDoc.Expenses.SetCurrentLine(i);
if (i != 0)
oINV.Expenses.Add();
string s = oDoc.Expenses.TaxCode;
oINV.Expenses.TaxCode = oDoc.Expenses.TaxCode;
oINV.Expenses.BaseDocEntry = oDoc.DocEntry;
oINV.Expenses.BaseDocLine = oDoc.Expenses.LineNum;
oINV.Expenses.BaseDocType = 15;
oINV.Expenses.LineTotal = oDoc.Expenses.LineTotal;
if (radioButton2.Checked == true && i == 0)
oINV.Expenses.LineTotal = oDoc.Expenses.LineTotal + Convert.ToDouble(txtExp.Text);
But if the delivery has no expense lines or we are adding a new expense line to the invoice while invoice creation from delivery , the resulting invoice does not have "Ordered Qty " in its lines..
Code is
if (DeliveryExpenseCount > 0)
oINV.Expenses.Add();
oINV.Expenses.ExpenseCode = 1;
oINV.Expenses.TaxCode = taxcode;
oINV.Expenses.LineTotal = Convert.ToDouble(txtExp.Text);
If I try to add lines
oINV.Expenses.BaseDocEntry = oDoc.DocEntry;
oINV.Expenses.BaseDocType = 15;
to the above code it may show either "Internal error" or " No matching records found".
Is this a bug in DI API? -
Component Required Quantity Field Mandatory In PM order
Dear All,
I want to make required quantity field as mandatory in PM order component tab.
Plz help
RgardsDear Friends,
Requirement for not changing the qty arises in the situtaion like,suppose a person has created the maint order for certain qty,and released either by him or by his superior.there is a possibility that component quanity can be changed by the lower level people.(like supervisor or technicinan).In this case ,it can be controlled by authorisation .ie Dont give order change authorisation to those people,so that componenet quanity cannot be changed by anyone other than authorised people.
This problem i am facing in my every projcet,and handling thro roles and authorisation only rather than going for making the quantity field mandatory with some devellopment and alll.
I hope it is clear.
Thanks and Regards
V.Dhanasekaran -
Time From field is not getting displayed in correct format in Activities
Hello Experts ,
We are facing one problem in UI , when we search for Activities in Web UI . In the field "Time From" we are not getting the time in correct format , ie is instead of getting time as say 13::38 we are getting time as 13::3 , but when we place cursor on it the field it shows correct format say 13::38.
Can any one suggest how to display in correct format ?
Regards
VinayakHi,
Its an SAP Product error.
Please check note 1151821 ,if you facing the greyed button in time.Also the other note 1136402 needs to be applied for time display issue
- Bobby -
Field in ALV not getting populated
Hi all,
I need some help. I am displaying an ALV with fields.
GROUP G/L ACCOUNT Local currency USD Period
100 10 5 5 12
100 11 6 4 12
now i have added an extra field TXT20 in the as last field of structure
GROUP G/L ACCOUNT Local currency USD Period TXT
100 10 5 5 12 aa
100 11 6 4 12 ab
TXT should come as 3rd coloumn in the output.
EXAMPLE:
GROUP G/L ACCOUNT TXT Local currency USD Period
100 10 aa 5 5 12
100 11 ab 6 4 12
I have changed the coloumn positions in the field catalog accordingly and I have not written or changed any select queries from earlier output.
now my problem is PERIOD field is not getting populated in the ALv,the data is visible in the IT_FINAL which I am passing to Reuse_alv_grid_display. the field catalog is also getting build properly.
so plz suggest some changes so that I can move ahead.Hi
I don't know what's the reason and now I have no environment to test it, but you can try other way:
1. define your fieldcate one by one as the sequence of your output like
GROUP G/L ACCOUNT TXT Local currency USD Period
In this situation, you needn't use component -- position of fieldcate structure. Pay attention to
fieldname in upper case.
2. If only doing step1 has no effect, then adjust your structure of internal table. Sequence your
component of IT_FINAL as the output field like step1.
If still no effect, please let me know. -
I am not getting the headings of the fields in ALV output.
I am not getting ALV out put but the headings of the fields in ALV output.
Please see my below code .
TYPES : BEGIN OF ty_zgxmit.
INCLUDE STRUCTURE zgxmit.
TYPES : END OF ty_zgxmit.
DATA : gt_zgxmit TYPE TABLE OF ty_zgxmit.
*& Form alv_display *
This subroutine is to display the out put in ALV. *
FORM alv_display .
Local data
DATA: y_x LIKE boole VALUE 'X'.
DATA: lt_fieldcat TYPE slis_t_fieldcat_alv.
DATA: lf_fieldcat TYPE slis_fieldcat_alv.
DATA: lh_index LIKE lf_fieldcat-col_pos.
For variant
DATA: ws_repid LIKE sy-repid,
g_save TYPE c VALUE 'A',
g_exit TYPE c,
g_variant LIKE disvariant,
gx_variant LIKE disvariant.
For 1st field.( RPT_LOC )
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'RPT_LOC'.
lf_fieldcat-tabname = 'GT_ZGXMIT'.
lf_fieldcat-ref_tabname = 'RPT_LOC'.
lf_fieldcat-ref_fieldname = 'ZGXMIT'.
lh_index = lh_index + 1.
lf_fieldcat-col_pos = lh_index.
lf_fieldcat-key = y_x.
lf_fieldcat-no_sum = y_x.
APPEND lf_fieldcat TO lt_fieldcat.
For 2nd field.( BAL_XMIT )
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'BAL_XMIT'.
lf_fieldcat-tabname = 'GT_ZGXMIT'.
lf_fieldcat-ref_tabname = 'BAL_XMIT'.
lf_fieldcat-ref_fieldname = 'ZGXMIT'.
lh_index = lh_index + 1.
lf_fieldcat-col_pos = lh_index.
lf_fieldcat-key = y_x.
lf_fieldcat-no_sum = y_x.
APPEND lf_fieldcat TO lt_fieldcat.
For 3rd field.( INC_XMIT )
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'INC_XMIT'.
lf_fieldcat-tabname = 'GT_ZGXMIT'.
lf_fieldcat-ref_tabname = 'INC_XMIT'.
lf_fieldcat-ref_fieldname = 'ZGXMIT'.
lh_index = lh_index + 1.
lf_fieldcat-col_pos = lh_index.
lf_fieldcat-key = y_x.
lf_fieldcat-no_sum = y_x.
APPEND lf_fieldcat TO lt_fieldcat.
For 4th field.( Z500_XMIT )
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'Z500_XMIT'.
lf_fieldcat-tabname = 'GT_ZGXMIT'.
lf_fieldcat-ref_tabname = 'Z500_XMIT'.
lf_fieldcat-ref_fieldname = 'ZGXMIT'.
lh_index = lh_index + 1.
lf_fieldcat-col_pos = lh_index.
lf_fieldcat-key = y_x.
lf_fieldcat-no_sum = y_x.
APPEND lf_fieldcat TO lt_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZJV_2245'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_zgxmit
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.
ENDFORM. " alv_displayYou can force the headings like so.
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'RPT_LOC'.
lf_fieldcat-tabname = 'GT_ZGXMIT'.
lf_fieldcat-ref_tabname = 'RPT_LOC'.
lf_fieldcat-ref_fieldname = 'ZGXMIT'.
lf_fieldcat-reptext_ddic = 'Whatever Heading'. "<- Right here
lh_index = lh_index + 1.
lf_fieldcat-col_pos = lh_index.
lf_fieldcat-key = y_x.
lf_fieldcat-no_sum = y_x.
APPEND lf_fieldcat TO lt_fieldcat.
Regards,
Rich Heilman
Maybe you are looking for
-
I've bought three different cables and now I have a dock. I have set it to tv out on and ask, and when i select a movie it says to atach video accessory so i do and nothing happens the screen stays the same! i've tried it on three different TV's and
-
How to use GUI_upload for Uploading a CSV file in Microsoft Excel.
Hi Guys, can anybody tell me how to Upload the CSV format file in Microsoft excel sheet? Thanks, Gopi.
-
Current VI's Path returns location of original source file, not running exe.
Running LV 2010. I have a VI that opens a PDF style manual when the user clicks a button. My development project is set up with a main project folder, and 3 sub folders called Source, Application and Installer. Of course, the source code is in the
-
How to call a function from a trigger in a forms
Hi, I have a conversion function already stored in Program Units. Now, how do I call it from a field trigger ? Thanks very much. Thuy null
-
How to align label text to the left in Spark Button (no "textAlign" style)?
Hi all, "textAlign" style is excluded for Spark Button, and probably for a good reason. [Exclude(name="textAlign", kind="style")] If I want to align Spark Button text label to the left, should I create custom skin to accomplish that? Something e.g: