Supress message in VA01
Hi All,
We are using z tables to get BOM data and not using standard tables. So I have to suppress the message that comes when it does not find any data in standard tables. The message is "The system did not find a valid bill of material". Which exit can i use for message handling for VA01.
Thanks in Advance,
Shailly
"The system did not find a valid bill of material".
Since this message is related to item, you can try with any of the following:-
1) User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAP
2) User-Exits in program MV45AFZB - USEREXIT_CHECK_VBAP
thanks
G. Lakshmipathi
Similar Messages
-
User exit for change warning message to Error message in va01
hi,
I want to change a warning message to as a Error Message in VA01 t-code,
how can i proceed for this. where i need to change
( without changing standard code)
thanks in advance.*& Report ZUSEREXIT *
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen. -
Different message in va01: Defect in ECC6 server while saving the sales order .
Hi ABAP gurus,
I am in to upgrade Project In ECC6 server I am getting the different message when saving the sales order in va01 compare to old sever(4.7) .
I have to make it to the same message as it is in the 4.7 server.
plz help me .
Regards,
vanamaala kashavenaHi,
IF xvbap-uepos IS INITIAL AND
xvbap-zzhrs_conf <> 'X'.
MESSAGE ID 'ZOTC' TYPE 'E' NUMBER '067' WITH
'Please select Hours Confirmed in Additional data B'(302) 'for item'(303) xvbap-posnr.
ENDIF.
this is the code in the PARTICULAR INCLUDE PROGRAM .
this is same in both the system ,but in ecc6 server,in message
popup it is not giving 'Please select Hours Confirmed in Additional data B' .
it is giving ORDER QTY FORMAT PERIOD (ITEM NUMBER(0010))
Regards,
vanamaala k -
To change the warning message to error message in VA01.
I want to change the warning message into error message in the standard VA01 transaction..
The steps I follow :
order type -->
enter
sold to part -->
ship to party -->
Purch order no -->
Req deliv date -->
Material -->
Order quantity -->
SU -->
enter.
The warning error dispayed is
No add. vendor / customer data maint. for 16320340 - please maintain J_1IMOCUST...
Want to change the above into error so that it shud not go further.Hi Arif,
Click on Save Icon.
System will give information: No add. Vendor / Customer data maint. For INJ95C01 -Please maintain J_1IMOCUST.<b> Ignore it.</b>
Result
System will calculate Price of the Material creates Schedule Lines and saves the document. System will give a message: Standard Order has been saved.
<b>**REWARD IF THIS HELPS WITH POINTS**</b>
Regards
AK -
SO items are refreshed after showing error message in VA01
Dear experts:
I have a problem in VA01, please kindly help me.
If we use the expression " message err_msg type 'E' " in userexit_save_document of MV45AFZZ , the system would show pop-up window with message "Item 000010 does not exist", then I can only quit VA01 screen and input SO data again.
Why the so items are refreshed and how to solve this?Thanks a lot!Hi,
Bcoz you are using Error ("E") message .if u will use meassage type 'W' or 'I'(information) it will not happend. use any one.
OR if want only error message u have to use in AT EXIT-COMMAND.
regds,
paras -
Urgent. doubt on supress message on forms
in form, Record bas been updated by another user. Re-query to see change. message came.
But the form is working with single user only...
Can we supress this message? is it possible...
if so tell me code and syntax...
regards
madhavaYou may be able to suppress some of the messages. Please see documentation for 'system.message_level'.
-
Supress message in status bar when using Call Transaction
Hi,
I have designed a RF program and I am using a BDC program to call LT11 transaction for confirming TO.
As this was a Flowrack storage type we will assign Source HU during TO confirmation. So I went for a BDC.
But after confirmation I am getting a Status message TO XXX confirmed in the status bar which is also displayed in the RF Screen for every line item confirmed. I want to supress this message.
I am getting this message in the messtab table as well by using Call Transaction. So how can I supress this message in Status bar.
Please let me know for more information.
Thanks,
Manoj.>
kaka79 wrote:
> I have designed a RF program and I am using a BDC program to call LT11 transaction for confirming TO.
> But after confirmation I am getting a Status message TO XXX confirmed in the status bar which is also displayed in the RF Screen for every line item confirmed. I want to supress this message.
> I am getting this message in the messtab table as well by using Call Transaction. So how can I supress this message in Status bar.
The CTU (CALL TRANSACTION ... USING ...) captures and stores all the messages into the message internal table (... MESSAGES INTO itab ...), but they are not displayed. So, if one of them appears in the status bar, it's because there is an additional MESSAGE ... statement in the program using the CTU. So look at it and add a condition before the MESSAGE statement to not output this exact message (click the message on status bar to get the message number, or debug the program to get it from the message internal table). -
Problem after raising an Error message in VA01
Requirement: I need to raise an error message when a particular item and sold to party combination is not having any live contract.
What I did: In USEREXIT_MOVE_FIELD_TO_VBED.
1. XVBAP having item details
2. VBAK structure having header details (I will get sold to party here)
3. VAPMA structure having the contract detail if any contract is exist.
Here I raised an error message and its getting raised properly.
Problem: Once the error message came I cant able to clear or delete that line item (in va01 screen), I am getting an error message No item category is available only I can go back without saving.
And I have tried in USEREXIT_MOVE_FIELD_TO_VBAP. Here I am not able to access the contract details from VAPMA (coming as blank)
Please help me to clear this problemUse the form-exit USEREXIT_MOVE_FIELD_TO_VBAP.
You can retrieve the VAPMA data as:
SELECT * FROM VAPMA WHERE MATNR = US_MATNR AND
VKORG = US_VKORG AND
TRVOG = US_TRVOG AND
VTWEG = US_VTWEG AND
SPART = US_SPART AND
KUNNR = US_KUNNR.
You will find this code in form VAPMA_SELECT in include MV45AFDB_VAPMA_SELECT -
Supress Message using Personlization in Oracle Forms
All,
Is there a way to supress the message using Personlization in Oracle Forms 11i.
Thanks,Hi;
Please check below thread which could be helpful
Forms Personalization Document
Re: Forms Personalization Document
Re: Form Personalization
Regard
Helios -
hi all,
i wanna add a userexit for VA01 in program MV45AFZZ to check if reference field in Accounting Tab is initial before i save this sales order.
when i add the belowing code in Form USEREXIT_SAVE_DOCUMENT,and press save buttom twice.
CONSTANTS: c_bukrs_vf TYPE vbak-bukrs_vf VALUE 'PK04',
c_auart TYPE vbak-auart VALUE 'ZOR',
c_ucomm TYPE sy-ucomm VALUE 'T\04',
c_text TYPE char40 VALUE 'Please enter Policy reference',
c_type TYPE c VALUE 'E'.
IF vbak-bukrs_vf EQ c_bukrs_vf
AND vbak-auart EQ c_auart.
IF vbak-xblnr IS INITIAL.
FCODE = FCODE_GLEICHE_SEITE.
MESSAGE c_text TYPE c_type.
ENDIF.
ENDIF.
there's a error message that 'item 00010 doesn't exist.',then i exit this transaction.
if i put these code in Form USEREXIT_SAVE_DOCUMENT_PREPARE, it works fine.Could anyone give me any suggestion for the reason?Thanks in advance.
Thanks and Regards.
Desmond.Yang
Edited by: desmondyoung on May 25, 2009 4:08 AMHi Yang
generally USEREXIT_SAVE_DOCUMENT_PREPARE is used when some validations are required before saving any sales order, here we are not updated any tables.
While USEREXIT_SAVE_DOCUMENT is used for saving sales order in some tables other then standard or some manipulations required before saving data to tables.
In your case you are just validating the sales order not manipulating data, hence go for USEREXIT_SAVE_DOCUMENT_PREPARE.
try and revert -
Geting abort message in VA01.
Hi
I need to validate Usage in the sales tab of a order(Header data).
Validation is to check the partners(National Accts) in the partner tab.
This validation is working fine during change, But in the creation (VA01) it gives an error message if parner is not exits. But after if u press enter it gives abort message saying the line item does not exits.
Pls help me.
How to get rid of this problem.
Thanks and Regards
Harish#1. you can use if condition to differentiate creates and changes to the sales order
if t180-trtyp eq 'H' - for create (VA01)
or t180-trtyp eq 'H' - for change of sales order (VA02)
#2. read xvbpa and yvbpa internal tables and design your logic around it.
read oss notes # 178328 on how to manipulate X and Y internal tables within MV45AFZZ program. -
Hi all,
my problem is:
I have used a push button to populate record in a block;
i have another push button to clear that clock before ay commit being made:
IF :SYSTEM.RECORD_STATUS IN ('NEW', 'INSERT') THEN
Go_Block('mob_app_conditions');
Clear_Block;
END IF;
However each time that i clear the block then i get the message
Do you want to save the changes you have made?
How can i supress this message<p>If you want to clear the block without commit, just modify your coding as follows:<br>
IF :SYSTEM.RECORD_STATUS IN ('NEW', 'INSERT') THEN<br>
Go_Block('mob_app_conditions');<br>
<b>Clear_Block(NO_COMMIT); </b><br>
END IF;<br>
</p>
Thanks,
<br>
Raj
<br>
<p>
http://www.oraclebrains.com</p> -
To supress messages in Costing Run
Hi
My requirement is to supress particular messages in costing run. I have achieveied it using BADI COPCMESSAGECONTROL
While running online and batch it is working properly but during parallel processing the messages are not supressed.Please help me on this.
Regards
StepHI,
Whats the CO-area currency type? I guess for the case you've mentioned there is no currency conversion possible with ex rate type "P", so ex. rate type "M" is taken as a 2nd best option.
To check if converison is possible use SE37, function module "convert_to_local_currency", use the "test" button (F8) and key in the data required for currency conversion (type of rate "P").
Best regards, Christian -
How to move cursor from Line item to kuagv-kunnr after E-Message in VA01
Hi,
Hope yiou can help.
I have set an error message to have sold-to and ship-to equal in some cases.
When the error message is displayed the cursor moves to the material field in the sales order leaving the header greyed out.
I need it in the sold-to party field (kuagv-kunnr) but I need to do this from USEREXIT_CHECK_VBAP.
Any ideas?
Thanks.
Bubblebut when i change the value in the item (F1 or F2) of master block and tab our the detailed block should clear but its not happening as i have used clear_block('detailed Block Name')What do you mean? The joining between master and detail block using one of the column (F1 or F2)? If yes. Then why are you changing the value of primary key? It should not allow you to change. Form will display error like Child records exists etc.
but when we open a form after entering the value in the Item of master block and shows error no data found.. (bcoz as no data to clear in the detailed block).Really i am confused now. Because NO_DATA_FOUND error comes when any SQL fires to fetch data from database. Not at the time of using CLEAR_BLOCK built-in. I did not understand what you are trying to achieve.
i mean when i change the values in the master block fields and tab out the detail block should get cleared and when we click again on the Go button the corresponding data should display.Why it should get cleared? I mean if you are entering the data in master block and records are already being fetched then what is the need to change the existing record.
If you mean to say that the record you already fetch through the button. Then you change the existing record and you are supposing that form should behave like the button is doing now if records exists then fetch otherwise should go to the detail block and user can enter the new values then you should give one more button on the form to clear the screen and use same method to fetch records which you used for the button as i showed above.
-Ammad -
Hi guys,
I've tried to display an error message and I know that it makes all field greyed out.
Is there a way there I can validate header data and prompt the user a message?
I've searched around but no avail. I've tried coding at MV45AFZZ, MV45AFZB but its not working as intended.
Thanks for your time!.Hi Rafael,
Sorry but it appears I can't use macro message in the exit. anyway yeah, solved the problem.
I coded the error message in userexit_save_document_prepare.
From SDN searches:
MESSAGE lv_b TYPE 'I' DISPLAY LIKE 'E'.
PERFORM folge_gleichsetzen(saplv00f).
fcode = 'ENT1'.
SET SCREEN sy-dynnr.
LEAVE SCREEN.
So far its working well.
Thanks for all the help.
Maybe you are looking for
-
Will you update WLWC.2 and WPRI.2 guide info?
-
Updating Batch classification data from MIGO for Purchase order
Hi, I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below, 1) Pass material and batch to MCH1 table to get CUOBJ_BM. 2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK. 3) Pass INOB-OB
-
How do I pass a form value to Google Analytics
I would like to pass a form value to Google Analytics. ie. if the user enters a value and submits the form, on the confirmation page I'd like to read the value and other form fields and pass those populate the Google Analytics tracking code ie. popul
-
How to open Sony SX100M3 Raw files in CS5? [was: Ryo]
This week, I bought a Sony SX100M3. I don't transfer my photos on Photoshop-Bridge CS5. Why? Update?
-
Entire album has turned orange in color
Anyone have any of your photos in iPhoto turn orange? Wow, just like real film...amazing - an entire album of 100+ photos is orange! Ideas why this would happen or ? Thank you!