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

Runtime Error while uploading data using a BAPI

rajesh_akarte2
Active Participant
0 Likes
1,047

Hi ALL,

I am trying to upload duties for PO items using BAPI from a excel sheet.In this BAPI I am saving the data into a z table(Customizing table, maintenance only by cust., not SAP import).The data is getting saved into the table and it shows the data uploaded successfully message also,but when I scroll up I see RUN time error,althogh the data is getting saved.

I have seen in the st22 and it shows the following information.

Internal error: Invalid page number.

What happened?

The current ABAP program had to be terminated because the

ABAP processor detected an internal system error.

The current ABAP program "ZFI_UPD_BOE_UPLOAD" had to be terminated because the

ABAP

processor discovered an invalid system state.

My functional consultants opinion is after data getting saved it comes into me23n's condition tab.He has done it many times.But for one PO it is not showing.

I checked the upload program.In upload program a BAPI is written which simply takes the data from a excelsheet and saves into the z table.

My query is whether we can show the data of a z table into standard tocde?

2 REPLIES 2
Read only

Former Member
0 Likes
538

Hi rajesh,

Yes, we can see the data in standard t-code. Your saying that the program is simply upload the data from excelll and update the Z table. Make sure that before update the custom table they may post the data by using BDC. just debug the program and observe where that report is goiing to Dump.

Hope this helps you and reply fro quries.

Reward points if helps you.

Regards,

Kumar.

Read only

0 Likes
538

Thanks Lakshman!

I debug the program.There is no BDC used update.In this program after taking the data from excel sheet one internal table is prepared and this internal table is directly used to insert data into z table.This is the last code which executes.

INSERT zmmpoamend FROM TABLE t_zmmpo_amend_tab.

IF sy-subrc EQ '0'.

MESSAGE 'Data Upload Successfully completed' TYPE 'S'.

ELSE.

ROLLBACK WORK.

MESSAGE 'Data Upload failed ' TYPE 'E'.

ENDIF.

CLEAR t_zmmpo_amend_tab.

REFRESH t_zmmpo_amend_tab.

Is it possible to configure z table using SPRO tcode,such that this z tables data will go to standard table and then we can see it in the standard tcode?

I am not sure but it's just a guess.