Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Run Time error.

Former Member
0 Likes
908

Hi,

This is my program. and followed by Flow logic, When iam executing that Iam getting Runtime error.

Also Runtime error analysis iam getting in German langauge. How to get in English that one.

PROGRAM ZMP_TAB3.

TABLES:

VBAK,

VBAP.

DATA:

IT_VBAP TYPE VBAP,

c1 TYPE I.

&----


*& Module USER_COMMAND_9001 INPUT

&----


  • text

----


MODULE USER_COMMAND_9001 INPUT.

CASE SY-UCOMM.

WHEN 'EXIT'.

LEAVE PROGRAM.

WHEN SPACE.

SELECT * FROM VBAP INTO IT_VBAP WHERE VBELN EQ VBAK-VBELN.

ENDSELECT.

ENDCASE.

ENDMODULE. " USER_COMMAND_9001 INPUT

This is my Flow Logic.

PROCESS BEFORE OUTPUT.

*MODULE STATUS_9001.

LOOP AT IT_VBAP INTO VBAP CURSOR C1.

ENDLOOP.

*

PROCESS AFTER INPUT.

MODULE USER_COMMAND_9001.

LOOP AT IT_VBAP.

ENDLOOP.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
889

Hi

Can i Know what is the error u got??

Plz post here so that it will make us easy to solve ur issue

Regards

Pavan

8 REPLIES 8
Read only

Former Member
0 Likes
890

Hi

Can i Know what is the error u got??

Plz post here so that it will make us easy to solve ur issue

Regards

Pavan

Read only

0 Likes
889

Hi,

when iam enetring the T.code it is giving the error. I am not getting the screen. Run time error analysis iam getting in German Language .how to get Run time error analysis in English Language

Read only

0 Likes
889

Hi

I suppose the error is in your screen flow:

PROCESS BEFORE OUTPUT.

*MODULE STATUS_9001.

<b>LOOP AT IT_VBAP INTO VBAP CURSOR C1.

ENDLOOP.</b>

*

PROCESS AFTER INPUT.

MODULE USER_COMMAND_9001.

<b>LOOP AT IT_VBAP.

ENDLOOP.</b>

It seems there's a table control (or step loop) in your screen but I can't see where you've defined and used it.

Max

Read only

0 Likes
889

Hi,

when ever you connect to SAP .After giving userid and password there is an option for language .

login with language as En (check the language first if it is other EN change to EN

Thanks,

Srinivas

Read only

RaymondGiuseppi
Active Contributor
0 Likes
889

Declare IT_VBAP as an internal table (TYPE TABLE OF) here it's a single field/structure and i think you have a table view control in your dynpro. If yes, where is the definition of the table control?

If it's your first table control, use the assistant to build it.

Regards

Read only

0 Likes
889

Your program should have these clauses in :

DATA it_vbap TYPE TABLE OF vbap.
CONTROLS: CTL_VBAP TYPE TABLEVIEW USING SCREEN 0100.
SELECT * FROM VBAP INTO TABLE it_vbap WHERE vbeln = vbak-vbeln.

And in your dynpro, you should have (at least)

PROCESS BEFORE OUTPUT.
  LOOP AT   IT_VBAP
       INTO VBAP
       WITH CONTROL CTL_VBAP
       CURSOR CTL_VBAP-CURRENT_LINE.
  ENDLOOP.
PROCESS AFTER INPUT.
  LOOP AT IT_VBAP.
  ENDLOOP.

Regards

Read only

Former Member
0 Likes
889

Hi

What is this VBAK-VBELN here, you have not declared in program it cant take that directly

declare that with data statement and compare that in select statement

that is only the problem

Regards

sandhya

Read only

Former Member
0 Likes
889

Hi,

Please check tcode ST22 .It will help you analyse the blue screen.

Regards,

Himanshu