09-30-2008 5:14 PM
Hi All,
Can some one please help me on how to get a pop up window with message "Entry has been changed" on the UI change contents screen.
Thanks,
Veni.
09-30-2008 8:35 PM
Try this:
MESSAGE ID '00' TYPE 'I' NUMBER '398' WITH 'Entry has been changed' .
Rob
09-30-2008 5:25 PM
hi;
just use this fubction module it will definately help u:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = retfield
* PVALKEY = ' '
* DYNPPROG = ' '
* DYNPNR = ' '
* DYNPROFIELD = ' '
* STEPL = 0
* WINDOW_TITLE = WINDOW_TITLE
* VALUE = ' '
* VALUE_ORG = 'C'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB = MARK_TAB
* IMPORTING
* USER_RESET = USER_RESET
TABLES
value_tab = value_tab
* FIELD_TAB = FIELD_TAB
* RETURN_TAB = RETURN_TAB
* DYNPFLD_MAPPING = DYNPFLD_MAPPING
* EXCEPTIONS
* PARAMETER_ERROR = 1
* NO_VALUES_FOUND = 2
* OTHERS = 3
.
hope it had helped u
regards
rahul
09-30-2008 5:31 PM
I'm not sure what you really need but try:
MESSAGE 'Entry has been changed' TYPE 'I'.
Regards,
Valter Oliveira.
09-30-2008 5:53 PM
Hi All,
Here is my exact reqirement. Please help me.
MODULE user_command_0400 INPUT.
CASE ok_code.
WHEN 'CHAG' OR 'SAVE'.
CLEAR ok_code.
wa-kunnr = zsdcoop-kunnr.
wa-pfnum = zsdcoop-pfnum.
wa-trnum = zsdcoop-trnum.
wa-coopind = zsdcoop-coopind.
wa-subdate = zsdcoop-subdate.
wa-deldate = zsdcoop-deldate.
wa-reason = zsdcoop-reason.
wa-cyear = zsdcoop-cyear.
wa-actcode = zsdcoop-actcode.
wa-matnr = zsdcoop-matnr.
wa-camount = zsdcoop-camount.
wa-iamount = zsdcoop-iamount.
wa-oamount = lv_total - zsdcoop-iamount.
wa-coopref = zsdcoop-coopref.
wa-erdat = zsdcoop-erdat.
wa-omcnum = zsdcoop-omcnum.
wa-delflag = zsdcoop-delflag.
wa-ocflag = zsdcoop-ocflag.
wa-block = zsdcoop-block.
MODIFY zsdcoop FROM wa.
CLEAR: wa, zsdcoop.
// I need to display the message "Entry has been changed" here.
WHEN OTHERS.
cnt = 1.
SET SCREEN 100.
LEAVE SCREEN.
ENDCASE.
ENDMODULE.
Thanks,
Veni.
09-30-2008 6:03 PM
So, you can use what I said:
MODIFY zsdcoop FROM wa.
If sy-subrc EQ 0.
MESSAGE 'Entry has been changed' TYPE 'I'.
ENDIF.
Regards,
Valter Oliveira.
09-30-2008 6:13 PM
Hi Valter,
The message is comming as "No vendor specified". Do I have to clear anything. I do not know why that message is comming.
The code is:
MODIFY zsdcoop FROM wa.
If sy-subrc EQ 0.
MESSAGE 'Entry has been changed' TYPE 'I'.
ENDIF.
Thanks,
Veni.
09-30-2008 7:49 PM
09-30-2008 7:55 PM
Hello,
Veni I think that during execution the code you posted isnt being executed. Try to debug because that message must be somewhere else.
Bye
Gabriel P.-
09-30-2008 8:26 PM
Hi,
I debugged it and it is going to the METHOD set_msg_vars_for_clike and the text is going to 'c200' and then to sy-masv1.
1 METHOD set_msg_vars_for_clike .
2 DATA offset TYPE i.
3 DATA c200(200) TYPE c.
4 CLEAR message_object.
5 MOVE '00' TO sy-msgid.
6 MOVE '001' TO sy-msgno.
7 MOVE text TO c200.
8
9 MOVE c200(50) TO sy-msgv1.
10 IF sy-msgv1+49(1) IS INITIAL.
11 offset = 49.
12 ELSE.
13 offset = 50.
14 ENDIF.
After executing the line
MESSAGE 'Entry has been changed' TYPE 'I'.
small pop up window is comming with title 'information' and text 'No vendor specified'.
Can someone please help me.
Thanks,
Veni.
09-30-2008 8:31 PM
Hello,
I deduce that method is standard rigth???....check the parameters you are using... that will solve your issue.
Bye
Gabriel P.-
09-30-2008 8:35 PM
09-30-2008 8:35 PM
Try this:
MESSAGE ID '00' TYPE 'I' NUMBER '398' WITH 'Entry has been changed' .
Rob
09-30-2008 8:57 PM
Hi Rob,
Thank you. It worked. Now the message is comming properly.
Can you please let me know, why the previous code did not work and why this code worked.
I really appriciate your help.
Thanks,
Veni.
09-30-2008 9:05 PM
It appears to be an upgrade issue. You are probably on ECC and the others are on a lower version. Message 001 of message class 00 is now 'No vendor specified'.
You may want to create your own message in a Z message class.
Rob
Edited by: Rob Burbank on Sep 30, 2008 4:05 PM
09-30-2008 9:12 PM
Thank you Rob. It clarified my question.
Regards,
Veni.
Edited by: veni reddy on Sep 30, 2008 10:12 PM