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

BAPI - sales rep.

cathy_liang
Contributor
0 Likes
1,777

Hi experts, pls help solve. Thx.

Request: Use BAPI to create or change sales rep. (T code VPE1, VPE2). Sales data for sales rep. must be contained.

Question: Which FM is appropriate?

ps. HR is not customized. It seems many FMs do not contain sales data.

1 ACCEPTED SOLUTION
Read only

jagesh_lakdawala
Active Participant
0 Likes
1,693

Hi,

As per my understanding from this forum, you want to create/Change the Sale Resp. Details, right?

I found there is no such a FM available for such a purpose, better you can used the BDC Program for the same purpose.

Thanks & Regards

Jagesh

12 REPLIES 12
Read only

jagesh_lakdawala
Active Participant
0 Likes
1,694

Hi,

As per my understanding from this forum, you want to create/Change the Sale Resp. Details, right?

I found there is no such a FM available for such a purpose, better you can used the BDC Program for the same purpose.

Thanks & Regards

Jagesh

Read only

0 Likes
1,693

Hi Jagesh, many thx for your valuable reply. It's just called "create sales representative", "change sales representative". Actions, sales data, personal data and so on can be maintained via them. The T codes are under logistics instead of HR.

Any further advice?

Read only

0 Likes
1,693

Hi Cathy,

What is your exact requirement? Is it to create or change a Sales representative using a BAPI FM?

If it is so why dont you develop a BDC program to create a Sales representative using tcode SHDB.

Then convert this BDC program into a FM. I think this should do your job.

let me know if you have any queries.

Regards,

Raj

Read only

0 Likes
1,693

Hi Cathy,

This is correct beause if you use the BDC program then even you can handle the Errors also if any found.

Thanks & Regards

Jagesh

Read only

0 Likes
1,693

Hi Cathy,

This is correct beause if you use the BDC program then even you can handle the Errors also if any found.

Thanks & Regards

Jagesh

Read only

0 Likes
1,693

Hi Raj, Jagesh,

Yes, create or change sales rep. by using a BAPI FM. BDC is not preferred according to my technician's request. Thus, I have to try it again & again.

Pls help if any.

Read only

0 Likes
1,693

hi Cathy,

Can you tell me what is the purpose of using a BAPI FM? See, you do a BDC recording and you can convert the BDC program into a FM. I think then you can change the attributes of FM or with the help of this FM you can write your own BAPI FM.

Revert.

Raj

Read only

0 Likes
1,693

Hi Raj, the purpose is to transfer sales rep. data between two R/3 systems. If the standard BAPI FM cannot fulfill my request, I have to use BDC according to your suggestion. Thx.

Read only

0 Likes
1,693

Hi Cathy,

if you want to transfer data from one R/3 to another R/3 you can try using LSMW.

tcode; LSMW.

Hope it works.

Regards,

Raj

Read only

0 Likes
1,693

hi cathy,

for ur requirement we dont have exact BAPI so u should try with BDC program.

regards,

raju reddy.

Read only

0 Likes
1,693

Hi Cathy,

I searched for the FM in BOR uing the Tcode:- BAPI, but i have not found any related FM.

and what i think even if u find any FM then u have to check whether it will server ur reuirement or not.

so according to me , BDC is a better option for you.

Thanks & Regards

Jagesh

Read only

Former Member
0 Likes
1,693

Hi Cathy,

U have to find the related BAPI FMs in tcode "BAPI".

in this tcode there r 2 tabs. one is Alphabetical and another one is Hierarchical.

In Hierarchical tab u have to see according to module wise. in that u will get sales rep. If u double click this, then u will get FM which is related to ur reqmt.

In Alphabetical tab, u will find topics according to alpbabets. In this, u have to go to sales rep and double click u will get the FM which is related to ur reqmt.

I think it is ok for u.