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

modifying records from table control

0 Likes
396

hi i have created a table control manually.

the create and delete buttons are working fine but the modify button is acting like delete.

so plz help me with modify code asap

i have done this for delete

&----


*& Module delete_record INPUT

&----


  • text

----


MODULE delete_record INPUT.

IF mark = 'X'.

DELETE TABLE it_zfiloan_plan FROM wa_zfiloan_plan.

DELETE zfiloan_plan FROM wa_zfiloan_plan.

ENDIF.

ENDMODULE. " delete_record INPUT

-


PROCESS AFTER INPUT.

LOOP AT it_zfiloan_plan.

FIELD mark.

MODULE delete_record.

-


saurabh desai

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
376

Hi Saurabh,

Please check the links,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2165e990-0201-0010-5cbb-b5c2ad43...

Regards,

Hema.

    • Reward points if it is useful.

2 REPLIES 2
Read only

Former Member
0 Likes
376

Hi saurabh,

In PBO section

LOOP AT it_final

INTO wa_final

WITH CONTROL tc1

CURSOR tc1-current_line.

ENDLOOP.

In PAI Section

LOOP AT it_final.

CHAIN.

FIELD wa_final-jobcard.

FIELD wa_final-matidtag.

FIELD wa_final-vornr.

FIELD wa_final-ltxa1.

FIELD wa_final-arbpl.

FIELD wa_final-zzpullcontnrqty.

FIELD wa_final-lmnga.

FIELD wa_final-nooftags.

FIELD wa_final-route_to.

FIELD wa_final-comment.

MODULE modify_it_final.

ENDCHAIN.

ENDLOOP.

In the main program:

MODULE modify_it_final INPUT.

MODIFY it_final FROM wa_final INDEX tc1-current_line.

ENDMODULE. " modify_it_final INPUT

Regards,

Ravi

Read only

Former Member
0 Likes
377

Hi Saurabh,

Please check the links,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2165e990-0201-0010-5cbb-b5c2ad43...

Regards,

Hema.

    • Reward points if it is useful.