BAPI_CRM_SAVE
Hello Guyes,
In my CRM inbound Queue i see Q name and if i click once it shows me Q name R3AD* and Function Module (FM) BAPI_CRM_SAVE, Does anyone know what is this FM? where can i see the mapping of this FM? (dont tell me SE37 pls)
Thanks in advance!
Best regards,
lata.
Edited by: latha reddy on Feb 8, 2008 8:14 AM
Edited by: latha reddy on Feb 18, 2008 8:35 PM
Latha,
You are right. The FM BAP_CRM_SAVE is not directly defined in any flow logic. This is called every time whenever a save event is triggered on CRM.
With respect to middleware, whenever you initiate initial load or delta load this FM is called internally through either the FM attached to the adapter object (e.g. DNL_CUST_ACGRPB) or through the FM SAPMSSY1
I don't know exactly at what point of time it is called. We have to debug and check the calling point.
Do not forget to reward the useful answers
Regards,
Paul Kondaveeti
Similar Messages
-
BAPI_CRM_SAVE is in running state.
Hi All
I am running into an issue where a request in SMQ2 of SRM Environment hangs in status "Running".
When I double click on it I get a screen that states BAPI_CRM_SAVE is running. It remains in that state.
When I searched in SAP Notes I got following suggestion.
309734 CRM/EBP server: General analysis of initial load
A request hangs in status "Running":
The cause might be that the "Logical Unit" field was not filled when the request was defined. Check to see if this is the case here. If so, enter a logical unit for the request in Transaction SM30, change the request status to "Manually", and start the request again.
I am not sure what needs to be done. Can you assist?
NikhilHi,
My Suspicion is your TNSNAMES.ORA is not configured properly. Please refer the following will be useful to resolve the error.
Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
- Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
- Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
- Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
- If you are using directory naming:
- Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
- Verify that the LDAP directory server is up and that it is accessible.
- Verify that the net service name or database name used as the connect identifier is configured in the directory.
- Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
- If you are using easy connect naming:
- Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
- Make sure the host, port and service name specified are correct.
- Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming. -
Logical system name to be updated while client copy--URGENT HELP REQUIRED
Hello All,
I have a query regarding the "Logical System name" updation during Client copy.
When we make a client copy(SRM Masters) for the Production system(SRM),the Old Logical system name for backend(which is attached to the SRM masters) gets copied to the new Client (Copy) which needs to be updated.
There is a std transaction BDLS through whcih w e can change the current Logical system name to a new one but this seems to work fine for System copy but not for Client copy.
So when i make a client copy of SRM masters for Production system,is there any other std way wherein i can change the "Logical system name " for the backend or do i have to write a CUSTOM program wherein entries for the Backend Logical system name in tables like CRMMLSGUID will be updated with the new Logical system name?
Any help on this is appreciated.
Thanks & Regards,
Disha.Disha,
Yes, I did it twice and it worked fine.
The R/3 GUID is sent by the OLTP system (R/3) in R/3 message header.
SRM checks this GUID in CRMMLSGUID table.
If is not the same one, then replication process fails.
The only solution I found was to delete this entry. It is automatically recreated with the new GUID with the next replication, with FM CRMT_OLTP_LOGSYS1, called in BAPI_CRM_SAVE.
Look at OSS note 588701 & 765018 for deletion of CRMMLSGUID.
The issue is exactly ours: around system/client copy.
In an CRM environment, this is more critical, because we make a huge use of the middleware. But in our case, and especially after system/client copies, we can go, even if SAP does not guaranty anything, because we don't care about "old" replicated data (I don't care about old BDOCs, that should even be deleted after processing).
We have to take some risks sometimes...
Rgds
Christophe -
How to delete the structure created from Tx: EEWB ?
Hi SAP Gurus
I have an issue at hand. I have added three components in the structure <b>BUS000___I</b> and the components are <b>ZZ1, ZZ2, ZZ3</b>, I was following the <b>EEWB</b> wizard and from there these three components were made, now I cannot delete these components directly from <b>SE11</b>. Because after adding these components the system is not allowing me to do so and is asking for the access code.
I am getting a syntax error in all the tx where <b>Business Partner</b> is used. No old versions for this structure was found in the system. The only structure that has come into this BP structure is <b>ZBSTC0000000000</b> followed by three data elements of this structure.
I know the <b>Project and the enhancement</b> that was created and I have tried deleting the enhancement from EEWB but when i try deleting it, it always fall into an intermediate stage where it leaves some entries and due to these left over entries these errors are coming.
Another imp thing is that the structure that i have reported is a newly created one I cannot find this anywhere else. looks like this structure was created after executing the EEWB transaction only.
Now when I try activating the enhancement again the <b>magic wand button</b> used to activate an enhancement and the <b>generate button</b> is also inactive in EEWB and now it is not getting activated, even after rt click enhancement then clicking change or by clicking on the edit-change button on the top tool bar. Do you think if I create another enhancement this button might get activated?
Please let me know how do I delete these components.
Kindly reply at the earliest.
Regards,
AmitHi, I had the similar problem (and here the solution):
Spezifikation: Deletion of EEWB fields manually, error in middleware bdoc,
Kurztext
Deletion of EEWB fields manually, error in middleware bdoc,
Langtext
BDOC-Error from function module BAPI_CRM_SAVE. no further using of the
middleware for sales activities (sales order) possible.
see steps for reconstruction
Schritte zur Rekonstruktion
what done before:
- added one field via transaction code EEWB to business object
SALES_TRANSACTION (Verkaufsvorgang), "Erweiterungstyp CUSTOMER_I
(Positions-Zusatzextension erweitern) with one existing data element
type Z_, Geschäftsvorgangstypen = Verkauf
no selection of "Datenaustausch mit den Mobile Clients",
"Datenaustausch mit R/3 Supply Chain Execution" or
"Business Information Warehouse".
- deleted the extension manually, deleted the eewb project manually
(successful)
- got an short dump on saving a sales order via transaction code
CRMD_ORDER:
dump type: LOAD_TYPE_VERSION_MISMATCH
Der Abbruch trat im ABAP-Programm "SAPLCRM_UPLOAD" auf, und zwar in
"CRM_UPLOAD_BUS_TRANS_MSG". Das Hauptprogramm war "CRM_1O_FRAME ".
Im Quelltext befindet sich die Abbruchstelle in Zeile 5
des (Include-)Programms "LCRM_UPLOAD$18".
(bei Anwahl des Editors: 50) der ABAP-Source "LCRM_UPLOAD$18".
000040 *********************************************************
FUNCTION $$UNIT$$ CRM_UPLOAD_BUS_TRANS_MSG
000060
000070 IMPORTING
000080 REFERENCE(IV_GUID) TYPE !CRMT_OBJECT_GUID
000090 EXPORTING
000100 REFERENCE(ES_BDOC_HEADER) TYPE !SMW3_FHD
000110 REFERENCE(ES_BDOC_MESSAGE) TYPE !/1CRMG0/BUS_TRANS_MSG
000120 REFERENCE(ES_BUS_TRANS_MSG) TYPE !BAD_BUS_TRANSN_MESSAGE
000130 EXCEPTIONS
000140 !ERROR_OCCURED .
- re-generation of a lot of of function modules
(e.g. CRM_UPLOAD_BUS_TRANS_MSG)
and some corresponding structures (e.g. CRMT_CUSTOMER_I_COM)
- fixed the short dumps with this gereration
Current Errors:
- the crm middleware (mBdoc) cannot copy sales orders from crm to r/3
- via transaction code CRMD_ORDER i copy an existing sales order and
save or try to change just one field and save.
- saving is succesfull (message type s), but on changing again, the
order is locked by middleware
- bdoc in transaction SMW02 is on state yellow "An Empfänger gesendet
(nicht alle haben bestätigt) BUS_TRANS_MSG"
- in transaction code SMW02 occurs:
Mdt Benutzer Funktionsbaustein Queue-Name
100 CPIC_FILO BAPI_CRM_SAVE R3AD_SAL_ERR
Datum Zeit
12.04.2007 17:52:10
Statustext
Inkonsistenz zwischen den DDIC-Typen CRMT_CUSTOMER_I_COMT und ABAP-
genera
SOLUTION:
re-generation of *ALL* code which using structure CRMT_CUSTOMER_I_COMT had solved it. -
Hello,
On creating a service order in CRM, the purchase requisition is created automatically in R/3 for the spare parts entered.
But this PR information is not getting updated in the service order's document flow in CRM.
I analysed the flow and found that PR gets successfully created and sends back the document flow data to CRM inbound queue.
The BDoc type involved is CRM_SRV_XTN.
In it's Extended part, there is a field called ORDERADM_H_GUID which is correctly filled in the BAPIMTCS structure in R/3 which is converted to probably XML format through macro MOVE_CASTING and sent to CRM inbound queue (function module BAPI_CRM_SAVE).
However, on debugging the respective inbound queue in CRM, I noticed that the field ORDERADM_H_GUID value is not the same as filled in R/3 but some CONSTANT value like 00230023002300560023002300230023 in all the cases.
Also, FYI, the fieldu2019s value in R3 after conversion looks like as following u2013
#########################0000000000 ########䣴Ώ삷#耀諣뢮######## 48F4038FC0B70093E10080008AE3B8AE
While in CRM i.e. FM BAPI_CRM_SAVE it looks as follows u2013
#########################0000000000 ######################## 48F4038FC0B70093E10080008AE3B8AE
So there I feel that the value what is sent from R/3 is not the same as recieved in CRM, on XML conversion.
Please advise what could be the reason for this anomaly.
Thanks and regards,
Manishunfortunately document flow in PS is not like in SD
only in ECP there is a limited possibility
you can see the line item report and activate the relationship browser which will give the details of the documents related to that posting
other than that nothing -
CRM SYSFAIL - Error when decompressing during Import
Hi All,
We are getting error in SMQ2 "Error when decompressing during Import"
in Function module BAPI_CRM_SAVE and status is SYSFAIL. We are having CRM 4.0 and patch level 7.
Please see the source code extract
001920 ********************************************************************
001930 * define a little macro to add a table name to l_t_tables
001940 DEFINE lmacro_add_import_table.
001950 l_t_tables-name = 'T_&1&2&3&4'.
001960 l_t_tables-itabname = 'C_S_BLOCK-T_&1&2&3&4'.
001970 append l_t_tables.
001980 END-OF-DEFINITION.
001990 * define which tables have to be imported
002000 macro_execute: lmacro_add_import_table.
002010 lmacro_add_import_table:
002020 m h d r,
002030 p a r 1,
002040 p a r 2.
002050 * carry out the IMPORT statement to decompress data
> IMPORT (l_t_tables)
002070 FROM DATABASE baldat(al)
002080 ID i_s_ldat-log_handle
002090 USING baldat_import
002100 IGNORING CONVERSION ERRORS.
002110
002120 ENDFORM. "log_block_decompress
Thanks & Regards
SujithHi Andersen,
You should be a system administrator to do above task.
Deepak Jangra -
Queue to ERP stopped Status SYSFAIL
Hallo all,
yesterday evening we got the Problem that our Queue to ERP-System stopped. Status is SYSFAIL and and error CALL_FUNCTION_LZ_EXPAND_ERROR occured. Unfortunately theres no text available for this dump. The dump is produced in Program SAPLSMOUTIL in BAPI_CRM_SAVE.
Does anyone have an idea, what's the reason for this failure, or how to resolve it?
Thanks a lot for your help.
Best regards,
DanielHi Frederic and Fredric,
thanks for your further ideas. The dump info didn't contain much info...
We had opened an OSS-message on friday, because it was important to solve this problem fast. SAP meant to delete the entries in the cue, because it seemed that the data got corrupted because of hardware or network errors. The missing data is logged, so we can reload it. Following the queue worked until now.
Thanks for your help!
Best regards,
Daniel -
CRM unicode and ECC 6.0 Non unicode.
Hi All,
We have upgraded our system from 4.6C to ECC 6.0
Our ECC 6.0 is non unicode system. We are currently implementing CRM 5.0.
I want to know if we implement unicode CRM system, will there be any inconsistency as our ECC 6.0 is non unicode.
Regards,
ImranHi Imran:
I had a problem with middleware when going through a similar scenario to yours. The middleware functions were returning garbage when calling from CRM to ERP systems. See note 651497 which addresses this problem.
I implemented the fix by adding the following line to the beginning of function module BAPI_CRM_SAVE:
call function 'Z_MW_RFC_PING'.
Create a function group containing function module Z_MW_RFC_PING (code below):
FUNCTION Z_MW_RFC_PING .
*"*"Local Interface:
data:
lv_rfcdest type rfcdest.
* Read middleware parameter table to determine R/3 backend system
* name.
select single parval1
into (lv_rfcdest)
from smofparsfa
where parsfakey eq 'CRMCFSOLTP' and
parname eq 'CRMCFSOLTP'.
* If we get an RFC destination returned, PING it.
if sy-subrc eq 0.
call function 'RFC_PING'
destination lv_rfcdest.
endif.
ENDFUNCTION.
Note 777994 addresses some configuration on CRM system. In transaction R3AC6 on CRM system, make the following entries:
Key SMOF, parameter CODEPAGE_CHECK_OFF, value 'X';
Key R3A_COMMON, parameter CRM_SEND_XML, value 'X';
Key R3A_COMMON, parameter DATA_FORMAT, value 'XML'.
You should also do the following configuration:
In table CRMPAROLTP on ERP system set parameter CRM_SEND_XML_FOR_DEFAULT_DESTINATION, user CRM, value 'X'.
In table CRMRFCPAR on ERP system set the "Use XML" flag to 'X' for the CRM consumer. This also avoids code-page issues.
The above took care of conflicts in code-pages for my systems.
Regards,
D. -
Hello All,
I have a problem of one of the queues in CRM 5.0 is struck with SYSFAIL error. The queue name is R3AD_MATERIAFAYB401007. When I double click the queue entry I get the error on FM BAPI_CRM_SAVE with the remote user of R/3. The statustext is is 'Error in Mapping (Details: transaction SMW01)'.
Does any one knows how to set this queue right ?
Regards
RashitRashit,
You probably are missing product categories in CRM.
Follow this process,
1. Run initial load transaction R3AS for object 'DNL_CUST_PROD1'. Make sure source is 'OLTP' and destination is 'CRM'
2. Monitor the request load using transaction R3AM1 and make sure it completes
3. Go to SMQ2 and double click on the Queue in SYSFAIL status. Select the Queue and click on 'Edit' and click on 'Reset Status'.
4. The Queue should start Running and material should be updated in CRM
<b>Please award points if it helps.</b>
Regards
Haseeb -
HI all,
In CRM system SMQ2 queue name R3AD_ACCOUNTING is getting system failed.
When iam trying to unlock,activate and Execute those queue entries(5677) its not working i am getting the Message that FUNCTIONAL MODULE DOES NOT EXIT for this iam deleting the queue entries one by one after checking each one.
This queues are coming from R3 because of sale/service billing document post. when i check in SMW01 i didnt get any information related to this queue.
Is it any other way to solve this issue. How to resolve ?
Do the needful..
regards,
shoki.HI,
when i check the queue entries i got the Functional module BAPI_CRM_SAVE,and queue name R3AD_ACCOUNTING, STATUS TEXT says that " Bdoc status failed,Bdoc not found".
system doesn't have dump errors too.
I came to know that when ever you get the message "Function module not found for this exception" for Queue entries we can delete that queue entry, but the problem is i have so many entries, Its not possible check one by one and delete?
sould i delete this all entries at once? Is it any solution?
Thanks,
shoki -
Hi all,
I executed R3AS with DNL_CUS_PROD1 object class. In SMQ2 txn I saw SYFAIL status with error message "Incorrect parameter with CALL FUNCTION".
What does it means? How can I resolve the problem?
Thanks very much,
Maria
Queue data are the follows:
Utente ADMIN
Function module BAPI_CRM_SAVE
Nome coda CRMI_DNL_CUST_PROD1
Data 13.03.2008
Ora 15:20:04
Tsto stato Incorrect parameter with CALL FUNCTION
TID 0A6B31101ED847D938147E8C
TID origin. 0A6B3104490447D937AA2548
Host USAPBOXG
Tktn SAPMSSY1Hi,
Did you run the middleware synchronisation report
BBP_PRODUCT_SETTINGS_MW before statrting the replication?Make sure you run this report coorectly with the same Consumer name(e.g. CRM,SRM etc) as the one maintained in the R/3 table CRMCONSUM.
In this program, you have to set some values according to the configuration you made in SRM and R/3.
You must choose 'BBP without CRM' and you must enter the consumer name chosen by you in field 'User' (for example, 'CRM').
After running the program (not in test mode...), you get a screen that displays the results of the program.
Also pls check all the steps again for the replication..
Step 1 : CRMCONSUM , CRMSUBTAB, CRMRFCPAR and CRMPAROLTP tables
Step 2 : program 'BBP_PRODUCT_SETTINGS_MW'
Step 3 : Transaction <SMOEAC>
Create a R/3 site for the backend and allocate the backend RFC destination as the attribute
Step 4 : Then control the status of the sites using transaction <SMWP> in the EBP with middleware menu : portal-> runtime info-> adapter status->parameters-> sites.
All the status should be green.
Step 5 : select the data you want to replicate. The lines that are not set to inactive, indicate your choice for the replication.
From the Enterprise Buyer easy access menu, choose Middleware -> R/3 Data Exchange -> Initial Download -> Object Management -> R3AC3 - Customizing Objects.
Step 6 : initial download
Step 7 : Go to Monitor Download object or transaction R3AM1 to check that the replication was successful
Please check this blog: /people/marcin.gajewski/blog/2007/02/05/how-to-replicate-material-master-from-r3-to-srm
Also see these notes:
720819
429423
BR,
Disha.
DO reward points for useful answers. -
SYSFAIL error in Inbound Queue
Hi,
I got a SYSFAIL error in the Inbound queue. When I double clicked on it, it showed up the Status text as "An exception occurred that was not caught". This has been raised on 14-01-2009 (today's) date and when i checked for the B-Doc corresponding to this, i couldn't find out any entry for this.
Initially i tried unlocking the queue and thereby re-processing it, but it failed again.
The details are:
Function Module : BAPI_CRM_SAVE
Queue name : R3AD_SALESDO0004700954
Date : 14-01-2009.
Any pointers on this would be of great help.
Thanks in advance
Rasmi.1. Check in Tx: ST22 (ABAP Runtime Error). That would give you more insight in the cause of exception / dump and how to solve it.
2. Also, in parallel check whether the connection to ERP is established and the RFC call is getting connected (Tx: SM59).
3. If the error/exception/dump is occuring on ERP side, check whether CRM server details are maintained in table: CRMRFCPAR (on ERP side).
4. Check whether internal user exit is coded to catch the exception and throw out appropriate error.
5. check whether there is any code error in mapping module (available in table SMOFSUBTAB).
These steps might be useful to find out your problem.
Best Regards,
Pravin.. -
Hi All,
We have R3AD_SALES queues failing in SMQ2 with SYSFAIL error status (Function Module: BAPI_CRM_SAVE), I have tried activating and unlocking them but still did not resolve. Below are the few SYSFAIL error message status texts
1. Message type unknown
2. You are not authorized to logon to target system
Could anyone please help me ?Hi Shiva,
Please check whether the RFC Connections are defined properly and make sure that the 'Remote Logon' is working properly. I think this should resolve your problem.
Hope it helps.
Thanks,
Naga -
Invalid Flow Context error in Inbound Queues
I am new to CRM middleware.
We are getting lot of entries in CRM Inbound Queue (SMQ2) in our production system with error description,
"Invalid Flow Context".
The queues are of type, "R3AD_CONNOBJXXXXXXXXXX" and the FM the error was caused in, is "BAPI_CRM_SAVE".
Can anyone help?
Thanks in advance!
RajivThanks Rohit,
When I debugged an entry with this "Invalid Flow Context" error, In method, CRM_GENERIC_CRM_IN, in the call to function, SMOF0_READ_SMOFSUBINT, in read statement,
read table t_smofsubint binary search
with key objclass = i_objclass
objname = space.
I am getting sy-subrc = 4.
i.e. entries do not exist for SI_POD in table SMOFSUBINT.
Has this behaviour got anything to do with this error? -
BUPA creation - yellow BDoc problem
Sincere,
I'm creating Business partner and partner is succesfull created in CRM, and also in R3, but BDoc won't go green. Status of the BDoc is SENT, Creator: R3RFC, Queue name: CSABUPA0000xxxxxx, no errors, everything seems fine except BDocs.
I'm also getting Outbound queue R3AD_CUSTOME - Update BDoc status FAILED. BDoc not found.
Please advise.
MatejHello Rohit!
In SMQ2 I have series (400) meerly equal entries like:
400 R3RFC BAPI_CRM_SAVE R3AD_CUSTOME 20.11.2010 07:32:24 Update BDoc status failed - BDoc not found
This relates to newly entered BP in the CRM system. When new entry happens, BDoc is sent to ERP (R3) system and BDoc is stil status yellow, although in SMW01 state is SENT.
Sent to receivers (not all have confirmed) BUPA_MAIN mBDoc Notification 16.11.2010 13:35:00 CSABUPA0000980404 R3RFC
CRM - transaction BP and customer is shown as created, ERP - transaction BP and customer is also shown as existing. The data is the same in CRM and in ERP.
Case 1: crmm_bupa_map looks like this:
http://www.shrani.si/f/b/bS/46nOEGgO/untitled.jpg
If I hit Enter tab or refresh Queue, statuses disapears (printscreen: 1 are transformed to 0). I believe this isn't problematical, just reprocess.
Case 2: In crmm_bupa_map ERP number is missing although I customer exist in ERP. What to do?
Regards,
M.
Will check notes, but for now I believe that there is smth with bupa_map. How to reautomate it for future?
Maybe you are looking for
-
How to get USB to LAN Nokia Booklet 3G adapter wor...
Is there possible to have the USB to LAN adapter work under Linux, so I could also enjoy on my Nokia booklet 3G internet over LAN. As far as I see under Windows 7 there is a driver, but Nokia does not offer any drivers for Linux. Was this post helpfu
-
Lightroom, Photoshop Elements, and Nik Software playing together
I have Photoshop Elements 10 and number of plugins, like Topaz Labs ones. I have also just acquired Lightroom. I do want to get CS5 eventually but that is not in the near future. I am thinking of getting Nik Software's Complete Collection. It does no
-
Mountain Lion SPoD on all programs every few hours?
I upgraded my late 2011 15" MacBook Pro from Lion to Mountain Lion about 2 weeks ago and noticed that it started pinwheeling randomly after awhile during day-to-day stuff. This of course was after I reinstalled all my aftermarket software. What wou
-
Requirement on perticular day of the week.
Dear All, I have a query, I have raw material with "VB" consumption base planning. But i dont want the PR of every day, only on Monday i start the purchase acivity, so PR should be only on MOnday and not any other day. I need to run MRP every day, wh
-
J1iex -part capture for job work order
HI, in Ecc 6.0 ,While capturing the part2 for the subcontracting material in J1iex ,the system display both parent and child materials ,how to avoid the display of child materials in J1iex? Regards, Renuga.A