Skip to Content

How to create an update customer data program?

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 04, 2018 at 01:16 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.