cancel
Showing results for 
Search instead for 
Did you mean: 

How to create change document which are not available in sap standard objec

Former Member
0 Kudos

Hi Workflow Gurus,

I am Jnana Ranjan currently we are Implement sap campus management for one of the university client. Here i have implement campus management student admission process workflow.

Here i have searching change document object, but there are no such type of object available sothat i am unable to linkage event . Can any one help me how to create Change Document Object and what are the step . If i created this object then after i am able to create event linkage for admission process workflow.

Please help me and guid me for this issue.

Advance thanks you.

Regards,

Jnana

Accepted Solutions (0)

Answers (3)

Answers (3)

philip_kisloff
Active Participant
0 Kudos

Campus management uses ISR which is based on generic notifications. These notifications use BUS7051 and their workflows are controlled by status management, not change documents. The corresponding transactions are BSVX and BSVY.

Anyway, creating a change document scenario I would think is the direction you would take with an entirely customer-developed application. As you have access to a user exit, why not create the events directly? You only need to use SWEC/BSVX if you don't have access to the user-exit/BADI.

Phil

Former Member
0 Kudos

Thanks Philip,

I haven't thought about status management!

Best wishes,

Florin

Former Member
0 Kudos

Hi Philip,

Thanks for your help.

I have check up Transaction BSVX and BSVY for status management, but unable to do it .Please send me how to create .

Advance thanks you.

Regards,

Jnana

former_member184495
Active Contributor
0 Kudos

Hi JR,

for which BOR object are you searching the change document ?

you can create a change document in SWEC t-code.

Hope it helps.

Aditya

Former Member
0 Kudos

Hi Aditya,

Yes already i created change document in SWEC and it working fine.

BOR- BUS7051

Event- Created.

But when i created student file through T-Code piqST00 and save it , my workflow ievent is not trigger and i am not got any mess from my OutBox.

Please help me it very urgent.

Regards,

JR

Former Member
0 Kudos

Hi Aditya,

My workflow has to be trigger through User Exit/BADI.

Please guide me how to implement userexit for this scenario .

Advance thanks you.

Regards,

Jnana

Former Member
0 Kudos

hi Ranjan,

If you workflow is supposed to start from a user exit or BADI then it should be fairly easy for you to start the WF programmatically calling the API SAP_WAPI_START_WORKFLOW.

Ravi

Former Member
0 Kudos

Hi Ravi,

Thanks for your reply.

I am trying to search BADI/ User Exit for Campus Management Student Admission Process . But still didn't find it , Please let me know how to find this and how to implement for my workflow.

See My requirment:

When the student fill up admission form through TX - PIQSTM and save it , my workflow event will be trigger and notification goes to approver.

Please help me this is very very urgent because this is my client requirment.

My E_Mail id: jnana.ranjan@yahoo.com

Advance thanks you.

Regards,

Jnana Ranjan

Former Member
0 Kudos

Hello Jnana,

you define a new change document object with SCDO (Tools>ABAP Workbench>Development>Other tools>Change documents).

To write a new change document within your transaction(s) use the function module

CHANGEDOCUMENT_SINGLE_CASE

You will also need to set the flag "Change document" on the data element's level.

After that you can create an event creation through SWEC as usual.

<i>Info:</i> The change document is not automatically logged. You will need the function call.

Alternatively you can directly create the event, using function call SWE_EVENT_CREATE which could be also part of some extension, user-exit or own implementations.

If you need additional help, some more information about the tables, the function/transactions that work with are, would be required.

Best regards,

Florin

Former Member
0 Kudos

Hi Florin,

Thanks for your help.

Here i am searching Change document object and finaly got it. The object is MELDUNG, BOR- BUS7051, EVENT- CREATED. I have custonizing like this.

And also i activate same event into my workflow template. But when ever i create student file in Transaction PIQST00 my workflow is not trigger and i am not got any message from my SAP OUTBOX. I thinks missing somethings. Please guide me and help me for this issue.

Advance thanks you.

Regards,

Jnana

Former Member
0 Kudos

Hello Jnana,

some applications do not write a change document on the insert-action, but only on updates/deletion. So please verify what the standard functionality here is (w/o worrying about event triggering):

Use DataBrowser SE16 on db table CDHDR

- OBJECTLCAS = 'MELDUNG'

- OBJECTID = <your number of BUS7051>

<b>If the result is blank</b>, there are no change documents written and you need to find a workaround. Either to create such an insert-changedocument yourself or by <b>creating the event directly</b> (both by using available user exits/business add-ins/enhancement points/or whatever the application might offer).

<b>If the results gives you an entry</b> with CHANGE_IND = 'I' (insert), the change document can be used to trigger the .Created event. Then <b>enable the workflow event log</b>: Transaction SWELS and activate the trace here (check, that there are currently no filter restrictions, or restrict it to business object BUS7051).

Then perform the action again and check the event log via transaction SWEL.

If there are no events for business object BUS7051 your problem will be most probably related to the configuration of transaction SWEC.

If you get the expected event, most probably the started workflow ran into error, or the linkage isn't activated (anymore).

Best wishes,

Florin

Former Member
0 Kudos

Hi Florin,

Thanks for your reply.

Yes i chack it through SE16 OBJECTLCAS = MOLDUNG and OBJRCTID = BUS7051. Here is no table entries for specific key. So that i have to create event directly through User Exit/ BADI. But i have no idea about user exit and badi. Please guide me how to enhancement user exit and what are the steps .

If you have code for this requierment please send me my this Mailid jnana.ranjan@yahoo.com.

Advance thanks you.

Regards,

Jnana

Former Member
0 Kudos

Hi,

in function module HRIQ_ST_NF_OM_SET_EXIT_FM you can find the call that hooks an exit in the frame work. As far as I can see, this is the only available user exit ready for implementation.

The new student is probably created by function module HRIQ_ST_NF_BUFFER_CREATE_ST

If you're running under SAP ECC 6.0 you could use an implicit enhancement point at the end of the function module, that sets a PERFORM event_created ... ON COMMIT. (for example) or something similar.

This is all information that I could give you at present. At last, a call to the function SWE_EVENT_CREATE must happen after/when the new student is written to the database. You can use the transaction SE37 and test the event creation there. Further coding should be implemented with the help of some ABAP expert.

Best regards,

Florin