10-03-2018 8:34 PM
Hi I'm learning ABAP and I've created a few reports successfully and also have created a program to register new customers.
I was wondering how it would be possible to update a given customer data. I know I could just get into SE16 to add/remove/update any field but what I've been looking for is a way to make it happen in my program.
SELECTION-SCREEN BEGIN OF BLOCK b_jnl WITH FRAME TITLE text-001.
PARAMETERS : s_cod TYPE Z60CLI-CODCLI.
SELECTION-SCREEN END OF BLOCK b_jnl.
START-OF-SELECTION.
SELECT * FROM z60cli INTO TABLE it_z60cli WHERE codcli = s_cod.
END-OF-SELECTION.
LOOP AT it_z60cli INTO wa_z60cli.
WRITE : /05 wa_z60cli-codcli,
15 wa_z60cli-nome,
50 wa_z60cli-tipocli,
55 wa_z60cli-regio,
65 wa_z60cli-ativo.
ENDLOOP.
The PARAMETER s_cod receives the costumer code. The loop down there takes the given customer code and writes all customer data (name, location, etc).
My point is that I'm trying to figure out how I could display these values in an editable way so I could save them into the original table. Reading ABAPDOCU I was not able to find a proper way.
Any advice on how to proceed would be great.
Ty
10-04-2018 2:16 AM
I suggest you learn about table control, ALV which both give you a list and editable cells feature.
10-04-2018 2:16 AM
I suggest you learn about table control, ALV which both give you a list and editable cells feature.
10-04-2018 7:21 AM
What do you mean by so I could save them into the original table? What is the "original table"?