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

example of BAPI_CUSTOMER_CREATEFROMDATA1

Former Member
0 Likes
1,871

anyone have an example of this bapi?

5 REPLIES 5
Read only

Former Member
0 Likes
918

Hi,

pass the required info to BAPI, and for further help read the documentation.

 call function 'BAPI_CUSTOMER_CREATEFROMDATA1'
       exporting
            pi_personaldata        = wk_personaldata
            pi_opt_personaldata    = wk_opt_personaldata
            PI_COMPANYDATA         =  wk_companydata
            PI_OPT_COMPANYDATA     =  wk_opt_companydata
            pi_copyreference       = wk_copyreference
      importing
           customerno             = wk_customerno
           return                 = wk_return

Regards

Vijay

Read only

0 Likes
918

i know that i looking for the value that i need and must

to put in.

i get message num 838 invalid form addres tax??

what is missing

Read only

0 Likes
918

Check the table TSAD3T for TITLE_MEDI gives some valid values,.

If you don't have any valid entries in that table, you will get this mesage.

Actually in that Function module,

this part of the code triggers that message:

<i><b> SELECT SINGLE * FROM TSAD3T WHERE TITLE_MEDI

= I_BAPIKNA106-TITLE.

IF SY-SUBRC NE 0.

PE_RETURN1-TYPE = 'E'.

SY-MSGID = C_MSG_ID.

SY-MSGNO = '838'.

SY-MSGV1 = SPACE.

SY-MSGV2 = SPACE.

SY-MSGV3 = SPACE.

SY-MSGV4 = SPACE.

ENDIF.</b></i>

Read only

0 Likes
918

I HAVE DATA IN THIS TABLE

I'M ASKING WHAT IS THE FIELD THAT I MUST FILL

IS THERE EXAMPLE?

Read only

0 Likes
918

Hi yehiel,

I think you should give the form_of)_address field a value from one of the following:

Ms.

Mr.

Company

Probably you should pass to TITLE_KEY field of PI_PERSONALDATA structure.