Using FM CALL_MESSAGE_SCREEN leave the transaction
Hi Experts,
I am using the function module call_message_screen.
But whenever I select the ok button, the processing leave the transaction even I have another processing after it. I also tried calling another screen after FM but it still leave.
Can anyone knows the reason?
Poinst will be rewarded.
Thanks in advance...
Hello Salem,
This is due to the code that is excuted with in the function module...
My suggession is... Instead of using this function module... There is one more FM for this... I don't remember now...
But the Reason is due to the coding is in that way inside the FM. You can check it by debuggin the FM.
Reward If Helpful.
Regards
Sasidhar Reddy Matli.
Similar Messages
-
Using table CRMC_PROC_TYPE within the transaction launcher...
Table CRMC_PROC_TYPE contains all sorts of interesting fields, namely:
Number range Internal
Number rnage External
User stat procedure
Text Procedure
Partner determination Pocedure
Object type
Time and Action profile
Org Profile ID
This table is used by the oler Action Boxes (forerunner to the transaction launcher).
The key field for the above table is the Process type. I would like to forward the process type to the transaction and set this up within the transaction launcher, but so far all attempts have failed. The action boxes as used by the Winclient IC stil work, even in CRM 7, so one assumes that the same functionality can be configured in some way within the transaction launcher.
I have found documentation, comments, guides on this subject, so this is my plea to anyone who may know how to achieve this.
Jasonhi anindya,
the description of transaction type you can get it from table CRMC_PROC_TYPE_T
just query to this table by the transaction type
hopes it helps
cheers -
Find The Transaction for the given EXIT Name
Hi Friends,
This is my doubt,pls dont think in the other sense
I know how to find the EXIT for a given Transaction. My question is that IS THERE IS ANY WAY TO FIND THE TRANSACTION FOR A GIVEN EXIT NAME.Could any one help me out on this.My fuctional guys are giving me the EXIT names and asking me to find for which transaction the exit triggers.
Thanks & Regards
Vijaya Lakshmihi lakshmi,
try the following steps.
1. give the exit name in SMOD.(J45A0007) go to display mode
2. click component and take the exit name.(EXIT_SAPMJ45A_009)
3. here SAPMJ45A is the progam name, so that in SE38 give the progame name click the Where used button and select the transaction and deselect other checkbox.
4. you will get the transaction code.
Reward if found helpful.
Regards,
Boobalan Suburaj -
Hi all,
We want to prevent the user of using /O when putting the transaction ( we want to prevent new SAP windows) : is there any solution with the authorizations to make the system refuse actions beginnig with /O ?
Thank you in advance !!>
Hatem M wrote:
> Hi all,
>
> We want to prevent the user of using /O when putting the transaction ( we want to prevent new SAP windows) : is there any solution with the authorizations to make the system refuse actions beginnig with /O ?
> Thank you in advance !!
You can't, nor should you control this through authorisations. If you have an issue with users doing this then this is usually down to training.
rdisp/max_alt_modes controls number of gui sessions they can spawn per login session, but if you set this = 1 (standard is 6) then you will stop everyone on that app server creating new sessions -
How to maintain open change request control for the transaction MM02 & CS02
hi all...
can any one please let me know that, is there any BADI or Enhancement spot
where i can code for my desired functionality...
how to maintain open change request control for the transaction MM02 and CS02.
Desired Functionality:
The user wants to maintain a material, bill of material or a document.
On the initial screen of the respective transaction (MM02, CS02)
user enters a change request number.
The system checks whether the object record that the user wants to maintain
is already assigned to other change request numbers.
If this is the case, the system displays a warning, stating that there are
other open change requests for this master data record.
In addition, the system lists the relevant change request numbers.
The user can continue the maintenance or leave the transaction and first check
the mentioned change requests.hi satish thanks for reverting back
but sorry yaar given enhancement is not triggering...
but my requirement is:
- after executing the transaction MM02 & CS02.
- user inputs the data for Material Number and then he enters the Change Number.
- if the given Change Number is not maintained with the Material (i dont no
where/how this two fields are maintained internally), then it has to raise a
warning and it should list the existing Change Numbers for that perticular
Material. -
Enhancing the transaction code WS20000081 - Leave request
Hi all,
I have a requirement where i need to use the transaction WS20000081 for creating a leave for those employees who dont have ESS access.
I have created a Z program where the employee will login & then use the above mentioned T-code for creating leave
The problem I am facing is that this T-code fetches the personnel no & name of the SAP GUI login.
I need to change it to the personnel no & name of the employee who has logged in to the Z program.
Z program accepts personnel no for logging in.
Kindly help me....
Thanks in advance
Seema Peswani
SAP ABAP HRwith out seeing your code no one can answer your question. If its some standard program we could have looked in our systems and would have guided you...
why dont you save that login varaibles using set parameters and retrieve when needed using get parameters. Search with those key words in SCN you will find many examples. -
Call transaction & leave the current screen
Hi
I have created two Table maintanence Generator one for master table & second for transaction table. In my master table i have written code for calling the second TMG
ie, call transaction 'zhdms'.
but my problem is from my first TMG when im clicking on one button it calling the second TMG. & im making new entries over der & when i click on BACK button it will call the first TMG & again if i am clicking on Next button it will move on to second screen. but it is showing one information like DEveloper is locked. we can only display it. how to avoid this.
Can we avoid this using leave screen . How to write code for that.Hi ,
Try this
CALL TRANSACTION AND SKIP FIRST SCREEN.
Effect
Skips the first screen in the transaction (provided all the required fields have been assigned values by the SPA/GPA mechanism).
or
LEAVE TO { {TRANSACTION tcod} | {CURRENT TRANSACTION} } AND SKIP FIRST SCREEN.
Effect
Ends current processing and starts the (new) transaction tcod. All previous internal sessions are deleted from the stack and one new internal session is opened for the program of the transaction that was called. When this session has finished, the system returns to the next higher area menu.
If you specify CURRENT TRANSACTION (as of Release 6.20), the current transaction is called with exactly the same transaction code it was called with using CALL TRANSACTION or LEAVE TO TRANSACTION. With the exception of parameter or variant transactions, this is the transaction code that is also in the system field sy-tcode.. In the case of parameter or variant transactions, it is their transaction code, while sy-tcode contains the name of the implicitly-called dialog transaction.
Regards,
Chitra. -
How to find out the Transactions used per month & the USER who used that
Hi,
1)How to find out the Transactions used per month & the USER who used that?
2)and can i get the above same for minimum 20 month?
System : SAP- Enterprise Core Component.You can use my program...
*& Report Z_ABAP_TCODE_MONITOR
*****& Program Type : Report *
*****& Title : Z_ABAP_TCODE_MONITOR *
*****& Transaction code : ZTCODE_USAGE *
*****& Developer name : Shailendra Kolakaluri *
*****& Deveopment start date : 26 th Dec 2011 *
*****& Development Package : ZDEV *
*****& Transport No : DEVK906086 *
*****& Program Description : This program is to display
*List all tcodes executed during previous day.
*& Show the number of users executing tcodes
*& Modification history
REPORT Z_ABAP_TCODE_MONITOR.
*& List all tcodes executed during previous day.
*& Show the number of users executing tcodes
TYPE-POOLS : slis.
DATA: ind TYPE i,
fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
layout TYPE slis_layout_alv,
variant TYPE disvariant,
events TYPE slis_t_event WITH HEADER LINE,
heading TYPE slis_t_listheader WITH HEADER LINE.
*REPORT z_report_usage.
TYPES: BEGIN OF zusertcode,
date TYPE swncdatum,
user TYPE swncuname,
mandt TYPE swncmandt,
tcode TYPE swnctcode,
report TYPE swncreportname,
count TYPE swncshcnt,
END OF zusertcode.
*data : date type n.
DATA: t_usertcode TYPE swnc_t_aggusertcode,
wa_usertcode TYPE swncaggusertcode,
wa TYPE zusertcode,
t_ut TYPE STANDARD TABLE OF zusertcode,
wa_result TYPE zusertcode,
t_result TYPE STANDARD TABLE OF zusertcode.
PARAMETER: month TYPE dats DEFAULT sy-datum.
*PARAMETER: date TYPE dats.
*select-options : username for wa_usertcode-account.
START-OF-SELECTION.
PERFORM get_data.
PERFORM get_fieldcatalog.
PERFORM set_layout.
PERFORM get_event.
PERFORM get_comment.
PERFORM display_data.
FORM get_data .
*date = sy-datum - 2 .
After start-of-selection add this line (parameter Month required 01 as day).
concatenate month+0(6) '01' into month.
CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
EXPORTING
component = 'TOTAL'
ASSIGNDSYS = 'DEV'
periodtype = 'M'
periodstrt = month
TABLES
usertcode = t_usertcode
EXCEPTIONS
no_data_found = 1
OTHERS = 2.
wa-date = month.
*wa-date = date.
wa-mandt = sy-mandt.
wa_usertcode-account = username.
LOOP AT t_usertcode INTO wa_usertcode.
wa-user = wa_usertcode-account.
IF wa_usertcode-entry_id+72 = 'T'.
wa-tcode = wa_usertcode-entry_id.
wa-report = space.
ELSE.
wa-tcode = space.
wa-report = wa_usertcode-entry_id.
ENDIF.
COLLECT wa INTO t_ut.
ENDLOOP.
SORT t_ut BY report ASCENDING.
CLEAR: wa, wa_result.
endform.
FORM get_fieldcatalog .
fcat-tabname = 't_ut'.
fcat-fieldname = 'DATE'.
fcat-seltext_l = 'Date'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'MANDT'.
fcat-seltext_l = 'Client'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'USER'.
fcat-seltext_l = 'User Name'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'TCODE'.
fcat-seltext_l = 'Transaction Code'.
fcat-key = 'X'.
APPEND fcat.
ENDFORM.
*& Form SET_LAYOUT
text
--> p1 text
<-- p2 text
FORM set_layout .
layout-colwidth_optimize = 'X'.
ENDFORM. " SET_LAYOUT
*& Form GET_EVENT
text
--> p1 text
<-- p2 text
*FORM get_event .
events-name = slis_ev_top_of_page.
events-form = 'TOP_OF_PAGE'.
APPEND events.
*ENDFORM. " GET_EVENT
**& Form GET_COMMENT
text
--> p1 text
<-- p2 text
*FORM get_comment .
DATA: text(30).
text = 'Billing Report'.
heading-typ = 'H'.
heading-info = text.
APPEND heading.
*ENDFORM. " GET_COMMENT
**& Form top_of_page
text
--> p1 text
<-- p2 text
*FORM top_of_page .
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = heading[]
I_LOGO =
I_END_OF_LIST_GRID =
*ENDFORM. " top_of_page
*& Form DISPLAY_DATA
text
--> p1 text
<-- p2 text
FORM display_data .
sort t_ut[].
DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
is_layout = layout
it_fieldcat = fcat[]
i_save = 'A'
is_variant = variant
it_events = events[]
TABLES
t_outtab = t_ut
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. " DISPLAY_DATA -
How to use the functionality of Simulation for the Transaction MIRO
Hi Group,
I have a requirement to call SAP from MS Excel and check for the SImulation option as under:
The Excel will pass the values of Invoice Number, Posting date, PO number, PO Item number, Company code and etc., through the call of BAPI - 'BAPI_INCOMINGINVOICE_CREATE' in order to create Invoice in the SAP system.
But the above BAPI is creating the Invoices in SAP system. Rather, I need to just check(thru SIMULATION) the records and come back to MS Excel with the MIRO numbers that will be created and the errror messages that will be returned back.
In summary, I have to add two Buttons as:
POST : this has to create MIRO(invoice Numbers) in the SAP System(populating the Success/Error Messages by calling
the above BAPI - This functionality is working fine now
SIMULATE: this has to do same functionality of "POST" option but should not create MIROs in the SAP system
Currently I am not able to achieve this as the above BAPI is creating MIROs in SAP.
Kindly provide your inputs on how to go about incorporating the above SIMULATION functionality, by giving some simulation BAPIs that can be used for my functionality.
Thanks for your help in advance.
Regards,
Vishnu.Hi Group,
In continuation to my previous posting, I would like to give more inputs as under:
when I was using the BAPI - BAPI_INCOMINGINVOICE_CREATE (unless I commit the transaction), MIRO would not be created in the system.
Now, when I run the BAPI again with a different set of data, the Invoice Number is getting incremented by one.... this I dont need, if the Invoice is not committed and if I run the next time, I need to get the same Invoice Number....
How can I achieve this task?
Kindly let me know your inputs on this.
Regards,
Vishnu. -
How can I see all the Transaction Code that the client is using?
How can I see all the List of Transaction Code that the client is using?
Hello Sugauli,
Did you mean to ask
transaction types the client is using?
instead of
transaction code
If so, go to SPRO (in ERP system) and follow this path:
Sales and Distribution -->
Sales -->
Sales Documents -->
Sales Document Header -->
Define Sales Document Types
All the transaction types that are not used have an X in the column Block.
Easwar Ram
http://www.parxlns.com -
How can you keep your iPhone 4 (using it as my car's iPod) staying on the Audible app? When I leave the car and return to continue hearing a book, it has switched to iTunes.
The first time an iPhone is connected to iTunes that is used to sync with another iPhone or iOS device, you are prompted to transfer the backup for the other iPhone or iOS device or to set up the iPhone as a new iPhone.
The former does as provided - it transfers the backup for the other iPhone or iOS device to the iPhone replacing all data on the iPhone that is included with the backup being transferred. The latter does nothing allowing you to make your various selections for the iPhone sync preferences with iTunes.
This is designed to be done right away with a new iPhone.
If you don't have a backup for the iPhone with iTunes on your computer and don't have an iCloud backup that hasn't been updated since choosing to transfer the backup for your iPod Touch to the iPhone, the data that was on the iPhone is gone. -
Using the output of the transactions and saving them in a file using a prog
Hello Gurus'
Over the while i had been working on something which involves sending system data of some of the SAP BASIS transactions(ex SM21, ST02). I am wondering if there is any way using ABAP programming that calls the desired transaction(within the program), get's the output(as displayed if it had been run independtly) in any file types. As there are complex BASIS level details i am looking for the approach utilizing the already existing SAP outputs for the transactions.
Please help here.
Thanks and Regards,
PuneetYou might want to ask in the Basis forum. Maybe there is already some standard functionality available for what you're trying to achieve. Also check out this page: http://www.kabai.com/abaps/q.htm
-
Whats the use of having pragma autonomous transaction
Hii All,
The below is the procedure developed by our predecessors.We are making use of this for writing our debug messages.
I'm aware of pragma autonomous transaction ,this allows my code to run independently of the calling program.
But here we are just using utl_File and we are neither using any DML(Inserting error messages into a table) or DDL statements in the below code.
What is real use of having pragma autonomous transaction.???This code is working in the same way even without the pragma...I dont' find any difference .
Please let me know the use of having pragma autonomous transaction in the below procedure and where it actually comes into usage.
Create or replace Procedure logmesg
p_file_name in varchar2,
p_mesg_text in varchar2,
p_dir_path in varchar2 default fn_get_debug_path,
p_file_ext in varchar2 default 'log',
p_append_flag in varchar2 default 'Y'
) Is
pragma autonomous_transaction;
l_utl_file utl_file.file_type;
l_append_flag varchar2(1);
l_mesg_text varchar2(32000);
l_file_name varchar2(3000);
l_dir_path varchar2(32000);
l_delimeter_occurance number;
l_buffer_str varchar2(32000);
Begin
if trim(p_dir_path) is null then
l_dir_path := fn_get_debug_path ;
else
l_dir_path := p_dir_path;
end if;
l_mesg_text := p_mesg_text;
l_append_flag := nvl(p_append_flag,'Y');
l_file_name := p_file_name||'_'||to_char(sysdate,'ddmmyyyyhh')||'.'||p_file_ext;
l_append_flag := Case l_append_flag
When 'Y' then 'a'
When 'N' then 'w'
End;--l_append_flag
Begin
l_utl_file := utl_file.fopen(l_dir_path,l_file_name,l_append_flag);
Exception
When Others Then
l_utl_file := utl_file.fopen(l_dir_path,l_file_name,'w');
End;
if dbms_lob.getlength(l_mesg_text) > 32000 then
loop
exit when dbms_lob.getlength(l_mesg_text) < 32000;
l_delimeter_occurance := dbms_lob.instr(l_mesg_text,chr(32),1,1);
l_buffer_str := dbms_lob.substr(l_mesg_text,l_delimeter_occurance-1);
utl_file.put_line(l_utl_file,l_buffer_str);
l_mesg_text := dbms_lob.substr(l_mesg_text,l_delimeter_occurance+1);
utl_file.fflush(l_utl_file);
end loop;
end if;
utl_file.put_line(l_utl_file,l_mesg_text);
utl_file.fflush(l_utl_file);
utl_file.fclose(l_utl_file);
End logmesg;
/HerePlease let me know the use of having pragma autonomous transaction in the below procedure and where it actually comes into usage.Seems it is redundant in that procedure, and doesn't add any value, since the procedure isn't doing anything 'transactional'.
I would remove it. -
How to get default values while using the transaction "BP"
Hi Group,
I have a query on how to get default values while using the transaction <b>BP</b>?
The thing is:
when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
how can I achieve this?
So please kindly let me know the procedure to achieve this.
Thanks & Regards,
Vishnu.Hi,
The events of BDT can be used to default some fields on creating a partner.
For this create a function module for ISDAT. attach that event in BUS7.
In the ISDAT funtion modulethe following code should be used.
For example to set the nationality:
I_BUSDEFAULT-NATIO = 'DE.
CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
EXPORTING
i_busdefault = I_BUSDEFAULT
Regards, Smita. -
What are the transaction codes we use for LSMW in MM, SD, PP & FI/CO gnrly
Hi all,
What are the transaction codes we use for LSMW in MM, SD, PP & FI/CO generally?
Help will be surely rewarded.
Thanks and Regards,
Creasy> What are the transaction codes we use for LSMW in MM, SD, PP & FI/CO generally?
General threads about LSMW in MM, SD, PP, FICO will be locked and deleted generally.
> Help will be surely rewarded.
&********************** Please read "the rules" if found usefull... ************************&
Cheers,
Julius
Maybe you are looking for
-
Firefox will not start on limited accounts. It reports firefox already running. This happens even if no other users are logged on. Administrator accounts have no problems accessing firefox
-
OS X Mavericks Won't download correctly, app is gray?
I've been trying to download OS X Mavericks for about 3 hours now. It has been continously gray and unmoving. After reading several ways on how to download the update I tried every step offered. It also seems as though when downloading the X should b
-
Hi is there a way to have the query sentence box closed when i run a query in SAP BO thank you
-
I had to uninstall Lenovo Photo Master from my Yoga 3 Pro. I cannot locate an installer on my computer, or a link to download the software on the Lenovo website. Please help.
-
Removing unwanted items in photoshop elements 12
I have looked at a video tutorial for removing unwanted items in a photo and followed the procedure using the spot healing brush trying both content aware & proximity match types but for some reason once I've selected the item the program doesn't act