Application Development 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: 

How to create an update customer data program?

wesleynz
Explorer
0 Kudos

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

1 ACCEPTED SOLUTION

DoanManhQuynh
Active Contributor

I suggest you learn about table control, ALV which both give you a list and editable cells feature.

2 REPLIES 2

DoanManhQuynh
Active Contributor

I suggest you learn about table control, ALV which both give you a list and editable cells feature.

matt
Active Contributor
0 Kudos

What do you mean by so I could save them into the original table? What is the "original table"?