ABAP Program : Execution problem
Hi Guys!
I have a problem during the execution of a program.
Ive created a new program that merges two programs into one program named ZWORXX0020XX with t-code ZWOXX30XX.I've run the program via SE38 (ABAP Editor) and everything's fine
then when i run via t-code(that i've created -ZWOXX30XX) program goes to selection screen, but when i execute the program, it goes back to SAP Easy Access Screen.Why is this happen? I really stuck rite now..please advise..
Thanks.
Make sure the transaction type which you gave for the tcode is a report transaction (program and selection screen).
Your problem occurs if you have chosen the wrong one.
For this go into SE93 --> ZWOXX30XX --> Change Mode
and under Edit --> Change Transaction Type to Report Transaction
This solves ur problem
Regards
Gopi
Similar Messages
-
Error out the ABAP program execution
I have an ABAP program which transfers data from a file to a database table thru function module in packages of 50,000 records.
Upon the successful completion of this ABAP program, I start dependent processes.
Sometimes the function module does not transfer the data and returns the exception back to the ABAP program - which is an expected scenario. Currently when ever an exception is received in the function module, I stop the ABAP program with a STOP statement.
The ABAP program stops, which meets my first objective. But what happens is, if you look at the job log --> it is Completed in terms of program execution and the dependent processes automatically start - which is not meeting my second objective.
My second objective is to force the ABAP program to error out in such a way that .........
1) The program execution is stopped
2) If I look at the job log it should not be Completed (I am looking for something like Cancelled so that the dependent process do not get started automatically)
Is it possible to error out the ABAP program execution by raising an exception or something, so that when i look at the job log - it shows Cancelled and not Completed?
Let me know if you have any questions.
Thanks,
RK.Adrian,
Thanks - This is exactly what I was looking for, it works.
For some reason Messages skipped my mind and I was looking at raising Exceptions
Solution:
if sy-subrc NE 0.
message id 'abc' type 'E' number 000.
endif.
Thanks,
RK.
Edited by: RK on Jan 17, 2010 7:47 PM
Edited by: RK on Jan 17, 2010 7:50 PM
Edited by: RK on Jan 17, 2010 7:52 PM -
Command line program execution problem.
Hey there, I'm about to complete my Java thesis project, but I can't fix a problem: i have to find a command line programme (which is in python but i think its not a big deal) through a java programme. Getting some information around I ended up i could execute the program with the command:
Process proc = Runtime.getRuntime().exec("...");
and create the streams:
OutputStream out = proc.getOutputS 14.49
InputStream in = proc.getInputStream();
the problem is that calling a programme which prints on screen something and then it ends (ex. ipconfig) the following sequence works out:
do
int i=in.read();
if(i==-1) break;
System.out.print((char)i);
}while(true);
instead in the specific case of the programme that i need to execute it canno't work because this programme after its opening prints a couple of lines, at this stage you need to type the input in and when the eof font is sent the output is printed. i've tried to send the input thru OutputStream but the execution gets stuck when it reads the output (in.read());
Can you guys help me out? What do i need to do? Please it's very important, let me know ASAP.
Thanks very much,
FabioI would not recommend the use of raw "InputStream" for much of anything.
Try Scanner if you can use JDK5, if not, try BufferedReader.
Scanner:
Process proc = Runtime.getRuntime().exec("...");
BufferedOutputStream out = new BufferedOutputStream(proc.getOutputStream());
Scanner in = new Scanner(proc.getInputStream());
while(in.hasNextLine()) {
String s = in.nextLine();
System.out.println(s);
}BufferedReader:
Process proc = Runtime.getRuntime().exec("...");
BufferedOutputStream out = new BufferedOutputStream(proc.getOutputStream());
BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
String l = " ";
while(l != null) {
l = r.nextLine();
System.out.println(s);
} -
Issue with ABAP program execution from process chains
Hi All:
We have a process chain with 3 steps, each of them executing the same program with three different variants. The program is ftp's the file from APO's dataexchange (mount) to another ftp server. The first variant transfers file A to a directory in the external ftp server (say /X) . The second and the third variants are supposed to transfer different files, B and C to the same directory.
That is where the problem is. After the process chain is successful, I see two files B and C but the contents are same and that of C. So, if I switch the steps in the PC to bring in A then C and then B, I see files B and C with content of C. I tried C then A then B. I see the file names correct but now the contents are A, A then B.
Have any of you come across this issue? Do you know that these is an existing problem? IF you have a solution, pl. let me know.
Thanks
NarayananNarayanan,
Instead of doing it in three steps - would it be possible for you to have one UNIX script or equivalent doing the above and calling the same from your process chain ...?
We do a lot of FTPs but then our file names are standard and we have a UNIX script for the same executed using a system command through a process chain and it has been working without issues for the past 1 year ...
Maybe I have not got your situation properly ... some more detail on the program details and what you are doing in more detail would help.... also SP levels please.. -
Dear All,
I am in one strange problem. I have created one BDC program to upload. It gets uploaded and executed when I go through debugging ( I do not make any change while in debugging only do F5 and F6 and F8). But, when I run it directly It does not upload data to one particular screen but gets executed with display with no errors.
Can any one please suggest what could be the reason for this? I am really in a fix. Any inputs or suggestions is appreciated.
Regards
SM.While executing in No display/Error mode, the internal commit work or some action might not
have worked properly. So use the following command where the process strucks.
WAIT UP TO 5 SECONDS.
(or)
Check the BDC okcode properly while in ALL DISPLAY mode
Regards,
Prem -
How to capture an Odata XML inside an ABAP program ?
Hi Colleagues,
I have a scenario where I need to capture the Odata XML inside an ABAP program.
Problem Description:
1. Log into U3F Client 100 system.
2. Goto Transaction 'SPRO'.
3. Click on 'SAP Reference IMG'.
4. Select SAP Netweaver - Gateway - OData channel - Administration - Maintain Services.
5. Select any service from the Service catalog.
6. Click on 'Call Browser' button.
Now, my requirement is to capture the XML which gets displayed on the web browser into an ABAP program but I am unable to do so. Kindly, provide us the solution.
Best Regards,
NareshHi,
Check this example
[http://help.sap.com/saphelp_nwpi71/helpdata/en/1f/93163f9959a808e10000000a114084/content.htm|http://help.sap.com/saphelp_nwpi71/helpdata/en/1f/93163f9959a808e10000000a114084/content.htm]
Regards,
Ivan -
Problem in using function module parameters in abap program
i want to use the coding present in on one of the function module 'AS_API_INFOSTRUC_FIND' i got the problem using the function module parameters in my abap program.
these are the parameters inside fm
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_FIELDCAT) TYPE AIND_FCAT
*" VALUE(I_FIELDS) TYPE TABLE OPTIONAL
*" VALUE(I_OBLIGATORY_FIELDS) TYPE TABLE OPTIONAL
*" EXPORTING
*" VALUE(E_INFOSTRUC) TYPE AIND_DESC
*" REFERENCE(E_ALL_FIELDS) TYPE TABLE
*" REFERENCE(E_MATCHING_FIELDS) TYPE TABLE
*" EXCEPTIONS
*" NO_INFOSTRUC_FOUND
i want to declare E_ALL_FIELDS parameter in my abap program,
i have declared as
data: E_ALL_FIELDS TYPE TABLE.
but the system throws error that
'type of field 'TABLE' is generic .no table line has been specified'.
i want to use it in my abap program how can i declare in my abap program .You have to declare the table using any specific type.
The type table in the FM is generic so you can pass any type you need.
For instance:
TYPES: BEGIN OF ty_fields,
fieldname LIKE dfies-fieldname,
END OF ty_fields,
TYPES: TY_T_GLU1 LIKE GLU1 OCCURS 0,
ty_t_fields type ty_fields occurs 0.
DATA: lt_info_struct_fields TYPE ty_t_fields WITH HEADER LINE,
lt_matching_fields TYPE ty_t_fields WITH HEADER LINE.
CALL FUNCTION 'AS_API_INFOSTRUC_FIND'
EXPORTING
i_fieldcat = ft_fieldcat-fieldcat
i_fields = ft_fields_filled[]
IMPORTING
e_infostruc = lv_info_struct_name
e_all_fields = lt_info_struct_fields[]
e_matching_fields = lt_matching_fields[]
EXCEPTIONS
no_infostruc_found = 1. -
How to extend the execution time of an ABAP Program using the Process chain
Hello Sapians,
Our Environment has got 600seconds = 10 mintues as the execution time.
My ABAP Program is taking more than this 600 seconds, to show the result, I found this when I tried to execute in debug mode, it shows the result.
If I execute in background also it shows the results succesfully.
Only issue is when I execute this report in foreground it has been taking ages and goes on Time OUT Error.
It has been decided that we can extend the execution time only for this report, and it will reset the time back to 10mintues once the report has been executed successfully or failed in between for any other reasons.
And we can achieve this by using the process chains.
Can any body help me please in this regard
Thanks,Hi,,,,,,,,,,
Besides Process Chain There is another way out for this........
Resetting time counter of dialog process so that time-out does not
happen. Use this fm within your program at appropriate locations to
reset time counter.
"CALL FUNCTION 'TH_REDISPATCH'."
Thanks
Saurabh -
Problem with the active version of the transfer rule ABAP program with sour
Hi,
I have a problem with the active version of the transfer rule ABAP program with source system EXCEL.
The system does not react to changes done in the transfer rule coding. For FISCPER I have hardcoded the result 'BABABA' and still the results delivered are those from the CSV.
Resetting the system buffers does not help. The problem is systematic in combination with source system EXCEL (i.e. not only 1 InfoSource). Checking the active program Extras->Display Program shows the coding (result='BABABA') being there, but
as stated, the system does not produce the result BABABA, but instead the result of the CSV.
It seems as if the original version from the very first activation of the transfer rule program remains somewhere and continues to be used. Does anybody know how to flush it out and get the system to actually use the coding appearing as the active program.
I have posted an OSS note, but SAP takes it time to answer and I am under time pressure so I figured that maybe one of you know who to solve it before SAP does.
Greetings and thanks,
MartinHi martin,
just try to go out the RSA1 and then return to your infopac. ...
sometimes there some "cache" trouble -
ABAP Program and Execution Caching?
Hi All
We have a strange problem with custom ABAP program possibily caching a SQL statement. Here is the problem:
Transaction: ZTRANS_C1
This transaction is about 4 years old and we have noticed a problem with a SQL statement withing the program which is causing a timeout and shorts dumps (runs for 600ms). We managed to fix the statement and change the program but it is still taking 600ms and timing out.
So we created a new transaction ZTRANS_C2 which is an exact copy of ZTRANS_C1 and ran it. This took only 65ms.
So is there any way in SAP or SQL where we can stop it caching the statements or is this some other problem?
Thanks
PhilHi Arnold,
First you need a table type with a structure like follows:
operation
groupid
context
identifier
agency
scheme
(corresponding to the Interface ValueMappingReplication)
All used data elements should have type string or charXX
for example: operation - char10, groupid - char32, rest - char120
Next you create a function module with attribute 'remote-enabled module'.
The import parameter is your new table structure.
Next you create an ABAP program. Here an example:
report z_value_mapping .
tables mvke.
data:
p_value_mapping type zvalue_mapping,
p_value_mapping_table type zvalue_mapping_table.
p_value_mapping-operation = 'Insert'.
p_value_mapping-context = 'http://xi.com/Material'.
select * from mvke where matnr between '170' and '501'.
check not mvke-prodh is initial.
* Create a value mapping group to join two entries.
* use a unique 32 digit number.
concatenate '00000000000000' mvke-prodh into p_value_mapping-groupid.
translate p_value_mapping-groupid using ' 0'.
* Store the mapping source as first entry to the group
p_value_mapping-identifier = mvke-matnr.
p_value_mapping-agency = 'SenderAgency'.
p_value_mapping-scheme = 'MATNR'.
append p_value_mapping to p_value_mapping_table.
* Store the mapping target as second entry to the group
p_value_mapping-identifier = mvke-prodh.
p_value_mapping-agency = 'ReceiverAgency'.
p_value_mapping-scheme = 'PRODH'.
append p_value_mapping to p_value_mapping_table.
endselect.
* Push data to XI
call function 'Z_VALUE_MAPPING' in background task
destination 'IS_XID'
exporting
value_mapping = p_value_mapping_table.
commit work.
Import the RFC to the Integration Builder, create a mapping between your RFC and the interface ValueMappingReplication.
Check this Blog for additional steps:
/people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
Choose names for context, agency and scheme which are useful your scenario.
Regards
Stefan -
ABAP programming Error in DTP execution
Hi
When execute DTP on InfoCube it generate following error after approx 10 to 15 minutes:
ABAP programming Error in DTP execution
Screen Shot also attached.
In PSA is shows all records OK (30 records)
What is the solutions?Hi Imran,
Good to knew you got resolution for this issue.
If you are getting output from above replies mark the correct or helpful answers. So that it will be helpful if some one faces the same issue again. http://scn.sap.com/docs/DOC-46006. You marked your answer as correct now. -
Facing problem in ABAP program "HINCALC0"
hi all,
i m facing problem in the ABAP program "HINCALC0". when i m run this hr program we face problem in processing problem is " No entry in table T512W for key 40 /4OD for time 30.04.2009". plz suggest me hw can i rectify this problem.
thanksHi,
As mohan said, you will need to create wage type /4OD. Some of the standand Function/PCR calculating amount and trying to push into /4OD which in not available in the system.
Regards,
Karunakar -
Problem in triggering abap program in process chain
i m running a infopackage in a process chain .
this infopackage creates the request in the DSO .
after infopackage i m including the abap program to delete the same request in the process chain .
but the abap program is not getting triggered .i have maintained the variant correctly for the program in the process chain .
what can be done so that the program gets triggered .Hi,
You can trigger you ABASP program from
1. SM64 : copy the ABAP program's Afer event and parambeter and give it there and execute
2.or go to
SE37 >>Program : BP_EVENT_RAISE >> say test execute
and give the same after event and parameter ..and execute
this might trigger your program
Hope this helps you,
Regrads,
shikha -
Expression problem for ABAP program
Hi everyone,
Once i have saw a expression in ABAP program. as follows.
DATA:drag_object TYPE REF TO lcl_dragdrop_dataobject.
CATCH SYSTEM-EXCEPRIONS move_cast_error = 1.
drag_object ?= dragdrop_object->object.
ENDCATCH.
IF sy-subrc = 1.
CALL METHOD dragdrop_object->abort.
EXIT.
ENDIF.
I don't know what is "?=" .
Please help me.
Thanks Advanced !DATA: airplane TYPE REF TO lcl_airplane,
cargo_airplane TYPE REF TO lcl_cargo_airplane,
cargo_airplane2 TYPE REF TO lcl_cargo_airplane.
CREATE OBJECT cargo_airplane.
airplane = cargo_airplane.
cargo_airplane2 ?= airplane.
The type of case described above is known as a widening cast because it changes the
view to one with more details. The instance assigned (a cargo plane in the above
example) must correspond to the object reference (cargo_airplane in the above example),
that is, the instance must have the details implied by the reference. This is also known as
a u201Cdown castu201D. The widening cast in this case does not cause an error because the
reference airplane actually points to an instance in the subclass lcl_cargo_airplane. The
dynamic type is therefore u2018REF TO lcl_cargo_airplaneu2019.
The widening cast logically represents the opposite of the narrowing cast. The widening cast cannot be checked statically, only at runtime. The Cast Operator u201C?=u201D (or the equivalent u201CMOVE ... ?TO u2026u201D) must be used to make this visible. -
How to check whether a batch input session is completed in ABAP program
I have created a ABAP program to create a batch input session (reference to RSBDCSUB). After the creation of the batch input session, I kick it to start and read the execution log. However, sometimes I cannot read anything from the execution log as the execution of the batch input is a synchronized process to the execution of my program, i.e. at the time being that I try to read the log of a particular transaction, that transaction is being processing / haven't start processing.
How can I check whether a batch input session is completed in the program?
The code that corresponding to the triggering of batch input session:
SUBMIT (SUBREPORT)
USER MTAB-USERID
VIA JOB MTAB-GROUPID
NUMBER JNUMB
WITH QUEUE_ID EQ MTAB-QID
WITH MAPPE EQ MTAB-GROUPID
WITH MODUS EQ 'N'
WITH LOGALL EQ LMODUS
Or is there any method to wait here until the process is completed before further processing?Hi gundam,
1. Or is there any method to wait here until the process is completed before further processing?
There is no such direct method to wait.
2. Immediately after submitting in background,
we cannot wait
neither can we LOOP and go on detecting
whether the b/g process has completed or not !
3. To over come such problems,
we have to use another technique.
4. we have to submit another
job which will get triggered
on event SAP_END_OF_JOB
ie. when the original job will finish,
our new job will AUTOMATICALLY get triggered,
5. This new job / program
will do the FURTHER actions !
regards,
amit m.
Maybe you are looking for
-
EXP-00015: error while exporting a table !!!
Hi I was trying to take table backup by exp and import method. Got the following error Please adivse. EXP-00015: error on row 7548444 of table LOADER_POS, column VERSIONDATE, datatype 12 From P
-
Hi. My kids are all on my itunes account. As a result they also ge my text messages. I would like to set up their own accounts but be able to transfer the songs and apps they purchased. Can this be done?
-
MacBook Pro not booting - trying to isolate problem
Hi all, So I am having major issues with my mid 2009 MacBook Pro. I will try to be as concise as possible and any, ANY input wil be greatly appreciated. Last week I opened my computer from sleep (a USB stick was inserted) - It would not boot up and w
-
Macbook pro wont send emails...
When i first brought my macbook pro, i had no problem sending emails, it would send and make the 'wooshing' noise to say it had sent. I must have done something as i am not very experienced with computers, because now when i respond or send an email
-
Reg: HIgher education cess
Hi all, I have to do sales returns for the invoice which was raised in 2006 , it is a factory sale ( excise duty will reflect), my doubt is as per our requirement the invoice should calculate BED AND SEC.EDU CESS., but the problem is it a