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

Problem with BADi

Former Member
0 Likes
874

Hi All,

I have using a method 'CONDITION_SAVE_EXIT' in BADI 'SD_CONDI_SAVE_A' for VK11 & VK12 transaction, where when customer enters start date as any past/current date the BADI should automatically update the start date to current date. The problem in BADi is the data that is being transferred into function module ('SD_CONDITION_SAVE_EXIT') is being copied into internal tanle and this copied table data is available for me while programming. Now the problem is as data is being copied into internal table when I update this data (the start date) the data is not being reflected in main program and condition is being stroed with user entered date itself.

I came to that the main internal data can be changed using update statement on internal table (sAPLV13A)db_xkondat[].

If so can anybody please specify the coding for this staement, when I code with the statement

MODIFY (sAPLV13A)db_xkondat[] from wa_kondat_new INDEX l_line.

it's giving error messgae AFTER "(SAPLV13A)", THERE MUST BE A SPACE OR EQUIVALENT CHARACTER (";", "," ".").

Thanks in Advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
652

Hi,

Check this thread

[Thread|]

Regards

Dillip Sahoo

3 REPLIES 3
Read only

Former Member
0 Likes
652

Hello,

try it:

MODIFY( sAPLV13A ) db_xkondat[] from wa_kondat_new INDEX l_line.

regards,

R

Read only

Former Member
0 Likes
653

Hi,

Check this thread

[Thread|]

Regards

Dillip Sahoo

Read only

Former Member
0 Likes
652

Hi,

Please close the thread, if issue is solved.

Regards

Dillip