on 07-22-2010 2:29 PM
Hello Experts,
I want to update the org structure for company code and currency using custom program and i am calling a function module BBP_UPDATE_ATTRIBUTES in the program. But when i run the program the data is geting updated in the tcode PPOSA_BBP for position but it is not getting commited i.e while debugging i am able to see the data in PPOSA_BBP but after the program it is not reflecting in PPOSA_BBP for position..Sample code
IF pv_flag EQ c_x.
call the FM with replace_p eq X
CALL FUNCTION 'BBP_UPDATE_ATTRIBUTES'
EXPORTING
is_object = st_object
scenario_p = 'BBP'
end_date_p = '99991231'
replace_p = 'X'
TABLES
it_attr_p = it_attributes
EXCEPTIONS
object_not_found = 1
times_invalid = 2
update_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
pc_subrc = sy-subrc.
ROLLBACK WORK.
ELSE.
COMMIT WORK AND WAIT.
ENDIF.
ELSE.
call the fm with replace eq space
CALL FUNCTION 'BBP_UPDATE_ATTRIBUTES'
EXPORTING
is_object = st_object
scenario_p = 'BBP'
end_date_p = '99991231'
replace_p = ''
TABLES
it_attr_p = it_attributes
EXCEPTIONS
object_not_found = 1
times_invalid = 2
update_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
pc_subrc = sy-subrc.
ROLLBACK WORK.
ELSE.
COMMIT WORK AND WAIT.
ENDIF.
ENDIF.
Please suggest
see this piece of code
http://wiki.sdn.sap.com/wiki/display/SRM/CodeSample3UpdatingExtendedAttributes%28Storage+Location%29
Muthu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.