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

need logic

Former Member
0 Likes
484

Hi,

I have BAPI_PROMO_CREATE function module created cloned Z fm as Z_BAPI_PROMO_CRATE.

I have to pass custom fileds in to this cloned fm those fields are offer number,offer type,Discount amount,promotion label print indicator,page,space,pictured article indicator.

I created structure for those Fields is ZPROMO.

I am not able to identify where can i pass these fields in the Cloned BAPI function module how can i proceed.

What logic can i enhance?where can i do it?

How can i proceed?

What logic can i do?

Can anyone help regarding this/

Early reply is highly appriciable.

Regards,

Chow.

3 REPLIES 3
Read only

Former Member
0 Likes
427

Create Append structure for one of the BAPI Structure which suits for your requirement.

Then write the Program logic with ur function module to update diffrent custom database tables.

Reward Points

Thanks

Seshu

Read only

0 Likes
427

Hi Seshu,

Can you give an exmpale of code how can i update different custom fields in the database(to write in the Function module)?

Regards,

Chow.

Read only

Former Member
0 Likes
427

Hi Chow,

First ZPROMO should be a transparent table not a structure.

In Z_BAPI_PROMO_CRATE table tab provide ZPROMO. Inside the source code tab.

Loop at ZPROMO.

-

Logic

.

.

Endloop.

Get back if you have any problem.

Reward if helpful.

Younus.