Assigning Transaction Code to each field in a report
Hi,
I have a query report which displays for example
Purchase Order, Material etc
Now via abap i want to assign a transaction code to both fields so when the the query runs and if the user double clicks Purchase Order it goes to ME23N if the user double clicks Material it goes to MM03 etc
<REMOVED BY MODERATOR>
Thanks
Adeel
Edited by: Alvaro Tejada Galindo on Mar 3, 2008 4:54 PM
In ur report use the following code:
DEFINE VARIABLES FOR GET CURSOR LOGIC.
DATA: fname(10), fval(10).
PROVIDE LOGIC TO MOVE THE CURSOR FROM REPORT TO TRANSACTION.
GET CURSOR FIELD fname VALUE fval.
PROVIDE THE MEMORY ID OF THE FIELD.
SET PARAMETER ID 'XYZ' FIELD fval. " WHERE XYX IS THE PARAMETER I.D OF THE PURCHASE ORDER FIELD( FRST 3 LETTERS OF THE FIELD )
PROVIDE LOGIC TO MOVE TO SCREEN.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDCASE.
Do the same for the Material Field.
<REMOVED BY MODERATOR>
Cheers,
Chandra Sekhar.
Edited by: Alvaro Tejada Galindo on Mar 3, 2008 4:55 PM
Similar Messages
-
Assign Transaction Code to own Vendor open items report
Hi,
I have created my own version of S_ALR_87012078 by copying the report and the form and making necessary changes in the report and form etc.
Now, I would like to assign a transaction code to my report, could you please let me know how I can do that.
Thanks,
SandeepHi Sudheer,
Thanks for the information.I have figured it as under,
SU53, create transaction code,
Select Transaction with paramters
Transaction: START_REPORT
Copy screen and values as in the standard program and replace standard report with your customer report name and it works brilliant. -
How to assign transaction code to a ABAP program?
Hi,
Need help in assigning transaction code to a ABAP program. Any method that will do the job?>
sainath raj wrote:
> hi
> within my knowledge
> Any ABAP program can have its own transaction code if and only if it is of type 'MODULE POOL' .
> An EXECUTABLE program cannot have a transaction code.
>
> So try with this .
> 1) Go to the attributes of the program and change the program as type module pool
> 2) then execute transaction SE93.
> 3) give the appropriate program name and assign a transaction code as ur wish.
Well Sainath,
What u said is not correct, an executable report can have a transaction code, difference between module pool and executable program is that u neccesarily need to have a tcode for module pool but that doesn't mean that only module pool can have tcode.
And secondly u should not answer these kind of simple questions, as people then continue posting simple questions without making an effort to serach for themselves.
кu03B1ятu03B9к. -
Is there any transaction code for uploding logo in ALV reports.
is there any transaction code for uploding logo in ALV reports.
hi,
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
endform.
Upload Logo for REUSE_ALV_COMMENTARY_WRITE
For those who wish to upload and use a picture in your ALV abap reports.
Steps for uploading Logo :-:
1. Goto the transaction OAER
2. Enter the class name as 'PICTURES'
3. Enter the class type as 'OT'
4. Enter the object key as the name of the logo you wish to give
5. Execute
6. Then in the new screen select Standard doc. types in bottom window
Click on the Screen icon
Now, it will ask for the file path where you have to upload the logo
7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
or
Import Logo and Background Picture for Reporting
In this step, you can import a customer-specific logo and a background picture into the R/3 System. These will be displayed in the header area of reports in HR Funds and Position Management.
From the SPRO:
HR Funds and Position Management --> Dialog Control --> Customize Reporting Interface --> Import Logo and Background Picture for Reporting.
Activities
1. Enter the Name of your logo/background picture as an object key in the initial screen.
2. Make sure that the class name is PICTURES, and the class type is OT.
3. Choose Execute.
4. Double-click the document type Picture on the Create tab page. A dialog box will appear in which you can enter the path in which the logo/background picture can be found.
5. Enter the path and choose Open. The logo will be uploaded into the current R/3 System. If the logo/background picture is to be transported into other systems as well, choose Transport.
6. Return to the initial screen and repeat the procedure after having entered the Name of your background picture as an object key.
Please note that the logo/background picture can only be displayed in ALV-based reports with an HTML header. Manually programmed reports such as business distribution plans are not based on the ALV.
If you have selected several initial objects, ALV-based reports in HR Funds and Position Management will automatically use a hiearchical-sequential display. A logo is not displayed here either. Note also that the logo cannot be printed (see print preview in program).
Make sure that the logo does not exceed a height of 100 pixels because it would mean that the header of the report will be scrollable. -
Restrict Transaction code by Each company
Hi Experts
Is there anyway to restrict or find the transaction code assign to that company.
I want to delete or restrict the t code for a user belongs to perticular compay, how can I do that?
I belive with organization level option , it can define access for company not t codes ?
Thanks in Advanced
PirozHi,
I am not sure if I fully understand your requirements. Authorization object S_TCODE is checked by SAP kernel before running any transaction. So you can define roles for each company. These roles will contain S_TCODE for each transaction required in this company. Then you will just assign a suer to correct role.
Your question is more related to security, so you should try security forum here on SDN.
Cheers -
Assign Transaction Code for Report Painter generated program
I am trying to assign a transaction code for report painter generated program... I assigned the transaction code in Development for the generated program but the program name changes in every system and I get a runtime error...
Can you please guide me on how to handle this problemhttp://dap-consulting.com/yahoo_site_admin/assets/docs/Report_Painter_Reports.47142031.pdf
Found my answer in the above link -
How to assign transaction code to report group.
hi experts,
i used report painter to create some reports and assign these reports to a report group, i want to assign a transaction code to the report group, how can i do that? hunger for your adivces, thanks a lot!!Hi Liu,
when you change an area menu, you can add transactions that launch ABAP/4 reports, Query lists or report writer's. You can use it for your purpose:
1. Enter transaction SE43 and change a Z* area menu (no matter which one, you will not change it in the end)
2. Click on "Add entry as subnode" or "Add entry at the same level" (no matter which one of them)
3. When SAP shows the popup "Add new entries", click on "Add report"
4. On the next popup, click on radio-button "Report Writer". Then you will be asked foe the code of the report group.
5. Then save, and... that's it! SAP will automatically create a transaction for the report group
6. Now you can cancel the changing of the area menu
I hope this helps. Best regards,
Alvaro -
How to assign FCT code to a field in module pool programming?
Hi All,
I have two fields on the screen. One is I/O field other is text field.
suppose i enter country code in I/O field i should get the name of country in text field. I want to assign fct code to I/O field.
But in attribute popup it's not allowing to assign fct to the field.
Please Help.
Regards,
Mohammed Quddus.Hi, as far as I know R/3 screen I/O fields does not have onkeyup event. So you can not achieve this without hitting enter. When you have to hit enter then no need for function code. You can not assign FCT for I/O fields. You can write required logic in your PAI after entering country code.
Thanks,
Siva -
Assign function code to a field in internal table
Hi all,
Can we assign a function code to one field in internal table so that we can use it as an user command in list display.
For ex:
data : begin of itab occurs 0,
check(1) type C,
num type I,
end of itab.
I am preparing a list display using WRITE statements.
I'ld like to update the checked value of check box as soon as the user selects a check box. So I would like to assign a function code to this check box. Then I can use AT user-command.Hi,
dinesh's apporach is not bad, but
1. the structure' name cannot be part of the component
2. you need to make sure the component-name always is in upper case.
Try adapting the following code:
data: begin of wa_test,
field01 type string,
field02 type string,
field03 type string,
end of wa_test.
data: l_fieldname type string,
l_counter type string.
field-symbols: <testc> type string.
do 3 times.
l_counter = sy-index.
concatenate 'field0' l_counter into l_fieldname.
translate l_fieldname to upper case.
assign component l_fieldname of structure wa_test to <testc>.
if <testc> is assigned.
<testc> = 'any value'.
endif.
enddo.
write / wa_test-field01.
best regards -
Can we assign Transaction code to created ABAP Query of SQ01
Hi ,
Friends I want to run the abap query assigning t.code to it .. i will be thankfull if any body give me the steps or remedy .
thanksHi you there.... you can try this
1) create an abap report with the following source code
REPORT ZRUN_QUERY .
DECLARACIÓNES *
DATA:
REPORTNAME LIKE AQADEF-PGNAME.
PANTALLA DE SELECCION *
SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
PARAMETERS: P_BGNAME LIKE AQADEF-BGNAME OBLIGATORY,
P_QUNAME LIKE AQADEF-QUNAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN END OF BLOCK B0.
CUERPO DEL PROGRAMA *
CALL FUNCTION 'RSAQ_REPORT_NAME'
EXPORTING
WORKSPACE = SPACE
USERGROUP = P_BGNAME
QUERY = P_QUNAME
IMPORTING
REPORTNAME = REPORTNAME.
CALL FUNCTION 'RSAQ_SUBMIT_QUERY_REPORT'
EXPORTING
QUERYREPORT = REPORTNAME
VARIANTE = SPACE
EXCEPTIONS
ONLY_WITH_VARIANT = 1
VARIANT_NOT_EXIST = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2) Create a transaction for this program
3) Create a parameter transaction and execute this report passing by parameter the usergroup and Query, then, the program will automatically solve the program name and execute it.
Regards,
Daniel -
How to assign Transaction code for report program?
All,
I have developed a custom report. I want to associate it to a transaction code. How to do it?Hi,
Please follow the steps for creating a transaction for report..
GOTO SE93
Give the transaction code.
Press create button..
Enter the short description..
Choose the radio button which says "Program and selection screen(report transaction)".
Press Enter..
Give the program name..
Remove the Selection screen "1000" if you want.
Save the transaction code..
Regards -
Report which shows Transaction code for each company
Hi Experts
There is a requirement for a report which must display the following
Parameters
Tcode : S_ALR_87013340
User Tcode Description Profit Center Profit Group
MEND S_ALR_87013340 XXXXXXXXX PCH00013534 PCGH232323
How can I like profit center and profit group with t codes
Regards
PirozHi ,
This is more over security related question. I think you can use t-code SUIM to get that list.
Regards,
Naveen Veshala -
History of transaction codes used/no of times particular report is run.
Please get me name of the table in which history of transactions entered are stored...or no of times particular report is run.
Hi,
You can use the transaction STAT..
Thanks,
Naren -
Transaction Code assignment for Query created in SQVI
Dear All,
Good morning I hope you are doing great...
Can any body help me out to assign transaction code for Query which was created through SQVI transaction.
Regards,
Murali.Hi Murali Mohan
1>go to SQVI t code and enter your query name and press enter
2>In the menu path select Quick view--> additional functions-->Generate Program
3>After Generating the program In the menu path select Quick view--> additional functions-->Display report Name
4>Now in se38 enter the report name in Program field and execute
5>You will get the Initial Selection screen of the report . Go to Menu of System -->Status
6> Note down the Program name and Screen number
7>Go to SE93 and Create a Z tcode for the query, Enter the description and importantly you have to select the 2nd Option radio Button Program and Selection Screen (Report Transaction) and Press enter
8>In the next screen enter the Report name In Program field and enter the screen number
9>In the classification Section select Professional user Transaction
10>In GUI support section select all the options i.e SAPGUI for HTML,Java,Windows
and save
the system will ask for Package select your package if not there then select local object
now execute the Z tcode your report will run sucessfully
Regards
Vijay hebbal -
Hide Command field (where users enter transaction codes in SAP GUI)
In our requirement, the custom SAP transaction will be launched on CRM Web UI through transaction launcher technique (when users clicks a hyperlink on CRM UI)
But business people are asking us to not provide the user to enter transaction codes in command field. They don't want User's see command field when the back-end SAP GUI is displayed on CRM UI through transaction launcher and they don't want the user to navigate to any transaction from the SAP GUI. Please let us know you comments on this. Is this possible, if so please guide me?Hi Madhu,
This is a question for SAP basis.
One work around could be that the the users who would use ITS screens should not have any other AUTH objects for executing other TCODES. And when they try to do so they will get an error message like you do in a normal SAP GUI.
Basis can configure this by running a Auth Trace.
Hope it helps.
Thanks
Maybe you are looking for
-
Mac OS X 10.6.8 software updates quites unexpectedly, any idea??
Mac OS X 10.6.8 software updates quites unexpectedly, any idea?? Process: Software Update [15049] Path: /System/Library/CoreServices/Software Update.app/Contents/MacOS/Software Update Identifier: com.apple.SoftwareUpdate Versi
-
Classpath error in webdynpro application
Hi All, Currently I am using NWDS7.0.16, and I created webdypro application which connect to BI System by make use of BI- XMLA connector. for that I added all required jar file in JavaBuild path. but when i try to build the application I am getting
-
TRANSCEND JET FLASH 350 USB 2.O FLASH DRIVE NOT DETECTED
I AM HAVING DESK TOP PC P2 1401IL WITH WINDOWS 7 TOTAL 4 USB DRIVES ARE THERE. TWO FRONT TWO BACK I PURCHASED A TRANSCEND JET FLASH 350 USB 2 FLASH DRIVE,WHEN THE DRIVE IS ATTACHED TO THE PORT THE SYSTEM IS NOT DETECTING THE DRIVE.I TESTED THE SAM
-
Formatted Computer without deactivating CS 4 Design Premium
I have formatted one of my computers, without deactivating Adobe CS4 Design Premium. I have a license for 2 computers and still am keeping it a one of them, but am now unable to install it in the computer that I formatted, probably due to limit of ac
-
How do I transfer video from iPad to mac?
I have videos on my iPhone that I want to transfer to my MacBookPro. I managed to damage the copies on my Mac so I deleted the damaged copies and I would like to put them back on my Mac from my iPhone. I tried to do this using my iPad, which also h