Insert new entry on SD Document Flow
Hi,
I'm trying to insert a new entry on SD document without success. Actually I'm trying to use the function SD_DOCUMENT_FLOW_MAINTAIN but it's not working, I don't know what I'm missing. I've tried this one as well: RV_DOCUMENT_FLOW_ADD.
I have to insert a connection between the delivery and the invoice document.
Thanks a lot,
Alexandre.
Hi,
the scenario is somewhat similar to a o/b delivery created from a PO & then u do MIGO & MIRO for billing purposes.
u can link it using tables LIKP,LIPS(for delivery header & item) EKBE(PO history), VBFA (document flow)
in LIKP u have LIFEX which is PO number
EKKO-EBELN = LIKP-LIFEX .
once u have PO number u can proceed fetching MIGO & MIRO docs from EKBE and do the necessary processing.
For reference u can check
FM SD_DELIVERY_DETERM_VIA_LIFEX
BADI LE_SHP_GOODSMOVEMENT.
Regards,
Amit
Similar Messages
-
Transport request prompted when insert new entries for ADCOMP via SM30?
When I insert new entries for table ADCOMP via SM30, the system prompts me for a transport request number when I save the entries. It never asks me the transport no. for any other tables via SM30 edit. Is it something specific to table ADCOMP?
The Table Maintenace Generator is delived by SAP with Authorization group assign to VC (SD User Control), will this cause the issue I have here?
The user is responsible for updating the entries in Production, I had created a Z tcode to run SM30 on this table, at the end, it stills ask for a transport request no.
Can someone help me out on this?
Thanks for your help in advance.I had searched OSS notes before I posted my question here. Note# 726769 mentioned the maintenance view on ADCOMP. As I mentioned in my last reply, I am NOT going to change anything on ADCOMP, I just create a custom view ZV_ADCOMP on top of it and change the attributes on the custom view.
I tried and it seems working. I can enter data via SM30 on ZV_ADCOMP, it allows me to save the data without a transport request.
I think my problem has been solved. Thanks for Rob and Suhas 's reply. Points has been rewarded for both. -
J1IIN reversal accounting document not reflected in SD document flow
Dear Experts,
I have created a billing document and then posted excise through J1IIN. When I reverse the Billing through VF11 there are two accounting documents generated(one for billing and other for Excise reversal). But the Excise reversal accounting entry doesnot update the table J_1IEXCHDR for which again i have to post a reversal for Excise through J1IH. So in order to remove the extra accounting entry for Excise reversal during VF11 we have applied Note No:- 551932 due to which the extra accounting document for reversal of Excise is not getting generated but the reversal of Excise made through J1IH doesnot get reflected in the SD document flow.
Please let us know how to get this entry in SD document flow.
Thanks & Regards
Edited by: Aniruddha B Mahalle on Feb 13, 2012 2:45 PMHi Vikas,
Cancelling J1IIN excise invoice will by default take me in the transaction J1IH what i wanted to know is that can the J1IIN cancellation of excise invoice be shown in the SD document flow. If yes then please let us know the note number to be applied to it.
Thanks & Regards
Edited by: Aniruddha B Mahalle on Feb 16, 2012 8:07 AM -
Need no document flow update for sales order create with reference
Dear All.
We would like to have the ability to create a sales order with reference to another sales order, and have the document flow of the sales order not updated.
Unlike the case of a standard create with reference where the documents are linked, in this case there is no relationship between the documents. The first document is just acting like a template for the remaining documents, to save time during order entry.
We have turned off update of document flow at the line item level.
But I don't see a way for us to turn this off at the header (document level). So wondering if there's another way to turn this off, or possibly through user-exit or VOFM requirement?
Has anyone else done this?
I think that CRM has this functionality, but we're still entering orders through ERP-SD.
Many Thanks!Hello Colleague;
The issue you have reported is SAP standard. The checkbox "Update Document Flow" (V_TVCPAAP-UPFLU) controls document flow at item level. If this checkbox is set to blank, there will be no document flow at item level.
However, the document flow cannot be completely turned off - if the 'update document flow' indicator is blank, you will still see an entry in the document flow, but there will be no update to table VBFA (Sales Document Flow) and the document flow of the predecessor will not be updated at item level (no record in VBFA at item level).
The reason is that the system checks VBAP (Sales Document: Item Data) for fields VGBEL (Document number of the reference document) and VGPOS (Item number of the reference item) for values. You will always have document flow information on header and item level in the successor because it stores this information in table VBAP.
Related with this issue, you can find a Note 53383 for your review.
I hope it can clarify the case.
Regards
Ruy Castro -
Document flow for opportunity via coding
Hello,
has anybody already realized such an requirement:
I want to see in the CRM-Opportunity follow-up documents from SAP ERP.
Therefore i need to add entries to the document flow via coding.
Could you please assist how this can be realized? Any standard functions that can be reused?
Thank you
Best regards
ManfredHi ,
Try using the FM CRM_DOC_FLOW_MAINTAIN_OW'.
Hope this helps.
Regards,
Ruby. -
Block document flow update when creating a new sales document by reference
Hi,
I have set up copy rules to copy a quotation to a new quotation. However, my customer does not want the reference quotation to appear in the document flow. Could you please help me with this.
I have so far:
- Removed the value from 'Update document flow' in the item
- Put an empty value in 'Copy item number from reference' and 'Complete reference' at the header level
Could you please help me,
Thanks,Simply,
Create sales order (va01)
Goto EDIT in menu bar then choose Propose Item or press CTRL + f11 from key board.
Then provide Sales Document with default with/without quantity or selection list.
Hope it can assist you.
Thanks & Regards
JP -
I received this error using apple IPAD version 7.1.2 connecting to cisco WiSM controller version 7.0.250. access point wireless setup using local-hreap.
below are the syslog messages.
: *mmListen: Aug 25 10:38:35.962: %APF-4-CREATE_PMK_CACHE_FAILED: apf_pmkcache.c:561 Attempt to insert PMK to the key cache failed. unable to insert a new entry in PMK cache list.Length: 32. Station:98:fe:94:90:70:ef
: *mmListen: Aug 25 10:38:35.962: %MM-4-PMKCACHE_ADD_FAILED: mm_listen.c:6479 Failed to create PMK/CCKM cache entry for station 98:fe:94:90:70:ef with update from controller
: *dot1xMsgTask: Aug 25 12:09:27.883: %DOT1X-3-MAX_EAP_RETRIES: 1x_auth_pae.c:3092 Max EAP identity request retries (3) exceeded for client 98:fe:94:90:70:ef
: *dot1xMsgTask: Aug 25 12:57:32.503: %DOT1X-3-MAX_EAP_RETRIES: 1x_auth_pae.c:3092 Max EAP identity request retries (3) exceeded for client 98:fe:94:90:70:efHi Ravi Rai,
I'm sorry to hear about the issue you are having with your Mac. If you are having hard freezes or restart issue that don't appear to be drive related, even after reinstalling Mavericks, you may want to try the troubleshooting steps outlined in the following article:
OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem."
Regards,
- Brenden -
SD Document Flow - Duplicate entries
SD Document flow, duplicate entries created for the same Delivery & shipment.
In VT03N document flow same shipment no is shown twice for the sales order & delivery document.SD Document flow, duplicate entries created for the same Delivery & shipment.
In VT03N document flow same shipment no is shown twice for the sales order & delivery document. -
Incorrect VBFA entries for SO - PO document flow
Hi,
We are using a Third Party Sales orders delivery. I am facing a peculiar problem.
Sales Order Created -> PR -> PO Created
After PO is created, user has altered the Material Number and Ref. PR document number in PO for two items. That means the items were swapped (Ex. Items 220 & 230)
GR is finished with confirmation from third party.
When I see the SO document flow for each item say 220 - its shows both the PO items (220 & 230) actually it should be only 230 item inPO. The same case in the document flow of SO Item 230.
Is there any program which corrects the incorrect VBFA entries for SO - PO flow. Already tried with program SDVBFA21 and its not working.
My system is: ECC 6.0
Thanks in advance for your help.
Regards,
AKHi,
Check the note 521416, this note give you a correction report.
I hope this help you,
Regards,
Eduardo -
BAPI to Insert new Address entry to a Customer
Hi,
I am working in ECC 6.0 and i am looking for a BAPI/FM to insert a new Address Entry in ADRC table by passing address number or customer number as an input parameter to the BAPI...for example Nation = 'A' (Arabic) should be the new entry ... Please help me out in this regard ..
Thanks & Regards,
PSKHi,
If i understand your requirement right, i think the BAPI BAPI_BUPA_ADDRESS_ADD will help you add an address against a customer / business partner.
Please check the same, and remember to call BAPI_TRANSACTION_COMMIT after this if you use it.
Hope this helps.
Regards,
Chaitanya -
Sales document flow(vbfa) entries are deleted
Hi Guys,
I am facing a problem with VBFA table. Actually for some delivery i am able to get Sales order number from VBFA table but for some delivery there is no records exists in VBFA table. So just want to know is there any program or Funtion module which delete entries from VBFA table if not then is there any functional configuration which not allowed to enter data in VBFA table. In my system i searched for all the programs and function module but no luck.
I can saw the Sales document flow in VL03N but no entries in VBFA table.
thanks,
BaidyaHi Guys,
Thanks for the replies.
But this is true for some delivery there is no entries in VBFA table but entries are exist in LIKP and LIPS. We are using userexit in sales order program for creating delivery. The Function module which creates delivery inside the USER-EXIT is : BAPI_OUTB_DELIVERY_CREATE_SLS.
If anyone face this type of problem please reply..
Thanks,
Baidya -
QM02 - notifications - update document flow for new action box item
I have added a new action box item on qm02 (notifications). I am created a PO and a delivery. I wish to update the document flow to include these new records.
I am trying to work with function qmlr_create_document_flow without success.
Does anyone know how to do this?
Thanks,
rvHi Rags,
Thanks for your reply.
About your reply:
1) Yes, I was also thinking that 2 preceding docs may not be possible in a doc flow, and had also indicated the same to my customer. However, wanted to be 100% sure that it cannot be done.
2) I cannot go ahead with a Service/Release Order. The requirement is to create a Return Order or a Credit Memo Request (CR) directly from the Service Notification and any other order is not in scope.
I was thinking of something as below:
The Service Notification header is linked to Return Order header only, there are no links at the item level. Is it a feasible solution to have a doc flow between invoice items & return order items, since return order items are not yet linked?....I am just thinking of different things to find a solution!
Thanks again.
Cheers
Vicky -
INSERT in the custom database table to create a new entry.
Hello Experts,
I'm trying to INSERT the entry in my custom databse table that i have created. But I'm not sure what i'm missing as i'm getting the sy-subrc = 4 after the INSERT statement and my records are not added to the database table.
I'm using the INSERT as below:-
APPEND gw_relax TO gt_relax.
INSERT INTO zmm_bg_relax VALUES gw_relax.
Please let me know your helpful responses on this,
Thanks,
NaveenCheck [INSERT dbtab|http://help.sap.com/abapdocu_70/en/ABAPINSERT_SOURCE.htm] [FROM TABLE itab [ACCEPTING DUPLICATE KEYS]|http://help.sap.com/abapdocu_70/en/ABAPINSERT_SOURCE.htm#&ABAP_ALTERNATIVE_2@2@],
If the addition ACCEPTING DUPLICATE KEYS is specified, all rows are inserted for which this is possible. The remaining rows are rejected and sy-subrc is set to 4. The system field sy-dbcnt is set to the number of lines that are inserted.
So if you get sy-subrc = 4, some of the records of the internal table are already contained in the database table.
You cannot put 2 or more records in a database table with the same primary key, primary keys are unique keys with the addition of a not-null constraint. If you need multiple records with a same key, you must add another key to the primary key. (use a timestamp or a counter)
Regards,
Raymond -
Reclamations and returns DOCUMENT FLOW
Hi,
I ve to enhance the QM01/02/03 ,DOCUMENT FLOW when ever we press document flow push button,
QM02-
provide any QN number,
in the menu
extras -> document notifications->document flow->list
rifht now it is showing only 2/3 documents in tree
but it should be modified to
The standard SAP Document Flow, but it must be modified, in order to show all the subsequent documents, and the user must be able to go directly to each subsequent documents.
The flow must follow this hierarchy:
For documents type ZS/ZV
- Purchase Order
- QM Notif.
- Stock transfer or Scrapping
- Return Purchase Order
- Delivery
- Goods issue
- Goods receipt
- Invoice
For document Type: ZC.
- Reference document
- QM Notif.
- Return Sales Order or Credit memo req. or Debit memo req.
- Return invoice or Credit memo or Debit memo
This document flows should be shown for each QN in the QM11 transaction.
menu
Notification -> Display Document flow
It is a network flow that should as is but all the documents it should show.
it is internally calling Business objects
1. Goto transaction "QM02",
2. Provide some QN number
Observe: LIST
GRAPHIC
If u goto the sytem→status u ll find the program SAPLIQS0
Find the Function code responsible for DOCF
It will call a report program RIBELF20
For other GRAPHIC shown in above picture
U will find form exit FORM fcode_docf2_f00
Where we can create new program like above and we can insert our own Z Program.
But if u go to the program level and debug,
There is one FM "DISPLAY_DOCUMENT_FLOW_ALV" that is responsible for such type of display,
No issues,
But internally before that he extracted all the business Objects responsible for that.
How can I get all the business objects that are required to me to show the all the documents that I have already sent to u.
Below are my findings about the document flow at QM11 level.
When ever u press the Display document flow.
The O/P is
1. QM11 is the standard transaction using program RQMELL10.
We can not modify the standard SAP transaction, and insert our code in this program.
Alternative: we have to copy the program in Z namespace and attach the same to Z transaction code.
Confirm the same whether the users are ready to use the Z transaction.
2. Even though they accept for this:
The function Module responsible for the Network type of display is QM11_LESEN_BELEGDATEN_ALLG.
With the input parameters as (a) QN number (b) Business Object i.e. BUS2078 (Quality notification number) (c) maximum number of steps
The standard function module should be used in Z namespace program; the standard function module internally calls one more Function module
NERL_GET_NEIGHBOURHOOD that is responsible for the getting business objects of the corresponding number.
But this function module gets the only three documents data but not the else that are mentioned in the FD.
<b>Kindly provide any function module, which can meet such criteria, and the business objects of the related documents in the flow that is required.</b>Hi,
Goto the T.Code "VOV7".
Select your item category.
Details.
Maintain the Completion rule as "A(Item is completed with the first reference)".
Save.
If you do this after the follow on document is created,the item is completed and you cannot reject the item.
For your second question,
Goto the T.Code "VTLA".
Select your valid combination.
Click on item.Select your item category.Details.
There is a check box called as "Update document flow".Tick that one.
Save.
Regards,
Krishna. -
CRM: How to create document flow
Hello together,
In the process framework I defined a new process which can be started from a sales qutotation. This process loads my own compentent where the user can upload technical objects (such as connection objects or points of delivery) and create a new object set (IsuOrderBasketSet) with the uploades technical objects.
The requirement is to link the quotation with the created object set and vice versa so that the user can see the object set in the quotations assignment block "transaction history" and the qoutation in the object sets assignment block "transaction history".
Does anybody know how I can meet this requirement?
Thanks in advance,
SebastianHi,
I found a solution using the following Code. I have successfully created a document flow between two quotations:
DATA guid_a TYPE crmt_object_guid.
DATA guid_b TYPE crmt_object_guid.
DATA: it_activity_h TYPE crmt_activity_h_wrkt,
ls_activity_h LIKE LINE OF it_activity_h,
it_requested_objects TYPE crmt_object_name_tab,
ls_requested_objects LIKE LINE OF it_requested_objects,
it_orderadm_h TYPE crmt_orderadm_h_wrkt,
ls_orderadm_h LIKE LINE OF it_orderadm_h,
it_doc_flow TYPE crmt_doc_flow_wrkt,
ls_doc_flow LIKE LINE OF it_doc_flow,
it_header_guid TYPE crmt_object_guid_tab,
ls_header_guid LIKE LINE OF it_header_guid.
DATA: it_activity_h_comt TYPE crmt_activity_h_comt,
ls_activity_h_comt LIKE LINE OF it_activity_h_comt,
ct_doc_flow TYPE crmt_doc_flow_comt,
ls_doc_flow_comt LIKE LINE OF ct_doc_flow,
ref_guid TYPE guid_16,
lt_doc_link TYPE crmt_doc_flow_extdt,
ls_doc_link LIKE LINE OF lt_doc_link,
ct_input_fields TYPE crmt_input_field_tab,
ls_input_field TYPE crmt_input_field,
ls_input_field_names TYPE crmt_input_field_names,
log_handle TYPE balloghndl.
DATA: lt_return TYPE TABLE OF bapiret2,
ls_return LIKE LINE OF lt_return.
guid_a = '0026B98B6AD11ED2B9F49BA972EC069E'
guid_b = '0026B98B6AD11ED2B9E27FFF042682F6'
REFRESH it_header_guid.
* Append GUID_A to Header GUID Table
APPEND guid_a TO it_header_guid.
* What should we read
ls_requested_objects = 'ACTIVITY_H'.
APPEND ls_requested_objects TO it_requested_objects.
ls_requested_objects = 'DOC_FLOW'.
APPEND ls_requested_objects TO it_requested_objects.
* Read Activity A
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
it_header_guid = it_header_guid
it_requested_objects = it_requested_objects
IMPORTING
et_orderadm_h = it_orderadm_h
et_activity_h = it_activity_h
et_doc_flow = it_doc_flow.
LOOP AT it_activity_h INTO ls_activity_h.
MOVE-CORRESPONDING ls_activity_h TO ls_activity_h_comt.
APPEND ls_activity_h_comt TO it_activity_h_comt.
ENDLOOP.
* Fill DOC_FLOW Structure
ls_doc_link-objkey_a = guid_a.
ls_doc_link-objtype_a = 'BUS2000115'."BUS2000126'.
ls_doc_link-objkey_b = guid_b.
ls_doc_link-objtype_b = 'BUS2000115'.
ls_doc_link-vona_kind = 'A'.
ls_doc_link-reltype = 'VONA'.
ls_doc_link-brel_kind = 'A'.
APPEND ls_doc_link TO lt_doc_link.
CLEAR: ls_doc_flow_comt.
ls_doc_flow_comt-ref_guid = guid_a.
ls_doc_flow_comt-ref_kind = 'A'.
ls_doc_flow_comt-doc_link[] = lt_doc_link.
APPEND ls_doc_flow_comt TO ct_doc_flow.
* Fill INPUT_FIELDS which indicate what Values where changed
* and had to be updated
ls_input_field_names-fieldname = 'OBJKEY_A'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'OBJTYPE_A'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'OBJKEY_B'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'OBJTYPE_B'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'VONA_KIND'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'RELTYPE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'BREL_KIND'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'BREL_MODE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'RELATIONID'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'RELATION_HANDLE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field-objectname = 'DOC_FLOW'.
ls_input_field-ref_guid = guid_a.
ls_input_field-ref_kind = 'A'.
INSERT ls_input_field INTO TABLE ct_input_fields.
* Update Document Flow
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
CHANGING
ct_input_fields = ct_input_fields
cv_log_handle = log_handle
ct_doc_flow = ct_doc_flow
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
DATA: it_saved_objects TYPE crmt_return_objects.
* Save Changes
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = it_header_guid
iv_update_task_local = 'X'
iv_save_frame_log = 'X'
IMPORTING
et_saved_objects = it_saved_objects.
* Commit Changes
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = ls_return.
Regards,
Saravanan.C
Maybe you are looking for
-
I am using Logic Pro X. I do not know how to fade the volume at the end of a song or raise / lower the volume in an area of the track. I also have a loud instand volume blip in a portion of a track that I would like to lower or eliminate.
-
Hi guys, I'm in a bit of a fix. I'm a college student right now and I'm looking to buy a macintosh. I really like the ibook because its cheap and very portable(I'm going with the 12 inch if I get it.) I saw the imac though and it looks very good for
-
Sound coming from dvd cd drive
My brand new MacBook Pro 15 " is making a periodic sound, which seems to be coming from the DVD CD drive. Is this OK, or should I bring it in to Apple? I am sooo new to Apple, so forgive me for asking.
-
QuickTime Player Gray Screen Help
So yesterday I rented a movie from Itunes.It was really slow and lagging on Itunes so I tried to play it on the quick time player and there was no audio or video, just subtitles showing on the bottom right corner of the QuickTime player. I updated bo
-
I am syncing to Icloud. Iphone and Ipad works fine with this setup, but my Macbook Pro just doesn´t seem to get it. I have all latest updates. I can not detect any different response from the Mac weather I click <Go offline> or I click <Revert to ser