VA01 - Need to display an error popup message on line item check
Hi All,
I'm working on a user exit (report MV45AFZZ, form routine USEREXIT_FIELD_MODIFICATION).
I already have all the logic necessary - the one final piece that is left is to display an error pop-up message if the line item quantity is less than a certain number.
The pop-up should display when the enter key is pressed in the quantity field. Also, the pop-up should display if the SAVE button is pressed.
I tried using
MESSAGE 'Please increase quantity' TYPE 'E'.
This worked, but unfortunately it caused VA01 to terminate when I click off the pop-up. This is strange, since type 'E', unlike type 'A', should not do that.
I also tried POPUP_TO_INFORM, but that's just an informational message which does not prevent saving.
Any ideas ?
Regards,
Roman D.
You can try this fm
CALL FUNCTION 'DD_POPUP_TO_CONFIRM_CANCEL'
EXPORTING
textline1 = text-902
textline2 = text-903
title = text-901
start_column = 25
start_row = 6
defaultpos = 'C'
IMPORTING
answer = cancel_rc.
CASE cancel_rc.
WHEN 'A'.
WHEN 'C'.
LEAVE PROGRAM.
WHEN OTHERS.
ENDCASE.
Based upon user inputs you can handle conditions (CANCEL_RC) accordingly.
Similar Messages
-
New error message :duplicate line item
Hi,
We have to add a new error message so that when we try to add a duplicate line item in our qty contract
1. we should not be allowed
2. we should get a error message u201Cduplicate line item not allowedu2019
How to achieve this
Thanks
ArunSearch this forum for "USEREXIT_SAVE_DOCUMENT" and "USEREXIT_SAVE_PREPARE".
-
Error in Project System Line Item report (CJI3, CJI4, CJI5, etc)
Dear Expert,
I am facing error for all PS line item report, for example: CJI3 .. When I tried to execute CJI3, the following is the error message (ABAP dump):
Does anyone experience similar problem?
How to fix this?
I search the Internet, but suspect is SAP Plant Maintenance cause the problem.
Header 1
Short text
Syntax error in program "SAPDBPSJ ".
What happened?
Error in the ABAP Application Program
The current ABAP program "RKPEP003" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
The following syntax error occurred in program "SAPDBPSJ " in include "DBP
" in
line 46:
"Field "GT_PM_ORDER_NETZKONT" is unknown. It is neither in one of the s"
"pecified tables nor defined by a "DATA" statement."
The include has been created and last changed by:
Created by: "SAP "
Last changed by: "SAP "
Error in the ABAP Application Program
The current ABAP program "RKPEP003" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
The following syntax error was found in the program SAPDBPSJ :
"Field "GT_PM_ORDER_NETZKONT" is unknown. It is neither in one of the
"pecified tables nor defined by a "DATA" statement."
Trigger Location of Runtime Error
Program RKPEP003
Include RKPEP003
Row 179
Module type (FORM)
Module Name %_INIT-GET
Trigger Location of Runtime Error
Program RKPEP003
Include RKPEP003
Row 179
Module type (FORM)
Module Name %_INIT-GETHi
could you check note 1747890 - OAA activated: Dump w/ MESSAGE_TYPE_X and OK 036 in LDB PSJ in case that provides solution to your problem?
cheers
panagiotis
ps...it looks like an issue in the logical database -
Message "No Line Items Selected"
Hi friends,
I am getting a message "No Line Items were selected" while executing CJI4.
Or even when in the transaction CJ40/CJ41, I am going thru ....Extra>Line Items.......
I have even implemented a note but still the same message is coming.
I couldnot figure out what "Line Items" the system is asking for.
Pl. help me out.
Abhra Bose
9930459159Refer to this note if applicable to your SAP pack: Note 1130282 - CJ40/CJ41: Plan line items not displayed.
1. Check planning profile assigned to your project definition.
2. Check Primary C.Element Grouping defined in the profile for Hierarchial Cost Planning. (if not defined use T.code CJR2 to build WBS detailed planning)
3. Check Number Range assignement for Detailed Planning for the controlling area and transactions assignment to intervals.
4. User Status maintained for WBS elements must allow "write plan items" business transaction.
Hope it all helps.
NChakoo
Edited by: NAKUL CHAKOO on May 27, 2009 9:56 PM -
How to display the sales order in the line item in FB03
Hi Experts,
I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
Thanks in advance.
RP.>
S. Rajesh Paul wrote:
> Hi Experts,
>
> I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
>
> Thanks in advance.
>
> RP.
I assume, you want to display sales order number in accounting document..... .
This is not something you can do it through the BADI..
You will have to change the G/L account field group (if it is already not there). you can then assign sales order number when posting to FI. In the field group, better choose sales order number and item number as optional fields.
If you can see the sales order field (may be empty) - you have to enter the sales order number when you post it.
Good luck -
Disable BAPI Error Popup Message
Does anyone know how to disable to the popup message that occurs in VC when a BAPI return an error message (message of type E)? We want to display a default error message to our users, instead of the cryptic ABAP error messages.
Maximum point awarded to the first correct answer.Method 1:
1. Drag datastore to your storyboard
2. Right Click datastore and select Configure Element
3. Click + button to Add new field
4. Enter Fieldname=SHOWPOPUP, Type=Boolean, Default=false
5. Click on dataservice that is feeding your message input and drag into the datastore
6. Right Click on this new data mapping line and select Confgure Element
7. Click on fx for the SHOWPOPUP field and set the value to TRUE.
8. Right Click your popup Form and select Configure Element
9. Click + button to Add new field
10. Select PUSHBUTTON control and enter field name OK
11. Double Click the OK fiend to open configuration popup
12. Select ACTION tab and change radio button to CUSTOM ACTION and enter name HIDEPOPUP
13. Click on fx on the VISIBILITY CONDITION of the form and select enter formula
14. enter STORE@SHOWPOPUP as the formula
15. Click on the OUT port of the popup form and drag line into the datastore
16. Right Click on this new data mapping line and select Configure Element
17. Click on fx for the SHOWPOPUP field and set the value to FALSE
18. Select the dropdown list for the EVENT NAME at the top of the Data Mapping and select HIDEPOPUP as the event.
19. Select LAYOUT tab and readjust the position of the form over the top of your output table.
NOTE: you may need to click the BRING TO FRONT icon in lower left with your popup form selected to insure that it is not hidden behind other objects.
Method 2 :
There is another option in System action (PROMPT) where u can pass the message that will prompt sucesss or failure message but you have to trigger it by using pushbutton.
Both the method worked for me sure it will work for u also .
Regards
Abdull Hakkim .K -
System exec displays an error popup
Hi community,
in certain cases I need to shut down and restart outlook. In order to do so I a batch file what I want to get rid of and do everything from LabVIEW. When I run the following snippet I receive an error popup complaining that the path is not valid. Which is true because on some computers outlook is in the program files folder, in some computer it is in the program files(x86) folder, but that should not be a problem because of the "IF EXIST". It works fine from the batch file.
Please help me out here.
Thanks!
ps: I know this is not the right way. I would like to use activeX but I have not found any way to actually start outlook. (I need to have it open, not just sending a mail with activeX)
Solved!
Go to Solution.My outlook.exe is in C:\Program Files (x86)\Microsoft Office\Office14. I got the error you mentioned when I ran your snippet (corrected for office 12/14), but got no error when I removed the third element from your array. It seems that %programfiles% is clever enough to get the program from (x86). I do have a C:\Program Files\Microsoft Office\Office14 folder, but there's no outlook.exe in it.
I found this on Stack Overflow
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice -
Error message: Missing line item for CO-PA characteristic line 0000000001
Hello, when posting is being done in automatic we are getting the following error message RW621 : 'Missing line item for CO-PA characteristic line 0000000001' and the document is not being created. I've filled in correctly the cost center / profit center for the line items. Any idea on why i'm getting this message?
Hello Prashanth ,
there are 2 structures I think you should fill
CRITERIA (ref structure BAPIACKEC9 )
VALUEFIELD( ref STRUCTURE BAPIACKEV9) in BAPi_ACC_DOCUMENT_POST
hope this helps... -
To throw error message on line item
Hi Experts,
I am using the user exit MV45AFZZ_MOVE_FIELD_TO_VBAP of sale order and it is getting triggered when we press 'ENTER' after filling the line item details of a sale order.
In my requirement i have to check some conditions on the line items and have to throw error message on that particular item sothat the user can delete that item and can proceed with the remaining.
But i am not able to throw error message on the particular item.
Please help me to throw error message on the particular tabstrip corresponds to the item.
Thanks in Advance,
ShajuYou can try this fm
CALL FUNCTION 'DD_POPUP_TO_CONFIRM_CANCEL'
EXPORTING
textline1 = text-902
textline2 = text-903
title = text-901
start_column = 25
start_row = 6
defaultpos = 'C'
IMPORTING
answer = cancel_rc.
CASE cancel_rc.
WHEN 'A'.
WHEN 'C'.
LEAVE PROGRAM.
WHEN OTHERS.
ENDCASE.
Based upon user inputs you can handle conditions (CANCEL_RC) accordingly. -
Value contract - Need restrcition of amount in PO for contract line item
Hello Guru,
I want to create a single value contract (WK) for multiple years .. say 3 years with target value as 450K USD with three line items for each year of value 150K USD. I would like that when buyers create a PO system should not allow them to create release purchase order for each line item more than 150 K for the year. Can somebody tell me how to configure that?
Here is my current config example :
Contract #ABC - Target value 450 with validity date 1/1/11 until 12/31/13
Line item 1 - 150 K
Line item 2 - 150 K
Line item 3 - 150 K
Now when I create PO with respect to contract#ABC line item 1 - system allows me to create PO with more than 150 K but gives me error message only if I exceed more than 450 K (because message 06/042 is error in config).
The requirement is to create a single contract for the vendor. Can somebody help me to figure out the way to restrict PO amount by each year limit by standard or custom configuration?
Thanks, Sachin
Edited by: sachindubey on Feb 29, 2012 10:15 PMHi,
As far as I remember it was simple logic!
Something like
Goto EKPO select KONNR ;
If KONNR != blank (Not equal to blank)
Do not allow to change condition type u201CPB00u201D
Also incorporate addition date check for your need -
Error while deleting contract line item
Hi All,
In ME32K when I try to delete the line item of the contract it goes to runtime error. Pls help me why I get that error.
It has 3 PO`s created in 2010.Error analysis
A RAISE statement in the program "CL_HANDLE_MANAGER_MM==========CP" raised the
exception
condition "FAILURE".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
How to correct the error
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"RAISE_EXCEPTION" C
"CL_HANDLE_MANAGER_MM==========CP" or "CL_HANDLE_MANAGER_MM==========CM005"
"GET" -
Display Vendor Code in FBL3N GL Line Items
I am working on ECC 6 Version. I have observed that in the GL Line Items list ( T code FBL3N) for GR/IR accounts, Vendor Code Field is blank for some of the line items. Mostly the document types involved are RE (MIRO) and WE (Goods Receipt) where vendor code field is blank in the GR/IR Account line item list.
Is there any way that I could update the Vendor Code in all the line lines displayed in the GL Line Items list (FBL3N).
Thank you for the reply.
GeminiHi Gemeni,
GO TO FIBF - SETTINGS > PRODUCTS > CUSTOMER
ASSIGN NEW PRODUCT AS ZOFF..OFFSETTING ACCOUNT DETERMINATION
AND ACTIVE THE PRODUCT
COME BACK
SETTINGS > P/S MODULE > CUSTOMER >
EVENT : 00001650............USE FM.......LINE_ITEMS_GET_GKONT
SAVE.....
GO TO GR IR ACCOUNT IN FBL3N AND CHANGE LAYOUT ASSIGN OFFSETTING ACCOUNT
YOU CAN GET OFFSETTING ACCOUNT NUMBER AS VENDOR IN FBL3N
NO NEED ABAP DEVELOPMENT
Rgds
SumaMani -
BSP error when clicking on line item in SUS :Buffer table not up to date
Hi Experts,
I'm having a problem in SUS Portal. When i click on a line item of a PO to display the actual line item or see more details, i get a buffer table out of date error. I saw a thread with a similar issue where it says problem resolved but haven't had any luck getting a response from the poster, so I'm putting this question out there to everyone.
Related Post
Buffer table not up to date in SUS
More details on error...
Exception Class CX_BBP_PD_ABORT
Error Name
Program SAPLBBP_PDH
Include LBBP_PDHU08
Line 81
Long text Buffer table not up-to-date {}
Regards,
JD
Edited by: julian.k. drummond on Apr 13, 2010 6:46 PMHi Julian,
Please give the system some time and try again. It should work.
Thanks
Hari -
Error whil creating Service Line item in ME51N using BAPI_PR_CREATE
Hi Experts,
Am able to create PR number using BAPI_PR_CREATE, but when am trying to create Service line item am getting acc assignment error please check my code and solve my issue. ..its very adj please help me .
DATA : t_bapimereqitemimp TYPE TABLE OF bapimereqitemimp ,
t_bapimereqaccount TYPE TABLE OF bapimereqaccount,
t_bapimereqaccountx TYPE TABLE OF bapimereqaccountx,
t_pritemx TYPE TABLE OF bapimereqitemx,
wa_bapimereqitemimp TYPE bapimereqitemimp,
pr_number TYPE bapimereqheader-preq_no,
wa_prheader TYPE bapimereqheader,
wa_prheaderx TYPE bapimereqheaderx,
wa_pritemx TYPE bapimereqitemx,
wa_bapimereqaccountx TYPE bapimereqaccountx,
wa_bapimereqaccount TYPE bapimereqaccount,
t_return TYPE TABLE OF bapiret2,
wa_return TYPE bapiret2.
DATA : t_bapi_srv_limit_data TYPE TABLE OF bapi_srv_limit_data,
wa_bapi_srv_limit_data TYPE bapi_srv_limit_data.
DATA servicelimitx TYPE TABLE OF bapi_srv_limit_datax.
DATA w_servicelimitx TYPE bapi_srv_limit_datax.
DATA : t_servicelines TYPE TABLE OF bapi_srv_service_line,
w_servicelines TYPE bapi_srv_service_line,
t_servicelinesx TYPE TABLE OF bapi_srv_service_linex,
w_servicelinesx TYPE bapi_srv_service_linex,
t_bapi_srv_acc_data TYPE TABLE OF bapi_srv_acc_data,
w_bapi_srv_acc_data TYPE bapi_srv_acc_data,
t_bapi_srv_acc_datax TYPE TABLE OF bapi_srv_acc_datax,
w_bapi_srv_acc_datax TYPE bapi_srv_acc_datax.
DATA : t_bapimereqitem TYPE TABLE OF bapimereqitem,
w_bapimereqitem TYPE bapimereqitem.
DATA : t_bapimereqitemx TYPE TABLE OF bapimereqitemx,
w_bapimereqitemx TYPE bapimereqitemx.
wa_prheader-pr_type = 'RV'."lv_doc_type.
wa_prheaderx-pr_type = 'X'.
wa_bapimereqitemimp-preq_item = '1'."wa_eban-item.
wa_bapimereqitemimp-pur_group = '100'."wa_eban-ekgrp.
wa_bapimereqitemimp-preq_name = 'E.R. TITTO'."wa_eban-afnam.
wa_bapimereqitemimp-short_text = 'AC Fitting'."wa_eban-txz01.
wa_bapimereqitemimp-material = ' '."wa_eban-matnr.
wa_bapimereqitemimp-plant = '1000'."wa_eban-werks.
wa_bapimereqitemimp-store_loc = 'ST00'."wa_eban-lgort.
wa_bapimereqitemimp-matl_group = 'Z13'."wa_eban-matkl.
wa_bapimereqitemimp-quantity = '1'."wa_eban-menge.
wa_bapimereqitemimp-unit = 'AU'."wa_eban-meins.
wa_bapimereqitemimp-deliv_date = '20140604'."wa_eban-lfdat.
wa_bapimereqitemimp-preq_price = '100'."wa_eban-preis.
wa_bapimereqitemimp-item_cat = 'D'."wa_eban-pstyp.
wa_bapimereqitemimp-acctasscat = 'K'."wa_eban-knttp.
wa_bapimereqitemimp-fixed_vend = ' '."wa_eban-flief.
wa_bapimereqitemimp-purch_org = '1000'."wa_eban-ekorg.
wa_bapimereqitemimp-currency = 'INR'."wa_eban-waers.
wa_bapimereqitemimp-pckg_no = '00000001'.
wa_bapimereqaccount-preq_item = '1'."wa_eban-item.
*wa_bapimereqaccount-serial_no = '01'.
wa_bapimereqaccount-gl_account = '0000002244'."wa_eban-sakto.
wa_bapimereqaccount-costcenter = 'OPSD'."wa_eban-kostl.
APPEND wa_bapimereqitemimp TO t_bapimereqitemimp.
APPEND wa_bapimereqaccount TO t_bapimereqaccount.
wa_pritemx-preq_item = '1'."wa_eban-item.
wa_pritemx-pur_group = 'X'.
wa_pritemx-preq_name = 'X'.
wa_pritemx-short_text = 'X'.
wa_pritemx-material = 'X'.
wa_pritemx-plant = 'X'.
wa_pritemx-store_loc = 'X'.
wa_pritemx-matl_group = 'X'.
wa_pritemx-quantity = 'X'.
wa_pritemx-unit = 'X'.
wa_pritemx-deliv_date = 'X'.
wa_pritemx-preq_price = 'X'.
wa_pritemx-item_cat = 'X'.
wa_pritemx-acctasscat = 'X'.
wa_pritemx-fixed_vend = 'X'.
wa_pritemx-purch_org = 'X'.
wa_pritemx-currency = 'X'.
wa_pritemx-pckg_no = 'X'.
wa_bapimereqaccountx-preq_item = '1'."wa_eban-item.
*wa_bapimereqaccountx-serial_no = '01'.
wa_bapimereqaccountx-preq_itemx = 'X'.
wa_bapimereqaccountx-serial_nox = 'X'.
wa_bapimereqaccountx-gl_account = 'X'.
wa_bapimereqaccountx-costcenter = 'X'.
APPEND wa_pritemx TO t_pritemx.
APPEND wa_bapimereqaccountx TO t_bapimereqaccountx.
**Service item limit
*wa_bapi_srv_limit_data-doc_item = '10'.
wa_bapi_srv_limit_data-overall_limit = '1000'.
wa_bapi_srv_limit_data-exp_value = '800'.
APPEND wa_bapi_srv_limit_data TO t_bapi_srv_limit_data.
*w_servicelimitx-doc_item = '10'.
w_servicelimitx-overall_limit = 'X'.
w_servicelimitx-exp_value = 'X'.
APPEND w_servicelimitx TO servicelimitx.
w_bapimereqitem-preq_item = '10'.
***w_bapimereqitem-preq_name = 'E.R. TITTO'.
***w_bapimereqitem-plant = '1000'.
***w_bapimereqitem-store_loc = 'ST00'.
***w_bapimereqitem-matl_group = 'Z03'.
***w_bapimereqitem-quantity = '1'.
***w_bapimereqitem-unit = 'AU'.
w_bapimereqitem-item_cat = 'D'.
w_bapimereqitem-deliv_time = '20140604'.
w_bapimereqitem-acctasscat = 'K'.
**w_bapimereqitem-consumpt = 'U'.
APPEND w_bapimereqitem TO t_bapimereqitem.
**w_bapi_srv_acc_data-doc_item = '1'.
**w_bapi_srv_acc_data-outline = '0000000001'.
*w_bapi_srv_acc_data-srv_line = '20'.
w_bapi_srv_acc_data-serial_no = '10'.
w_bapi_srv_acc_data-serial_no_item = 'D'.
*w_bapi_srv_acc_data-quantity = '1'.
*APPEND w_bapi_srv_acc_data TO t_bapi_srv_acc_data.
**w_bapi_srv_acc_datax-doc_item = '1'.
**w_bapi_srv_acc_datax-outline = '0000000001'.
*w_bapi_srv_acc_datax-srv_line = '20'.
**w_bapi_srv_acc_datax-serial_no = '01'.
**w_bapi_srv_acc_datax-serial_no_item = '01'.
*w_bapi_srv_acc_datax-quantity = '1'.
*APPEND w_bapi_srv_acc_datax TO t_bapi_srv_acc_datax.
w_servicelines-service = '00000001'.
APPEND w_servicelines TO t_servicelines.
w_servicelinesx-service = 'X'.
APPEND w_servicelinesx TO t_servicelinesx.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
prheader = wa_prheader
prheaderx = wa_prheaderx
IMPORTING
number = pr_number
TABLES
return = t_return
pritem = t_bapimereqitemimp
pritemx = t_pritemx
pritemexp = t_bapimereqitem
praccount = t_bapimereqaccount
praccountx = t_bapimereqaccountx
servicelimit = t_bapi_srv_limit_data
servicelimitx = servicelimitx
servicelines = t_servicelines
servicelinesx = t_servicelinesx
serviceaccount = t_bapi_srv_acc_data
serviceaccountx = t_bapi_srv_acc_datax.Hi,
Check this Thread , Thread1 . It might help you to resolve the issue.
Thanks
KH -
Error: PO has no line items
While trying to do goods receipt-purchase order, when I give the PO No. it gives an error saing PO has no line items. Whereas when the PO was created there was one line item.
can anyone guide pl.
rgdsIf you raise this question in MM forum, you might get the answer faster.
Regards,
Rajesh Banka
Maybe you are looking for
-
ITunes isn't recognising my iPhone, what should I do?
I've used multiple lightning cables and this hasn't worked, uninstalled ITunes and reinstalled it again and it still doesnt work, I'm not sure what the problem is and concerned that there could be a problem with my phone port as it has the capability
-
Plz correct me if I am wrong 1) Index cache is buffer where the index pages are located .and Index pages consists of pointers and these pointers tell you where the data blocks are located on the disk. 2) Data Cache is buffer where essbase created to
-
X6 setting default messaging application
Hey, I am a brand new X6 user, I am not event very familiar with Symbian S60 OS. I recently purchased the application known as ThreadedSMS because I like to see my text messages threaded as in conversation form. After I installed it, the original me
-
When is it a good idea, if ever, to use the font tag?
Wonder if there is ever a need to use the <font> tag since it is deprecated in HTML 3.801. <font size="3" color="red">This is some text!</font>
-
Invalid Drive Error 1326 When Installing iTunes for Windows
I used to have an external usb 2.0 portable drive. It since has been uninstalled and trashed. When I tried to log into iTunes it said that some of the files are missing and to uninstall. I uninstalled from Control Panel - itunes, quicktime, ipod- the