How to call the Standard Program in our ZPROGRAM?
Hi Frieds can you tell me the procedure how to call the Standard program
in z----
program and we have to get the data from standard one to our customer program.
Thanks in advance,
madan mohan.
Hi,
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Once report has finished and control has returned to calling
program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
DISPLAY_LIST to retrieve and display report.
*Example Code (Retrieving list from memory)
DATA BEGIN OF itab_list OCCURS 0.
INCLUDE STRUCTURE abaplist.
DATA END OF itab_list.
DATA: BEGIN OF vlist OCCURS 0,
filler1(01) TYPE c,
field1(06) TYPE c,
filler(08) TYPE c,
field2(10) TYPE c,
filler3(01) TYPE c,
field3(10) TYPE c,
filler4(01) TYPE c,
field4(3) TYPE c,
filler5(02) TYPE c,
field5(15) TYPE c,
filler6(02) TYPE c,
field6(30) TYPE c,
filler7(43) TYPE c,
field7(10) TYPE c,
END OF vlist.
SUBMIT zreport EXPORTING LIST TO MEMORY.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = itab_list
EXCEPTIONS
not_found = 4
OTHERS = 8.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = vlist
listobject = itab_list
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc NE '0'.
WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
ENDIF.
Regards
Sudheer
Similar Messages
-
Calling the standard program in program and getting its output in int table
Hi there,
I have a requirement, where I need to call the standard program (of transaction CJI3) in my Y program. CJI3 transaction produces a ALV GRID output. I need to use that data for further processing. I am getting following problems:
1. I tried to use SUBMIT ... EXPORTING TO MEMORY statement. I need to pass the company code for the selection, but the company code is in the dynamic selection. So not getting how to pass them.
2. Just a doubt. Can we export the ALV GRID to the memory an retrieve it back using import?
3. I did tried to use SUBMIT ..... statement using only the parameters which are on the selection screen. However the control went to CJI3 transaction and gave an error message 'Please select "from database" or "from archive" '. Did not understood that, any IDEA?
Or is there any other way with which I can accomplish my requirement of getting the data in my program to manipulate, other than SUBMIT.
Points will be rewarded.
Thanks,
Ganesh KhumseHi,
point 1:
SUBMIT ... EXPORTING TO MEMORY will never work, because it displays the information in an ALV grid and that grid is waiting for user interaction for manipulating the information.
point 2:
no, you cannot export the content of an ALV grid to the memory
point 3:
must you get records in an internal table or must you feed the transaction, so that this one performs a task ?? for first option read below and for the other option you might work with BDC and Transaction Recorder.
what you have to do is read the code of transaction CJI3 in order to understand what it does, where the information is read from and what is the internal table that passes the values to the ALV Grid. You might find a user exit in the code for manipulating that information or you might create an enhancement point if there´s no user exit. -
How to call the abap program in workflow
HI Exeprts,
I need to call one abap program in workflow.
can any tell me how to call the abap program in workflow.
thanks ®ards
rameshDear Ramesh,
U can use REPORT business object.
Method : EXECUTE_2
Regards,
Sagar -
How to find the Standard Program associated with a Standard IDOC
Hi,
I am going work on enhancing the standard IDOC. Any body can suggest how to find a standard pogram associated with a Standard IDOC. And can any body send some exaple code for extending a standard IDOC and to implement the logic in the standard program .....Hi,
For outbound IDoc the program can be found:
1) For master IDoc via transaction BD60. Here for the message type you can find the function module used to generate the IDoc. Within this function module you can find the user exit where you can code your logic.
2) For IDocs with message control (output control) we maintain settings for proces code in WE41. This process code will lead to outbound IDoc generation program.
For Inbound IDoc the program can be found:
Via WE42 where inbound process and its related inbound function module is maintained.
In each cases above we can go the function module and find the customer exit where idoc enhancement logic can be coded.
For extending IDoc look at the following links:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/content.htm">Extending IDoc - SAP help</a>
It can be summarized as follows:
Enter transaction WE30 (ALE->Extension-> IDOC types->Maintain Idoc type)
- Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.
- Click on Create new and enter a description and press enter.
- Click on ZIDOCTYPE01 and then on the Create icon.
- Enter ZIDOCTYPE as the segment type, click on Segment Editor.
- Enter a description for your segment type and create.
- Enter a description for your segment, enter each field required in your IDoc and press enter to validate.
- Save and generate, press back
- To release the segment choose Goto, Release from the menu.
- Check the box on the line of your segment.
- Save, back and enter.
- Your Idoc type structure should be displayed with your new segment.
- Save and back.
- To release the Idoc type choose Extras, Release type from the menu and Yes.
Hope this helps.
Regards,
Gajendra. -
How to call the Report program into Function module
Hi Experts,
Actually I want to create the DataSource. But I have only the ALV report program. I need to create function module but I dont know how to call the ALV report program using in function module
So could you please any one send the Document or step by step method?
Advance Thanks,
SathisIf the report is just based out of a table than create a Generic Extractor using View.
If its an InfoSet query than create a Generic Extractor on that InfoSet.
If its an ABAP report than create a Generic Extractor using FM
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33 -
How AAE call the mapping program?
Hi Experts,
i almost have no experience on using AAE. after reading some documents i still have the below questions,
1. mapping program is happened in integration engine, while AAE is used for integrated scenarios without going into integration engine, then how to execute the mapping program?
2. till now all the work i have done is using the common scenario, then for which scenarios i can suggest my client that "we should use integrated scenario , and there is no 'side-effect' of using is instead."
3. in some documents "persistence" is discussed, can someone help me into more details?
thanks in advance. hope these could be explained.> 1. mapping program is happened in integration engine, while AAE is used for integrated scenarios without going into integration engine, then how to execute the mapping program?
When you implement AAE,Adapter engine will execute your mapping program,that means AE has the capailities , they have copied moved routing ,mapping features in AE,so no need to interact with IE.
> 2. till now all the work i have done is using the common scenario, then for which scenarios i can suggest my client that "we should use integrated scenario , and there is no 'side-effect' of using is instead."
There is no side effects at all,but there are some limitations like in PI7.1 monitoring not possible,ABAP PRoxy,look ups will not supported and only supports AE adapters communication.
PI7.1 EHP1 some enhacements happend on the same
search in sdn.
> 3. in some documents "persistence" is discussed, can someone help me into more details?
can you explain bit more..
Regards,
Raj -
Error while calling the standard Program
Hi,
I am using the Program <b>RMDATIND</b>, While executing the program ,I am getting an error as <b>The field MARC-AUSDT is not ready for input and was therefore not transfered. </b>. What exactly this means?
the message type used is MG. I have tried to trace this Error, in the program, I am uable to get this. Please help me, to sort out this problem.
Thanks
ManjuThankQ solved
-
How to overcome the standard program check that changes my input file data?
Hi
when we r uploading PO thru bapi_po_create1, we give tax codes in the input file...but when the code gets into this MM06EFKO_PREISFINDUNG include of SAPLMEPO, there is a logic that changes the tax code (ekpo-mwskz = tkomv-mwsk1) and hence it gets reflected in the PO created...is there any way where i can by pass this one for the POs that i create thru my prog...pl shed some light on this
Sathish Renter the program name in the SE38 editor
click on copy button
then it will ask you for the new name
when ever you click on the copy transfer buton
then it will raise a pop and saying that what ever you want from the program like
1) INCLUDES
2)SCREENS
3)USER INTERFACES
4)VARIANTS
5) DOCUMANTATION
ETC..
hat ever you clcik on that check box
thats all
rewar dif usefull -
How to get the custom program generated in Background
Dear Freinds,
I have written a below code in my submit program ( zreport) .
REPORT ZHRRPCPRRU0_SUBMIT NO STANDARD PAGE HEADING MESSAGE-ID zhr_msg.
SUBMIT RPTQTA00 VIA SELECTION-SCREEN
WITH pnpbegda = sy-datum
WITH pnpendda = lv_date
with pnppernr = '99007057'.
As per your logic i have used the submit program and i am able to default the dates in the Standard program RPTQTA00 , that is perfectly correct . Now if run the standard report it is giivng me the ouput ..so the foreground concept is working correctly.
Now if iam scheduling the Z report of the custom report (z program) where iam calling the submit program
it is just scheduling and further when i look at the sm37 i can see the job getting finished . However , i dont find any spool because the standard report has not been executed , with my custom report (using the logic with submit program above in zprogram ) i am calling the standard program (RPTQTA00).
so could you please let me know how the standard program will execute and get the spool genereated? in the case of background
because when i have executed only the standard report in background i can see that it is being exceuted spool as well, however when iam calling from custom program no spool is created because my custom program only submiting the standard report and it is not executing the standard report in the case of backround ...because when iam running the custom program in the Foreground it is calling the standard program and getting the values defaulted based on the parameters which i passed , so it gets defaulted later iam running the standard program manually .
So please could you let me know how will the standard program also gets genereated in the backgroung along with my custom report.
Thanks in advance
regards
madhuri,Hi Can you try the following?
Hope this helps... (Taken from help)
Example
Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately.
DATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT submitable TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF. -
Urgent: How to modfy the Report program Corresponding to a Infoset
Hi Friends,
I have done an infoset. I have used TCURR table for Query. I saw the Standard program of that Query having select statement like Select single * from Tcurr where Gdatum = RDD.
Where RDD is the value having Statndard date where Gdatum is Converted Date format using some conversion routine ...So the select statement is failing in
the standard program AQ50MPL=========COS_EE========.
When i tried to add an conversion routine before the select statement to convert the date to that Specific statement...When i tried to go to Change mode i got an error message like
"Standard SAP Program Status is not modifiable" can i change the Standard program which is not asking for Access key for change..
PLease help me how to change the standard program or How to make a copy of standard program into a Z program and how to call that z program instead of that standard program..
Please help me..hi Gokul,
It's not possible to edit the standard AQ programs that you create using Infosets rather these AQ programs are generated when you generate the Infoset and the Query.
Secondly there's a point to be taken care of when we work on Queries and Infosets. There are two areas of Queries and Infosets namely, Global Area and Client-specific area. At this point, it's better to rush up with the jargons as you're running out of time. All you need to do is follow the steps below:
1) Goto SQ02 *infoset* -> *give in your infoset name*change
2) Goto EXTRAS tab or Press F5.
3) Goto CODE tab
4)from the drop-down CODING SECTION *you can choose from the list wherein you need to place your code or change the existing code by traversing the list*
5) Generate the code.
6) Repeat steps 1-5 for Client-specific area as well *choose Environment ->Query Areas -> Client-specific* to change the code there.
7) Generate the corresponding Query(SQ01) in a similar fashion *Global Area and Client-specific area as mentioned in step 6*
Reward points if your requirement is met!!
Thanks,
Vaishnavi -
How to change call to the function module in the standard program
Hi Guru,
My requairment is to create the new Z function module ZJ_1B_IM_NF_DOCUMENT_FUNCTION in the MM07MFJ1 program.
I have created the Z Funtion module,
plz provide me the info how to change the call to the new custom FM from the standard program.
Points will be given to the ans.You use SE38 to change out the code. When you try and change it you will get a popup asking you for a Key, since you are changing SAP Code. If you have a Developers key you have to go to the SAP Service Marketplace and tell SAP that you are changing this code in order to get they key. After this every time you do support packs you run the risk of this getting overlaid and you will have to change it back, also if you have a problem and SAP sees that you customized this code they probably won't spend any time on your problem.
-
How to call the 'DETAIL' function in ALV for a program?
Dear Friends,
I have a prf_tree (TYPE REF TO cl_gui_alv_tree), and I added below codes to add an new button for displaying the detail record, it works fine:
CALL METHOD prf_toolbar->add_button
EXPORTING
fcode = prf_tree->mc_fc_detail
icon = icon_detail
butn_type = cntb_btype_button
text = ''
quickinfo = 'Show Details'.
Everytime I click this new button, a window will popup and display the record details.
My question is: how to call this standard function ('DETAIL' function) in a program? for example:
CASE ldf_ok_code.
WHEN gcf_okcode_save.
PERFORM okcode_save.
WHEN 'SHOW_DETAIL'.
CHECK gdf_nodkey_9003 IS NOT INITIAL.
PERFORM SHOW_DETAIL.(How to write this code to display the detail data of the selected record?)
Thanks a lot!Hi,
Go for Interactive Reporting
like When u click on the output then it will show the Detail report u want .
for that purpose Pls
Use Hide command .
And call another report
by using SUBMITT Program -
How to call a standard BOR method in a program.
Hi All,
How to call a standard BOR method in a program. For example I have to call BOR method ISUSMORDER.Release in my program but don't know how to call.
Also, plz tell me how to capture the Exceptions in case of BOR method.
Plz help me out in this.
Thanks,
MithileshWould be easier (however not always possible), to determine the functionality of this method and call that in your program. I mean, normally this method calls a BAPI, or function module (or a transaction). Have a look at the coding inside of the method, and try and use this.
-
How to call a Standard SAP Program in Zprogram.
Hi,
how to call a SAP Standard program in SAP Program?
Do we have to use any funtion module and pass paramters?
I want to call a Standard SAP prg in to my prgram? can anyone explain me or give the piece of code to call standard prg.
Thanks & RegardsAgain, ABAP related questions should be asked in the ABAP forum.
To answer you question, if the standard program is a report program, you can use the SUBMIT statement and pass parameters using the WITH Extention.
Submit <report>
with p_fld = 'X'
and return.
Please make sure to award points for helpful answers and mark your posts as solved when solved completely. Thanks.
Regards,
RIch Heilman -
I see sap have many userexit subroutines in the standard programs?
Like Include 'MV50AFZ1'.
How can i customer my code in these subroutines?
It always message me Access key!
Thank you very much!~~Hi,
To implement code in Form exits you have to get the Access key, Your Admin/Basis can help you get the access key. Other way around is to use the implicit enhancement option.
Regards
Karthik D
Maybe you are looking for
-
My Firefox Sync is set on 2 unit, but nothing is syncing
The Mozilla Support instructions state that one needs to be on the new version of Sync in order for devices to share information with each other. I already have the latest versions of Firefox (33.1.1) on both my Origin Laptop and my Surface Pro 3 (bo
-
Is it my display or motherboard
Here's another question regarding the video "card". My MacBook's screen will not work... it's showing everything blurred or streaked though when I move the mouse I can see the cursor moving, though streaked, and if I open a window via command it look
-
Enforcing event AT-SELECTION-SCREEN OUTPUT
Hi Gurus Does anybody know how to force event AT-SELECTION-SCREEN OUTPUT ? What I'm aiming for is changing screen somewere outside of this event. For example. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_param. IF p_param = 'change'. changes_in_s
-
Java for Safari doesn't work correctly at YouTube
We are trying to use the Advanced Upload Tool at YouTube, but it does not show us all of our hard drives. Only the Macintosh HD - and we have two other drives we've mounted into one 4 TB drive and that is where we store our videos. I haven't been abl
-
Why do my still pictures blur when they are enlarged or moved across the screen
Final Cut Express Why do my still pictures blur when they are enlarged or moved across the screen?