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

Data uploading Thrugh BAPI

Former Member
0 Likes
861

Dear all,

I am using BAPI to Upload data in SAP. I am uploading data from excel file. And the requirement is like These uploading data should be displayed in ALV List after execution with Light. In ALV If data of particular row is uploaded correctly than green light should be displayed otherwise red light display with error message and after that this User can change these Incorrect data in ALV and will upload after changes.......

can anybody is having any knowledge about it how it possible ?

5 REPLIES 5
Read only

JL23
Active Contributor
0 Likes
741

you have to write a report that displays uoloaded data in ALV.

in this report you execute the call BAPI command

based on return codes you can set red or green lights and refresh your ALV

Read only

Former Member
0 Likes
741

1) Call your bapi in a report program.

2)Dispaly an ALV output to show teh updated records.

3)Dispaly status from BAPI return table.

4)to display red/green lights, check the bapireturn message type and display desired icon.

use following link to display teh lights":

[]

Read only

Former Member
0 Likes
741

Hi,

procedure to do that:

1) call the BAPI to upload the data using flat file.

2) using BAPIRETURN structure you can find what are the document is success and failure append the all the thinks in one internal table.

3) that internal table contains all fields your passing the BAPI and add one more field like to display the symbols.

4) before displaying output put one condition like what are all the document is error that document is display like editable mode.

5) call the alv to display the output.

6) then user change the data and click the one icon button to call the same bapi (use one perform to call the BAPI).

7) then refresh the ALV Display.

all the things are possible only in OOALV.

refer the link for traffic lights icon in the ALV Grid. OO output

http://wiki.sdn.sap.com/wiki/display/ABAP/InteractiveEditableOOALVgridwithdynamicitab,FCATandENTERkeyeventtrigger

Regards,

Dhina..

Read only

0 Likes
741

Hi Dhina ,

Thanks for ur explaination , R u having any simple sample code for same ? I think It will help me to understand better....

Thanks You ,

Read only

0 Likes
741

Hi,

i already given the link please verify that and search in sdn or Google also..

Regards,

Dhina...