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: 

Table Field Populated with Data from TCode VD03

Former Member
0 Kudos

Hi,

I have a custom table with 2 fields namely, Customer Number and Customer Name. In SM30, when I provide the customer number, the customer name should be automatically populated via tcode VD03. I should not have to manually enter the cutomer name. Is this possible? Your advice will be greatly appreciated. Many thanks.

1 ACCEPTED SOLUTION

umashankar_sahu
Active Participant
0 Kudos

Hi Dear,

Try this

In table maintenance generator

GO to

Environment->Modification-->Events.

on save event write a logic to validate a Customer No. entered from KNA1 and if its validated then select a NAME1 from KNA1 and update the same .

Hope this will resolve your problem.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Check badi "CUSTOMER_ADD_DATA"

Regards

Vinod

umashankar_sahu
Active Participant
0 Kudos

Hi Dear,

Try this

In table maintenance generator

GO to

Environment->Modification-->Events.

on save event write a logic to validate a Customer No. entered from KNA1 and if its validated then select a NAME1 from KNA1 and update the same .

Hope this will resolve your problem.

0 Kudos

Hi Uma, In table maintenance generator when I GO to Environment->Modification-->Events, I am taken to SM30 screen. How do I enter code for 'Save' event? I think I am not being able to create an event. Your idea seems easy to implement. Kindly advice.

For now, I am trying to create a BADI, as per Vinod's suggestion.

Many Thanks.

0 Kudos

Hi Dear

Please check below links

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3188] [original link is broken] [original link is broken] [original link is broken];

[]

0 Kudos

Hi Uma,

Many thanks to you. The links you provided were great and the issue has been resolved.