2007 Apr 09 3:22 AM
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
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
2007 Apr 09 4:05 PM
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