10-07-2016 11:12 AM
Hi All,
I am using BAPI 'HRXSS_PER_NEW_P0006_US' to add record in info type 0006 (address) for sub type 0002 (Mailing)
i am using BAPI 'HRXSS_PER_NEW_P0006_US' and after the call in structure record is getting created with default data
but after which i papulate necessary data and call 'HRXSS_PER_NEW_P0006_US' & 'COMMIT i am unable to view the record
in table PA006 or at TCODE level PA20.
Kindly provide your useful comments.
Thanks,
10-07-2016 12:15 PM
Did you look at returned parameter MESSAGES (structure BAPIRET2 like a BAPI RETURN) for error messages before commiting?
Regards,
Raymond
10-07-2016 12:24 PM
Hi Thanks Raymond for your reply.
Yes i did check it is initial with no messages and lw_recd is having the record needs to be created
as below.
Here is the snippet below.
CALL FUNCTION 'HRXSS_PER_NEW_P0006_US'
EXPORTING
infty = lc_inft
subty = lv_subtyp
* ITBLD =
IMPORTING
record = lw_recd
messages = lt_msgs.
if lw_recd is not initial.
adding mandatory values to the structure needs to be created.
lw_recd-name2 = im_empdetails-name2.
lw_recd-stras = im_empdetails-stras.
lw_recd-locat = im_empdetails-locat.
lw_recd-ort01 = im_empdetails-city.
lw_recd-state = im_empdetails-state.
lw_recd-pstlz = im_empdetails-pstlz.
endif.
CALL FUNCTION 'HRXSS_PER_SAVE'
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
I see this BAPI used almost no.
Thanks,
10-07-2016 12:30 PM
Be aware that HRXSS_PER_SAVE too may return errors.
Regards,
Raymond
10-07-2016 12:39 PM
Hi Raymond
I checked but no luck !!
kindly give me the code sample if you find it.
Message Tab is blank with no messages.
Thanks,
10-07-2016 12:50 PM
Regards,
Raymond
10-07-2016 1:42 PM
Hi Raymond
I have used HRXSS_PER_MODIFY_P0006_US to modify the existing record created already and it is working fine no issues
But in this scenario i am creating a new record for sub type 2 hence i am using HRXSS_PER_NEW_P0006_US
Thanks,