on 09-03-2013 5:54 AM
Is there a BAPI or FM for automatically creating Object link for cProjects or Phase or Task. How to find them?
Any other way to do this?
Hi ,
To create object link under phase task or Cproject,
First Call function GUID_CREATE to create a guid for DPR_OBJLINK Table
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = v_objlink_guid.
x_objlink_insert-guid = v_objlink_guid. "DPR_OBJLINK GUID
x_objlink_insert-project_guid = v_project_guid. "DPR_OBJLINK PROJ_GUID
x_objlink_insert-task_guid = v_task_guid. "DPR_OBJLINK TASK_GUID
x_objlink_insert-object_type = "DPR_OBJLINK OBJECT_TYPE
x_objlink_insert-created_by = sy-uname . "DPR_OBJLINK USERNAME
x_objlink_insert-created_on = v_created_on. "DPR_OBJLINK CREATED_ON
x_objlink_insert-object_key = v_quote. "Ex: If your creating a material pass material no
APPEND x_objlink_insert TO it_objlink_insert.
CLEAR x_objlink_insert.
Then Call the below function module
CALL FUNCTION 'DPR_OBJLINK_SAVE'
EXPORTING
it_insert = it_objlink_insert
it_update = it_objlink_update
it_delete = it_objlink_delete.
Thanks,
Rabi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can add object links via the funtion modules:
- BAPI_BUS2175_OBLINK_ADD (for Tasks)
- BAPI_BUS2173_OBLINK_ADD (for Phases)
The function module documentation explains details on usage.
Regards, Andrea
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
7 | |
3 | |
2 | |
1 | |
1 | |
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.