‎2011 Jun 27 11:17 AM
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 ?
‎2011 Jun 27 12:07 PM
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
‎2011 Jun 27 12:14 PM
‎2011 Jun 27 12:46 PM
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..
‎2011 Jun 27 2:36 PM
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 ,
‎2011 Jun 28 6:06 AM
Hi,
i already given the link please verify that and search in sdn or Google also..
Regards,
Dhina...