Change Document Object for Billing: Header Data (VBRK)

Peggy Stammler PStammler at de.imshealth.com
Tue Dec 2 10:50:11 EST 2003


The procedure written from deidre_logan at goodyear.com below will work very
fine, if you additionaly implement SAP Note 413478.
 
Peggy
 
-----Original Message-----
From: Bibby, David [mailto:david.bibby at Linklaters.com]
Sent: Dienstag, 2. Dezember 2003 16:38
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Change Document Object for Billing: Header Data (VBRK)
 
 
Firstly, thank you all for your replies.
In SWEC I can't find FAKTBELEG, so not sure if I can use this anyway.
 
In answer to your question Karen, I'm not sure if a workflow is needed,
that's what I was asked to produce.
 
I'm still fairly inexperienced with SAP and know nothing about message
control but I will see if I can get something to work using your
instructions below.
 
Many Thanks
David
 
 
-----Original Message-----
From: deidre_logan at goodyear.com [mailto:deidre_logan at goodyear.com]
Sent: 02 December 2003 15:10
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Change Document Object for Billing: Header Data (VBRK)
 
 
we had a need to trigger an event on the create or change of an invoice
(table VBRK).
 
We used output determination of the invoice to trigger the event.  There is
an output medium which is Events.  In the config of the output
determination it is setup by document type so you can choose the document
types that you would like to trigger the event.  We set it up for all
document types.
 
here are the instructions that I wrote up:
 
 
                    Trigger Event from an output type.
 
In 4.6 there are additional transmission mediums available.  In this method
we are using transmission medium 9
This is under the assumption that there is not a create or change event in
the SAP object type.
 
Find the SAP Object type for the area you are working in
      for invoices it is VBRK
 
go to transaction SWO1 - Business Object Builder
 
Hit the "Create Subtype" pushbutton
 
fill in the popup screen
 
add the event(s) you need (CREATE or CHANGED)
 
Click on the "Events" folders and hit the create icon
 
Save the event
 
change the status of the event to Implemented
 
Then change the status of the Object type to "Implemented"
 
Then change the status of the Object type to "Released"
 
Save your work
 
Now we need to delegate from VBRK to ZVBRK
 
Execute transaction SWO6
 
Hit the "New Entries" pushbutton
 
Fill in the Object type, a user id and delegation type is the Object type
you just created
 
Hit the Save icon
 
Create an output type
      for Invoices use transaction v/40
 
create a new entry
 
General Data Tab
 
Default Values Tab
 
Storage system Tab
 
Print tab
 
Then double click on the Processing Routine on the left side of the screen
 
Fill in the Processing Program of RSWEMC01
 
Form Routine CREATE_EVENT
 
Then Click on the Partner Function on the left side of the screen
 
Save the information
 
Execute transaction VV31 (VV32)
 
Type in the new output type
 
hit key combinations
 
choose Billing type
 
Hit the execute icon
 
Make sure the transmission medium is 9 and the Time is 4 and the language
is EN
 
choose each Billing type
 
Hit the "communications" pushbutton
 
Fill in the SAP object type
 
And choose the new Event you created.
 
hit the arrow to go through all the Billing types
 
Hit the Save Icon
 
Execute transaction SWE2
 
Link the Object type VBRK and the new event CREATE to the Function module
to be executed
 
Make sure the check box  "Type linkage active" is checked!!!!!!!
 
Save the entry
 
Try and create and change an invoice
 
I hope this helps....
 
dede
(Embedded image moved to file: pic18636.gif)
 
 
 
                      Michelle Molthan
                      <Michelle.Molthan at un         To:
SAP-WUG at MITVMA.MIT.EDU
                      ilever.com>                  cc:      (bcc: Deidre
Logan/NA/GDYR)
                      Sent by: SAP                 Subject: Re: Change
Document Object for Billing:
                      Workflow                     Header Data (VBRK)
                      <Owner-SAP-WUG at MITVM
                      A.MIT.EDU>
 
 
                      12/02/03 09:58 AM
                      Please respond to
                      SAP Workflow Users'
                      Group
 
 
 
 
 
 
    I've been working with this same situtation.  You can use FAKTBELEG, I
believe.
I haven't been able to get the trigger to work correctly though - despite
instruction from OSS to use
this object.
Hope this helps.
Michelle Molthan
michelle.molthan at unilever.com
 
-----Original Message-----
From:   Bibby, David [SMTP:david.bibby at Linklaters.com]
Sent:   Tuesday, December 02, 2003 8:50 AM
To:     SAP-WUG at MITVMA.MIT.EDU
Subject:        Change Document Object for Billing: Header Data (VBRK)
 
Hello,
I was wondering if anyone could help me.
I have a request for  workflow to be be triggered by an insert on table
VBRK
where the insert is for a specific billing type e.g. reversal or credit
note.
When this happens I need to check if any payments have been made against
the
bill that is being reversed or credited.
 
I have been looking in SWEC for an appropriate Change Document Object but
cannot find one.
Has anyone ever done this in the past as I need to trigger the workflow on
an insert to VBRK (Billing: Header Data) ?
 
Thanks
David
 
 
________________________________________________
This message is confidential. It may also be privileged or
otherwise protected by work product immunity or other legal
rules. If you have received it by mistake please let us know
by reply and then delete it from your system; you should not
copy the message or disclose its contents to anyone. All
messages sent to and from Linklaters may be monitored to
ensure compliance with internal policies and to protect  our
business.
 
Please refer to http://www.linklaters.com/regulation for
important information on the regulatory position of the firm.
 


More information about the SAP-WUG mailing list