Business object attachment to workflow
Hi all,
I have a workflow for BO BKPF (accounting document - journal entry). The book "Practical Workflow for SAP" implies I can attach a reference to an SAP Business Object (page 91).
For example, in my workflow for accounting document 1000459516, I'd like to attach accounting document 1000459475 (since there are business reasons why the two documents are related). When I click on the "Create Attachment" button, I presume I need to attach an object of class OBJ, but then I'm not sure what to do next to find 1000459475.
Any direction you can give will be greatly appreciated.
Ron K.
Hello,
I believe you can create a method in your custom business object (ZBKPF, delegated to standard one) & include your custom code in there to create a new instance with another document number using following procedure:
1. Create a variable for the object reference. Use the following command to do this:
DATA <Object> TYPE SWC_OBJECT.
2. Create the object reference. Use the following command to do this:
SWC_CREATE_OBJECT <Object> <ObjectType> <ObjectKey>.
3. Write the object reference into the container using the following macro instruction:
SWC_SET_ELEMENT <Container> <ContainerElement> <Object>.
Then this will allow you to have an instance of another document in workflow container & then you can use it as an attachment in any of the steps of workflow you want.
I hope it helps.
Regards,
Shaurya Jain
Similar Messages
-
Whats the business object attached to the transaction TBB1 ??
Whats the business object attached to the transaction TBB1 .
I am trying to post a loan contract fees and repayment from Treasury to GL.
Thanks ,
Naval BhattBelow is the exact requirement .... but there is no event generate right now ... I feel that there are some configurations need to be done ..for the event to be generated ...
It will be great if you have any idea about the configurations .. .
Objective:
When loan contract fees and repayment are posted from Treasury to GL, workflow should be activated to:
a. Insert a payment block 'Z' in the document (Will need to create a user-table to define the criteria where payment block is to be inserted), AND
b. Route the document for approval.
If amount < 10,000, only 1 level approval
If amount > 10,000, 2 levels approval required. -
Business object and standard workflow for employee training
Hi All,
I have a requirement, where an employee nominates himself to attend a business event type(training) and it goes to his supervisor for approval.
I want to know the business object which can be used for this scenario and any standard workflow.
Thanks and Regards
Balaji E.If you would have done a little searching you would have found it. You can find all the relevant BOR's in the repository. You can find examples of linkages in SWEHR2 and if the right one isn't there you can create yours in SWEHR3.
Please put in a little effort of your own in stead off taking the easy way out and ask for everything here. Also let us know what you already did to solve your problem so you don't get the answers you already tried.
Regards,
Martin -
SAP Business Object attached to FB03 transaction
Hi,
Can any body tell me the SAP business object associated with the transaction FB03?
Also please tell me how we can find it out?
Regards,
Ratheesh BSHi,
BUS3006 is the BO for FB03.
IF yu want to search go to SWO1.
ClicK on Business object repository button from menu bar then select second radion button(Businnes obejcts/organization types).
Then click on ok.Then u will see all application components.from there u canserach BO for u r appliation component.
Thanks -
Hi,
What is the business object attached to MB31? Thanks a lot!
~MarkHi,
Please check this...
You can find more in BAPI transaction. and go to material management and then Inventory Management and then Goods receipt and double clik on create from data and checkout .........
Method CreateFromData
Business object GoodsReceipt
Short description Post Goods Movement
New in Release 45A
Function module BAPI_GOODSMVT_CREATE
ALE message type Does not exist
Regards,
Venkatesh -
Include attribute in business object
Hi Experts,
I am using Business object type BUS2121, i want to include attribute product_type in this.
I have created one subtype for this object type and create this attribute into this.But still it is not coming in BUS2121.
Please suggest your suggestions.
Regards,
Shivshankar.You will not be able to see that when you are trying to display BUS2121 from SWO1. If you mention BUS2121 BO in your Workflow then the Workflow will refer to your custom BO.For example if you use BUS2121 as the business Object for your Workflow. All the custom event that you have mentioned in your custom BO will appear.
Thanks
Arghadip -
Hi ABAP experts,
I am trying to send a SAP mail with a link. When the user clicks on the link
they will jump to a transaction passing the parameters specified in the link.
I have created the business object and want to know how to pass the
parameters in the link.
I have done it in the past so I know it can be done. I just can't seem to remember how....
When I click on the link it goes the transaction but I can't pass the parameters and execute the program....
Thanks for your help in advance.
Please see below code.
ldf_facility = 'DH'.
doc_chng-obj_name = 'mail_att'.
doc_chng-obj_descr = text-024. "Validate Status
*w_objtxt = text-999.
w_objtxt = '<A HREF="sap-object://YJPV_REPT ">Document Status</a>'.
*replace '&&' with ldf_facility into w_objtxt.
*append w_objtxt to t_objtxt.
*replace 'FF' with ldf_filename into w_objtxt.
append w_objtxt to t_objtxt.
w_objtxt = text-025. "Click the link above.
append w_objtxt to t_objtxt.
*Read last line.
describe table t_objtxt lines tab_lines.
read table t_objtxt into w_objtxt index tab_lines.
*Get object document size.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + strlen( w_objtxt ).
*Document entry
clear w_objpack-transf_bin.
*header start
w_objpack-head_start = 1.
w_objpack-head_num = 0.
*number of lines.
w_objpack-body_start = 1.
w_objpack-body_num = tab_lines.
w_objpack-doc_type = 'RAW'.
append w_objpack to t_objpack.
w_objbin = 'YJPV_REPT'.
append w_objbin to t_objbin.
describe table t_objbin lines tab_lines.
*Attached document text
w_objhead = text-033. "IDoc List
append w_objhead to t_objhead.
w_reclist-receiver = sy-uname.
w_reclist-rec_type = 'B'. "'B' = R/3 user 'U' = internet mail
w_reclist-express = 'X'.
append w_reclist to t_reclist.
*Send document
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = doc_chng
put_in_outbox = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
tables
packing_list = t_objpack
object_header = t_objhead
contents_bin = t_objbin
contents_txt = t_objtxt
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = t_reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.Hello,
You can have the fixed width of the colums in excel (No additional spaces in the column) is you use, the seperator between the fields.
For eg : If you are displaying 3 fields in the excel file, say MATNR, WERKS and QUANTITY.
Then you need to
Concatenate matnr
werks
quantity
into ls_contents_bin-line
separated by lc_tab.
append ls_contents_bin to lt_contents_bin.
Here lc_tab is the tab seperator to be declared as follows : -
CONSTANTS : lc_tab TYPE char01 VALUE cl_abap_char_utilities=>horizontal_tab.
The internal table lt_contents_bin is then passed to the table parameters contents_bin of the FM SO_NEW_DOCUMENT_ATT_SEND_API1.
Thanks.
Regards,
Rinkesh Doshi -
Urgent - How to create instance of Business Object in workflow at runtime
Hi all,
I have a requirement as follows...
1) I have a Business Object ISUPOD in which the Key field is Pointof Delivery
2) I am getting the value for Pointof Delivery in the step-2 of my workflow.
3) Now I want to create a instance for the Business Object using this key field value in my Workflow at runtime and use the instance in the following steps.
How can I do this ???
Thanks,
SivagamiHi Ravi,
Thanks for the solution...
There is also a wizard that will generate an activity to do this. We have to just go to Wizards->Include "Create Object Reference" which will create the task with the BO & Method referred by you.
Thanks,
Sivagami -
Attachment list for business objects is not visible
Dear all
I have connected an external server to SAP.
Created repository and created Doc types (say for ex : ZFIINV, ZMM DRW) and created entries using tcode OAC3
now i have assigned my doc type to corresponding Business Objects (BKPF for accounting doc,BUS2105 for purchase requisition ,MKPF for MM related docs)
now i have created entries for my scanned docs in table TOA01.
i can search an display these docs which are already placed there in my content server. but i can not see these documents links entries in the attachment list of corresponding Business objects entries.
for example in BO : BKPF attachment list i cant see al the link entries .
please suggest whether any BO is not published or R/3 application connection to the generic object service is not done?
thanks sandeepHi Sandeep,
I am not totallt getting your point but can suggest following points:
1. Check whether these object are displaying in DIR's as object links.
2. If it is there then it shoud be displayed in document data of those objects.
3. Check that documents are properly checked-in.
Hope this may help.
Regards,
Ravindra -
Document attachment to a business object
Hi All,
I am trying to attach a document to a business object. Can anybody tell me what is the function module I need to use for this ?
Please help.
Regards,
JeetuHi,
If you are using a Web UI, then i suppose you can attach documents or URL's through Attachments assignment block in the transaction.
If not, can you explain in detail, what is the requirement.
Regards,
Krishna -
Error Workflow not assigned to business object
Hi Team,
I am working on CRM 7.0 system
I have a Z business object ,and I have created a new workflow and called one of the method of the z business object.
And I am trying to trigger this workflow through a action definition based on status.while creating the action definition with respect to workflow I am getting the error "assigned BOR object type is not used in any workflows" no F4 values
I have debugged and found that the entry in the table SWDSCNTIDX is not correct.
Kindly request you to guide me how to assign workflow to business object or how can I refer the workflow what I have created in action definition.
Regards,
PoornimaHi,
You have to go the workflow change container element of that BOR e.g. "BUS2010030" and on tab "properties" check the checkbox "IMPORT" and "MANDATORY".
Doing the above BOR will be available in the F4 help of actions profile wizard or conditions. -
Send Business Object Instance as Attachment in SAP mail
Hi All,
The requirement is something like this. I would like to send out a mail to user with a Sales Order Display as an attachment. I did go through some of the documentation that all specifies sending lists, Office Documents as attachments but not Business Objects. Anyone having any idea in acheiving this. If there is any coding associated with that then I would be happy if I could get that too as I am working on a tight timeline.
Best Regards,
SudhindraSudhi,
I am not sure if there is a way to attach an object to a deadline message. All you can define for a DL is the text of the message. You can navigate to the objects in the parent task though. You do that by displaying the DL message then navigate to the Monitored Work Item and click on Available objects tab. You can also try to attach the object to the task itself and see if it is carried to the DL message.
Just did a quick check and there doesn't seem to be a way to attach an object to a workitem in background. And also attachments are not carried to the DL notification. Therefore the only way I know of is as mentioned above to display from the parent WI!!
Cheers,
Ramki.
Message was edited by: Ramki Maley -
Loading documents and attaching them to business objects
Hi,
I am trying to load documents (Word and PDF files) into a content management server linked to a SAP CRM system. The documents need to be attached to business objects such as interaction records (BUS2000126) and service tickets (BUS2000116).
I have experimented with FMs <b>BDS_BUSINESSDOCUMENT_CREATEF</b> and <b>ARCHIV_CONNECTION_INSERT</b> but haven't yet found the right combination of values. The best I have done is to create a link which is visible in the GUI as an icon, but when I double click on it, I get an error message saying that the document does not exist (error 404).
The import parameters I am using in BDS_BUSINESSDOCUMENT_CREATEF are:
LOGICAL_SYSTEM = [blank]
CLASSNAME = ZCSIP_LTR (a value from table TOADV)
CLASSTYPE = BO
CLIENT = [default]
OBJECT_KEY = [blank]
FILES
DOC_COUNT = 00000001
COMP_COUNT = 00000001
COMP_ID = [blank]
DIRECTORY = U:\DOCUMENTS\TEST DATA\
FILENAME = FA.PDF
MIMETYPE = application/pdf
SIGNATURE
DOC_COUNT = 00000001
PROP_NAME = BDS_CONTREP
PROP_VALUE = ZT (my content repository name)
The FM returns a GUID as the OBJECT_KEY ...
Then I am using ARCHIV_CONNECTION_INSERT as follows:
ARCHIV_ID = ZT
ARC_DOC_ID = [GUID returned by BDS_BUSINESSDOCUMENT_CREATEF]
AR_OBJECT = ZCSIP_LTR (a value from table TOADV - as above)
MANDANT = [default client as above]
OBJECT_ID = [GUID of the object I want to attach the document to]
SAP_OBJECT = [Business object identifier] e.g. BUS2000126
DOC_TYPE = PDF
Can what I need to do be achieved through just using BDS_BUSINESSDOCUMENT_CREATEF? What import parameters should I use? What values should they contain?
Many thanks in advance,
PeterHi,
BDS classname BUS2032 and classtype BO
but function module 'BDS_BUSINESSDOCUMENT_CREATEF' and cl_bds_document_set class method
here is the code..
DATA: o_document_set TYPE REF TO cl_bds_document_set,
wa_signature LIKE bapisignat,
i_signature LIKE bapisignat OCCURS 1,
wa_files LIKE bapifiles,
i_files LIKE bapifiles OCCURS 1,
i_object_key LIKE bapibds01-objkey.
CREATE OBJECT o_document_set.
MOVE: '1' TO wa_signature-doc_count,
'1' TO wa_files-doc_count,
'c:\temp' TO wa_files-directory,
'1.jpg' TO wa_files-filename.
APPEND wa_signature TO i_signature.
APPEND wa_files TO i_files.
i_object_key = '0000261877'.
BREAK-POINT.
CALL METHOD o_document_set->create_with_files
EXPORTING
classname = 'BUS2032'
classtype = 'BO'
CHANGING
object_key = i_object_key
files = i_files
signature = i_signature
DATA : files LIkE BAPIFILES OCCURS 1 WITH header line.
files-doc_count = '1'.
files-directory = 'c:\temp\'.
files-filename = '1.jpg'.
APPEND files.
CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREATEF'
EXPORTING
LOGICAL_SYSTEM =
classname = 'BUS2032'
classtype = 'BO'
CLIENT = SY-MANDT
OBJECT_KEY = '0000261877'
IMPORTING
OBJECT_KEY =
tables
files = files
SIGNATURE =
EXCEPTIONS
NOTHING_FOUND = 1
PARAMETER_ERROR = 2
NOT_ALLOWED = 3
ERROR_KPRO = 4
INTERNAL_ERROR = 5
NOT_AUTHORIZED = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF
And check the OSS Note 317250.
<b>Reward points</b>
Regards -
Can we link two business objects in workflow?
Dear All,
Can we link two business objects in workflow?My problem is that I have to take a standard BO for triggering my z workflow .But later in one step I am using BO which is Z as I am calling a standard Sap transaction in one of the method inside Zobject.
Please let me know how to go for it .
Kind Regards,
Anshu KumarHi Anshu,
You can use the standard BO as the BO for your workflow and trigeger the workflow from its event. To pass values from the standard BO to the custom BO used in the activity step, you need to do proper binding between the std and custom BO in the activity step.
Do proper binding between event -> workflow -> task container.
For assistance on binding in workflows refer to the followng links:
http://****************/Tutorials/Workflow/Workflow.htm
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
/people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i
Hope this helps!
Regards,
Saumya -
Tracing usage o business object in workflow
hi
i have a BO ZBUS2031 and i want to find all the workflows using this bo and its components. how to find and trace the workflow?
thkx
PrabhuHi,
Try this..
go to the table HRS1201 and give the business object in the field SWOTP..
Now you will get list of tasks..
Then use the task and go to the transaction SWI11 and give the task to search for the tasks in the workflow..
Thanks
Naren
Maybe you are looking for
-
While I certainly can understand the difficulties that Verizon is having with the Hurricane what I can't understand is why they cannot have adequate people to answer the phone and help people. My phone dropped 6 hours after our power came back on.
-
Hi, I'm in Nova Scotia, Canada and when I try to use Siri it loads and loads and then says, "I'm really sorry about this, but I can't take any requests right now. Please try again in a little while." I rebooted and it didn't fix the problem. I just g
-
Can I use my AirPort express to create a wireless network in my uni room?
So, I'm going to university in september and my room has an ethernet port to connect to the internet. If I buy an AirPort express, can I plug it into the ethernet port to create a wirelss network in my room?
-
Trouble with CS5 off-line help install
Hello, I can't access help files after having recently purchased and installed several copies of CS5 Web Premium. Here's the situation: military site with closed (non-internet) network needs CS5 to replace existing CS3 installation. Windows 32-bit. A
-
Adobe 7 profesional on vista 64
I installed adobe 7 profesional on vista 64 but printer drivers are not installed so it is not possible to generate new pdf files; any help to find out how to install pdmaker in vista?