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 for Identification Type and identification Number

Former Member
0 Likes
3,862

Hai Friends

Iam creating a Business Partner .. I added address , telephone details and Email details.So for these details i used BAPI_FS_CREATE_FROM_DATA... So now i want to add identification details , identificaion type and identification number. So i am using BAPI_TRANSACTION_ADD... but iam unable to add .... I used the follwing code ...

l_identcateg LIKE bapibus1006_identification_key occurs 0 with header line,

l_identif LIKE bapibus1006_identification occurs 0 with header line,

FORM identification.

l_identcateg-identificationcategory = 'NRIC'.

l_identcateg-identificationnumber = 'B0123456'.

APPEND l_identcateg.

l_identif-country = 'MY'.

l_identif-region = 'KUL'.

APPEND l_identif.

l_identcateg-identificationcategory = 'NRIC'.

l_identcateg-identificationnumber = 'B0167778'.

APPEND l_identcateg.

l_identif-country = 'MY'.

l_identif-region = 'KUL'.

APPEND l_identif.

ENDFORM.

IF l_bpartner IS NOT INITIAL.

loop at l_identcateg.

CALL FUNCTION 'BAPI_IDENTIFICATION_ADD'

EXPORTING

BUSINESSPARTNER = l_bpartner

IDENTIFICATIONCATEGORY = l_identcateg-identificationcategory

IDENTIFICATIONNUMBER = l_identcateg-identificationnumber

  • IDENTIFICATION = l_identif

TABLES

RETURN = l_returnval2.

endloop.

iam getting the error as identification category NRIC is not found. what is the problem

1 REPLY 1
Read only

Former Member
0 Likes
2,187

Hi Srini,

From the error it looks like the l_identcateg-identificationcategory NRIC doesn't exist in master table TB039(Master data issue),Check for NRIC entry in table TB039.

Rajeev