Badi-Follow up Document
Hi to all...
I have created a Txn Oppt in which i have added a custom field using EEWB.
Now i want to create a follow up doc i.e QT. and i have manintained the copy controls for the same....do i get the custom fields or not..??
Do i need to use COPY_DOC badi...with some FM...
regards,
sanjana
Yes, Rajesh is right. You can use action profile for that kind of stuff. For the action just use the method call COPY_DOCUMENT. And of course you then create several action which trigger this method and in action parameters define which action is triggerred when.
Regards.
Similar Messages
-
I1112 status of Shopping cart- Need to create a follow on document
Hello Experts,
I have one issue in which enduser had created a shopping cart and header status is approved but no follow on document is generated. at line item level the status is Error in Process.
When i ran the report BBP_ALERT_SB_NOTTRANSFERED. then my Shopping cart status changed from I1111(item in transfer) to I1112"error in transmission'..
In Applicaiton monitor : the message is Not transferred to backend and Shopping cart 3100001911: Follow-on document(s) not transferred. we are using Extended Classic Scenario and i dont know why we are getting this issue, we are getting this same issue only for 2 Shopping carts.
Please guide me how i can repost the document so that follow on document will get generated.
I am in ECS scenario with SRM 7.0
Help will be appriciated.
smritiHi,
If it is only the problem with only few carts, Check if any Short dumps are occuring in SRM as Well as in R/3.
We faced a simialr situation and observed that it was resulting in a short dump due to bad coding in one BADI.
regards,
MRao -
SERVICE_OS in CRM_ORDER_MAINTAIN for a follow up document
Hello SAP Guru’s!
Currently I’m working with my customer requirement that begins with the creation of a case after some business rules an appointment should be created with specific information. As I mentioned, the first document is a case and the second document (follow up document) is an appointment. But I´m facing the following issue:
On the second document (appointment) I’m trying to add values to fields KATALOGART, CODE and CODEGRUPPE that correspond to structure SERVICE_OS through function CRM_ORDER_MAINTAIN, I filled out the corresponding structures like: SERVICE, OSSET AND SUBJECT (SUBJECT with fields CODE and CODEGRUPPE).
After filling out the fields I use function CRM_ORDER_SAVE and then CRM_ORDER_COMMIT to create them in the second document (appointmen), but the structure SUBJECT has not been generated in the second document, this happens only with the second document because on the first one (case) it is created without any problems.
Has anyone faced something similar before?
Any guidence would be greatly appreciated.
Kindest Regards,Are you using copy control badi? If yes, which method that are you using?
-
Updation of contract data for all the follow up documents
In crm I have created a service contract. From this I have created a sales-service order as follow up document. Then from this service order one suspension order.
When I am opening the sales-service order in item details tab and then in contract tab we get the contract details. When i press the follow up document button and choose the suspension order the suspension order is opening and this contract details should come here also but it is not coming. Please suggest whether this can be done by configuration or by badi. If by badi then suggest its name.Please not that the contract determination works fine when creating a new complaint ... but when the I am trying to create a complaint from service ticket the item level contract determination is not working fine ...
We have configured that the contract should be determined at the item level only option `F`.
I checked in one of the sap document that this cant be achieved by standard .
http://help.sap.com/saphelp_crm70/helpdata/en/46/5cd7335bbd516fe10000000a114a6b/frameset.htmhttp://help.sap.com/saphelp_crm70/helpdata/en/46/5cd7335bbd516fe10000000a114a6b/frameset.htm
Is there a way we can put this code in the BADI eg; CRM_SERVICE_CONTRACT ?? Please note that there is already an implementation of CRM_SERVICE_CONTRACT which is working fine for new service document creation . -
Classic Scenario: follow on document from BID
Dear All,
We are trying to create a PO from an accepted BID . We can create the PO, and if we check it in the backend system, everything is OK.
Our problem is that we are trying to find in SRM, somewhere that shows us the follow on document of the Bid but we can´t find it.
It´s important to say that as soon as the PO is created, we get a message that contains the PO number. But after that, we can´t find in SRM the PO number anymore.
Is this a lack of SRM or may be another problem? Has anyone face up with this issue? If so, How it was resolved?
Thanks,
Pablo.-I noticed that you have a very similiar Bidding scenario that we have. We can create a bid invitation in SRM and we have used the BADI - BBP_DETERMINE_LOGSYS to indicate to the system to create a purchase order in the backend system after the bid is accepted. We keep getting the following error in SM21: Purchase orders cannot be created without IPC pricing
Did you have to turn on the IPC in order to create the purchase order in R/3? We are on SRM 4.0. Also, if you have used the BBP_DETEMINE_LOGSYS Badi and have example code that might be helpful as well...thanks! -
Document user status not changed from follow-up document
Hi gurus!
My task is to set new user status of primary document (service order) from follow-up document (task) after follow-up document is created.
To do this I've created Badi-impl. of ORDER_SAVE Badi and in PREPARE method when saving newly created follow-up task I'm setting new service order user status using 'CRM_ORDER_CHANGE_STATUS' function. sy-subrc = 0 and, moreover, when in SAP GUI I'm pressing "Back" button I see new user status in service order. But after I'm pressing "Change" or re-open the service order - I see the old user status, so nothing happens at all.
Why could it be?
Thanks in advance.
Best regards,
Alexander KirillovHello Szymon,
The solution is:
1. CALL 'CRM_STATUS_CHANGE_EXTERN_OW'
2. If ok - CALL 'CRM_STATUS_SAVE_OW' passing relevant header/ item GUID
Regards,
Alexander
Edited by: Alexander Kirillov on Jul 17, 2009 6:47 PM -
Attachments with follow-on documents.
Hi SRM Gurus,
I am using SRM classic scenario.
I am creating a shopping cart. I am attaching a text file as an attachment to the Shopping cart.
Once the shopping cart is approved, a follow-on document ( pur.requisition) is created in the backend system but I am not able to get attachment with follow-on doc.
Please advice how can I get this ?
Regards.
PrasMake sure you have the following configured in your system:
1. Create and Activate Implementation for BADI BBP_SC_TRANSFER_BE. Set CV_ATTCH_TRANSFER_ACTIVE paramater in SRM
2. Configure Document Type in R/3
- Transaction DC10 - Add a New Document Type SRM (if not already exists). Set 'Use KPro', 'Version Assign' and 'Change Docs'. Set the Internal and External Number Range (02 and 01). Use MCDOKZNR as Number Exit. Ver No. Incr = 1 and Set the File Size (Usually 10000000 bytes).
Once the Document Type is created, define Object links to PO Item and Pur Req Item. Use - Screen Number 247 and Screen Number 248 with Valuation Object of EBAN and EKPO for Objects EBAN (PReq) and EKPO (PO) for Doc Type SRM.
3. Check whether you have all the workstation applications configured in R/3 (DOC, TXT, PDF, XLS etc) in Transaction DC30.
Additional Checks:
- If you are transferring attachments and not link - make sure you have Implemented OSS Note: 820897 in R/3.
If the above settings does not give you results - you may want to debug and find out the exact error message while creating the attachment.
- Check the R/3 Release and get the corresponding driver from BBP_FUNCTION_MAP table with Object Type as DOCUMENT and Method - CreateFromData.
- Set the Breakpoint at Function Module BAPI_DOCUMENT_CREATE2 and at CVAPI_DOC_CHECKIN in the above driver. These Function Modules will return you the exact error message.
Thanks,
Ashish -
Again: Define Number Ranges per Backend System for Follow-on Documents
Obviously I have a problem with this setting! What have I done wrong?
We are running ECS with multiple Backends. We want to assign different number ranges to each backend PO.
Our settings:
- Number Range SC and Follow On Documents: 01 0100000000 - 0199999999 (internal) and
P1 3010000000 - 3019999999 (internal)
- Number Range local PO: P0 3000000000 - 3999999999 (internal)
- Number Ranges per Backend System for Follow-on Documents: XYZCLNT010 PO number range = P1
- Transaction Type ZRM assigned to number range PO
- Backend Document Type ZRM assigned to an external number range P1 3010000000 - 3019999999
I would have expected following system behaviour:
System creates the local PO within number range P0 and creates in backend XYZCLNT010 a PO within number range P1.
But instead SRM tries to post the backend PO with a number from range P0.
What is wrong?
Rgds.
DieterHi. I do not know how to fix your problem as standard, I have never done the same setup, but BADI BBP_BS_GROUP_BE will allow you to choose different number ranges in method GET_NUMBER_OR_RANGE.
Does that help at all?
Regards,
Dave. -
Create PR as follow on document in SOCO
We're on SRM 5 WAS 7.00. and following support packages.
SRM_PLUS 550 0015 SAPKIBK015
SRM_SERVER 550 0015 SAPKIBKT15
Overview
We've a special requirement, to create PR's in the back end system instead of PO, from the SOCO based on some special conditions. A BAdI has been identified for this purpose "BBP_TARGET_OBJTYPE". Using code from the standars implementation the conditions have been fit in.
Question.
When creating PO from the worklist in the SOCO, the BAdI is triggered and "TARGET_OBJTYPE" is set to PR. Once the program has executed the new screen shown is title says "Bid Invitation" and an error message " You have either failed to select an item, or you cannot create a follow-on document due to an error that has occurred". I tried looking for it on sap notes but no luck.
Activated debugging, and in there I found that the PR no. is generated and there is no messages in the transfer process either
-> CL_BBP_SC_TRANSFER_SOURCING.
Any hint to what the problem can be ?Please check the documentation for the BAdI. It clearly fulfills my requirement. I have identified, that the standard screens 4001 of program BBP_SOCO_UI_ITS has some drawbacks, like it does not cater for the change of labels, etc...
Moreover, the screen is in a modified/active status instead of active status.
Using Business Add-In BBP_TARGET_OBJTYPE you can define your own criteria for determining the target objects in the backend system.
As standard, the target objects are created according to the settings in Customizing, see Define Objects in Backend System (Purch. Reqs, Reservations, Purch. Orders).
The type of the target object is then placed in the field CT_ITEM-PACK_OBJTYPE.
The following object types exist:
Object type Meaning
BUS2093 Reservation
BUS2105 Purchase requisition
BUS2012 Purchase order
Then the BAdI BBP_TARGET_OBJTYPE is called up.
Using method
DETERMINE_TARGET_OBJECT_TYPES
you can determine the target object depending on other item data (or any combination thereof) and overwrite the field CT_ITEM-PACK_OBJTYPE.
Ensure that you choose logical combinations. For example, you cannot create a reservation without a product number.
Example
The system has determined via Customizing that a purchase order is to be created. However, you prefer to have certain users restricted to creating purchase requisitions. Then you overwrite field CT_ITEM-PACK_OBJTYPE with BUS2105. -
CRM_ORDER_DELETE does not delete salesorders with follow-up documents
Hi All,
in my CRM 5.2 i have to delte many sales orders exchanged in past from R/3 to CRM via middleware.
There is report CRM_ORDER_DELETE to delete sales document filtering with transacion type and sales order code, and it is ok;
but the problem is all the sales orders that have one or more follow-up documents (visbile in CRMD_ORDER transaction) are not deleted by the program and the message is as follow:
The following document could not be deleted: 8101167607
Object ORDERADM_I cannot be deleted
Number of documents deleted: 0
Number of documents not deleted: 1
How can I delete them ?
Thanks and Regards,Hi
you should in first iteration delete last documents from documents' flows,
and later your sales orders.
You cannot delete documents that are in the middle or beginning of doc flow.
Regards
Radek -
Details of Follow-up documents at Table level
Dear All,
I want to know if there is any table(s) which contains the follow-up documents numbers that gets generated in CRM.
For example,
1. first IC ticket will be generated,
2. then product complaint will be generated as a follow up transaction of IC ticket.
3. Compensation request transaction will be generated as a follow up of product complaint.
I am already able to get this follow up using BAPI but I want to know how to get this at Database level so as to make report to perform faster.
regards,
Amey MogareHi Amey,
one possibility is to read doc flow using FM 'CRM_DOC_FLOW_READ_DB'.
If you really want to use the tables, here's the description:
1. Table 'SRRELROLES' with OBJKEY = GUID of order --> get the ROLE_ID
2. With ROLE_ID go to table 'CRMD_BINREL' field ROLE_A / B (depends on predecessor / successor)
3. With the other role ( ROLE_A / B) you can go back to table 'SRRELROLES' and get the GUID by the OBJKEY.
Hope, this is useful.
Best regards,
Claudia -
Delete follow up document recursive
Hi folks,
I' writing a report in order to delete orders but before deleteing these orders i have to delete the follow-up documents. in some cases follow-up document also have another follow up, so before delete the first on i have to delete the last one and the the Order. i wrote loop at lt_doc_flow into ls_doc_flow.
lv_objects_to_delete = ls_doc_flow-REF_GUID.
insert ls_doc_flow-REF_GUID into table lt_objects_to_delete.
endloop.
and the call function'crm-order_delete.
in order to delte all docflow, but it doesn't work.
do u have any idea , how i can delete it recursive?
thanks .Hello Liliane
You have to define a recursive function in order to delete your documents.
The following sample reports shows how to do that:
*& Report ZUS_SDN_RECURSIVE_CALLS
REPORT zus_sdn_recursive_calls.
TYPE-POOLS: abap.
TYPES: BEGIN OF ty_s_doc.
TYPES: guid(3) TYPE n.
TYPES: ref_guid(3) TYPE n.
TYPES: text(50) TYPE c.
TYPES: deleted TYPE abap_bool.
TYPES: END OF ty_s_doc.
TYPES: ty_t_doc TYPE STANDARD TABLE OF ty_s_doc
WITH DEFAULT KEY.
DATA:
gs_doc TYPE ty_s_doc,
gt_doc TYPE ty_t_doc.
START-OF-SELECTION.
PERFORM fill_docs.
SORT gt_doc BY guid ref_guid.
WRITE: / 'Flow of Documents:'.
PERFORM write_docs.
WRITE: / 'Deleted Documents:'.
LOOP AT gt_doc INTO gs_doc
WHERE ( deleted = abap_false ).
PERFORM delete_doc
USING gs_doc.
ENDLOOP.
write: / syst-uline.
SKIP 2.
" Reset delete flag
gs_doc-deleted = abap_false.
MODIFY gt_doc FROM gs_doc
TRANSPORTING deleted
WHERE ( deleted = abap_true ).
" Change sorting
SORT gt_doc BY ref_guid.
WRITE: / 'Flow of Documents:'.
PERFORM write_docs.
WRITE: / 'Deleted Documents:'.
LOOP AT gt_doc INTO gs_doc
WHERE ( deleted = abap_false ).
PERFORM delete_doc
USING gs_doc.
ENDLOOP.
END-OF-SELECTION.
*& Form FILL_DOCS
* text
* --> p1 text
* <-- p2 text
FORM fill_docs .
* define local data
DATA:
ls_doc TYPE ty_s_doc.
" Example: Doc_001 -> referenced by Doc_011 -> referenced by Doc_101
" Doc_002 -> Doc_012, Doc_013 -> Doc_112, Doc_113
" Doc_003 -> not referenced
CLEAR: ls_doc.
ls_doc-guid = '001'.
ls_doc-ref_guid = '000'. " no reference to other document
ls_doc-text = 'Document 001'.
APPEND ls_doc TO gt_doc.
CLEAR: ls_doc.
ls_doc-guid = '011'.
ls_doc-ref_guid = '001'.
ls_doc-text = 'Document 011'.
APPEND ls_doc TO gt_doc.
CLEAR: ls_doc.
ls_doc-guid = '101'.
ls_doc-ref_guid = '011'.
ls_doc-text = 'Document 101'.
APPEND ls_doc TO gt_doc.
CLEAR: ls_doc.
ls_doc-guid = '002'.
ls_doc-ref_guid = '000'. " no reference to other document
ls_doc-text = 'Document 002'.
APPEND ls_doc TO gt_doc.
CLEAR: ls_doc.
ls_doc-guid = '012'.
ls_doc-ref_guid = '002'.
ls_doc-text = 'Document 012'.
APPEND ls_doc TO gt_doc.
CLEAR: ls_doc.
ls_doc-guid = '013'.
ls_doc-ref_guid = '002'.
ls_doc-text = 'Document 013'.
APPEND ls_doc TO gt_doc.
CLEAR: ls_doc.
ls_doc-guid = '112'.
ls_doc-ref_guid = '012'.
ls_doc-text = 'Document 112'.
APPEND ls_doc TO gt_doc.
CLEAR: ls_doc.
ls_doc-guid = '113'.
ls_doc-ref_guid = '013'.
ls_doc-text = 'Document 113'.
APPEND ls_doc TO gt_doc.
CLEAR: ls_doc.
ls_doc-guid = '004'.
ls_doc-ref_guid = '000'. " no reference to other document
ls_doc-text = 'Document 004'.
APPEND ls_doc TO gt_doc.
ENDFORM. " FILL_DOCS
*& Form delete_doc
* text
* -->P_GS_DOC_GUID text
FORM delete_doc
USING
value(us_doc) TYPE ty_s_doc.
* define local data
DATA:
ls_doc TYPE ty_s_doc.
LOOP AT gt_doc INTO ls_doc
WHERE ( ref_guid = us_doc-guid )
AND ( deleted = abap_false ).
PERFORM delete_doc
USING ls_doc.
ENDLOOP.
IF ( syst-subrc NE 0 ).
us_doc-deleted = abap_true.
MODIFY gt_doc FROM us_doc
TRANSPORTING deleted
WHERE ( guid = us_doc-guid ).
WRITE: / us_doc-guid, us_doc-text+0(15), us_doc-ref_guid.
ENDIF.
ENDFORM. " delete_doc
*& Form WRITE_DOCS
* text
* --> p1 text
* <-- p2 text
FORM write_docs .
* define local data
DATA:
ls_doc TYPE ty_s_doc.
LOOP AT gt_doc INTO ls_doc.
WRITE: / ls_doc-guid, ls_doc-text+0(15), ls_doc-ref_guid.
ENDLOOP.
SKIP.
ENDFORM. " WRITE_DOCS
Regards
Uwe -
Hi,
Is it possible to have follow-up document in PCUI?
We have configured follow-up document for a contract this is not visible in PCUI.
Is there any config required?
Thanks
KamalHi Kamal
In some cases like ;; from Lead to Opportunity , you will see create opportunity on the toolbar. but, some cases like custom made transactions you wont have visibility of these transactions as a follow-up
for this you will have to add a button to toolbar button, and also the logic behind it. Most of the cases portal guys will do this
reward points if this works -
Problem in changing follow up document Transaction type using CRM_COPY_BADI
Hi,
I am creating follow up document ( Service Contract ) to another service contract. Now Based on a condition, in CRM_COPY_BADI, I have to change the follow up document type forcefully to Service Contract Quotation.
Menas, eventhough I select ZSC, I have to change it to ZSCQ using CRM_COPY_BADi.
Can you please help me, how to do it.
Thanks
SandeepYes, Rajesh is right. You can use action profile for that kind of stuff. For the action just use the method call COPY_DOCUMENT. And of course you then create several action which trigger this method and in action parameters define which action is triggerred when.
Regards. -
Service Order as follow up document for Service Ticket
Hi,
we are using CRM 2005 and the IC-Webclient for the service callcenter.
Is it somehow possible to create a service order as follow up document out of a service ticket in IC-Webclient?
Thanks a lot.
Best regards
ManfredHi,
The Service Ticket itself is Service Order. The difference between them is that the Service Ticket does not have Item Category which is present in the Service Order.
Between your transaction code maintian the copy controls.
Hope it helps.
Regards,
Rajiv
Maybe you are looking for
-
Low resolution on photo in iphoto
does anyone know how to overide the low resolution error message i get when trying to purchase a book via Iphoto
-
Purchasing song problem...?
I have $1.35 left on my account balance, tried to purchase $1.29 song and it told me I have insufficient funds. Any help?
-
Hello, I have my DSL modem connected to the "Internet" port of my UC320. I sometimes, more often than I like to actually, need to connect to the modem to restart update passwords etc. If am connected to the UC320 I can not reach the IP address of th
-
Can I purchase Applecare?
Can I purchase AppleCare on a refurbished iPhone 5 through Groupon.com? Here's an email that I sent them asking a couple questions and here's their response. Q: What does it mean by refurbished? Are there visible marks on the phones from being used?
-
Irqbalance quits unexpectedly on core2duo
Since the last update of irqbalance (to 0.56-3) I noticed that the irqbalance daemon does not start at all. this is observed on Core2Duo L9400 and P7350. Here is the debug, collected from the daemon: [root@bluemoon ~]# irqbalance --debug Package 0: c