Attachment not getting created in PI from CRM
Hi Everyone,
I am trying to create attachments in PI from CRM but it is not getting created there. I am executing the following steps:
By default I am getting the attachment data in Binary format so I am using this function module to convert it into XSTRING format.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_input_length
first_line = lv_first_line
last_line = lv_last_line
IMPORTING
buffer = lv_xbuffer
TABLES
binary_tab = file_content_binary.
2. Then I am getting the server context and the protocol.
obj_server_context = cl_proxy_access=>get_server_context( ).
obj_attch_protocol ?= obj_server_context->get_protocol( if_wsprotocol=>attachments ).
* Assign File naame to STRING Variable
lv_name = lv_filename.
* Attach file to the service response.
obj_attachment = obj_attch_protocol->get_attachment_from_binary(
data = lv_xbuffer
type = if_ai_attachment=>c_mimetype_pdf
name = lv_name ).
APPEND obj_attachment TO t_prx_attach.
obj_attch_protocol->set_attachments( t_prx_attach ).
3. Then I am using a proxy class which has Input and Output structures for sending data to PI and getting the response respectively. And then in the end I am calling the proxy and passing the structures.
With this I am unable to see the attachmenmts in sxmb_moni transaction. Please help.
Hi Gurus,
Can you please help with some pointers on this.
I have used below links as reference for coding.
Link 1 :
http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/content.htm
Link 2:
http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/10/19/abap-proxy-protocols-use-cases-and-examples
After setting attachment(Method SET_ATTACHMENTS) i am not getting any exceptions,but still i am not able to see any attachment created in SXMB_MONI.
Thanks in Advance,
Manil.
Similar Messages
-
IDOC Not getting Posted in PI from CRM
HI All,
I had Configured,
in CRM side : SM59,WE21,BD54,WE20
in XI side: datatypes,MT,MI, Maaping not yet done, IDX1,SM59
Idoc is not getting displayed in XI system.
I had a small Question, Do we need to Configure all the setting in XI for Getting IDOC from CRM.
Thanks in Advance,
Sriram.Hi Jag,
Thanks for the reply.
1.CRM: go to Tcode-WE81 and check message type CRMXIF_PARTNER_SAVE created?
Yes exists
2.CRM: Execute Tcode-WE82, Check message type CRMXIF_PARTNER_SAVE has relevant IDOC type and version.
yes both message type and basic type exists
3.XI: Did you import right Message type and IDOC type in to IR in XI?(name will be like Message_type.IDOC type)
yes imported CRMXIF_PARTNER_SAVE.CRMXIF_PARTNER_SAVE01 in IR.
When i see in Table EDMSG in XI system i am not finding the value CRMXIF_PARTNER_SAVE, but this value Exists in CRM system
in XI i m not finding the message type in WE81 and WE82.
Thanks in Advance,
Sriram -
Data is not getting updated in R3 from CRM
Hi All,
I have a small query pertaining to CRM Middleware.
We have extended the standard scenario using EEWB for sending few customer fields thru CUSTOMER_H. This is assigned to the adapter in R3AC1.
The data is getting populated in the structure correctly. But the problem is that the Z* field is not getting updated in R3. The more strange thing is that it is getting overwritten in CRM by data from R3.
I have checked the problem and found out that the updateflag for z* field is missing. But the problem is that I donot know, how to populate the update flag for the field.
Is there any customization or setting in EEWB for updating the flag?
Please help... Please let me know if u want more informaiton.
Thanks
SanuSanu,
The reason for R3 data getting overwritten in CRM is because the BSS_CENTI has a blank record
and BSS_CENTIX structure might have a X indicator within BAPIMTCS structures.
BSS_CENTI holds central data for the customer and BSS_CENTIX holds the change flags for the fields in central data.
To fix this issue, you have to use CRM table SMOFSUBINT and configure a custom function module which basically yanks the 2 structures from BAPIMTCS table.
Note:- You do this ONLY if you don't want custom fields from ECC to update CRM. Otherwise you have to make sure the BSS_CENTI and BSS_CENTIX structures are consistent in CRM and ECC. -
WBS Elements not getting created in ECC Project System from CRM 7.0
Dear all,
We are trying to integrate SAP CRM 7.0 with SAP ECC-PS module. The objective is to bring in the marketing plan and elements data from the CRM system, and to create the corresponding WBS in project system. We have done most of the configuration as recommended by SAP in both the systems, and we see that the BDOCS are getting generated and sent to the ECC system. The following steps have been successfully completed:
1. Set up the RFC connections between the two systems
2. Selected the connection type as Middleware in CRM system.
3. Installed the cProject Add on in CRM box.
4. Created a project scenario (with project and network profiles) in the PS system and assigned the same in the CRM system.
5. The Project Scenario in PS config has the same name as the Project Type in CRM config.
6. Created and released the campaign ids being created in the CRM system.
As already mentioned, we can see that the BDOCS are coming to the ECC system and are getting stored in BDOC_TRACK table. However the issue is that the corresponding WBS elements are not getting generated in the ECC system. Is there anything that that we are missing in the ECC box which would trigger the WBS element creation?
Request you all to share your inputs which would be immensely beneficial for us in achieving this integration.
Thanks and Kind Regards,
Aditya ShrivastavaHello Aditya,
We too are facing this issue.. if you have resolved the issue could you please let us know the solution ?
Some inputs related to our system,
We have upgrade from CRM 4.0 to CRM 7.0 SP07 and R/3 backend system is on 4.7 SP27, earlier we have completed the upgrade on sandbox without any issues which was upgrade to CRM 7.0 SP04 but with SP07 we are facing the problem of WBS Element not getting created in R/3.
Your help is highly appreciated.
Thanks & Regards,
Sumukh Kapoor. -
Reservation not getting created from shopping cart for stores order.
Hi experts,
Reservation not getting created from shopping cart for stores order,process used is some custom BADI.Extended classic scenario is the procrss .
Please help me
Thanks in advance.Hello,
please check below wiki:
Determination of the follow-on document type
Regards.
Laurent. -
LEADS NOT GETTING CREATED USING EXTERNAL LIST MANAGEMENT (ELM)
Hi Folks,
We are trying to create leads via ELM.
When ELM is executed records are getting uploaded,BP's are created.But leads are not getting created.
Pls find attachments for mapping format attached to ELM.
Assignment block Process steps is as shown below:
We tried n number of times to create leads but its not happening.
Pls suggest how to resolve the same.
Any help is highly appreciated.
Regards
JayaHi Kavindra,
Below mentioned is the screenshot of badi debugging.
Our technical consultant analysed the scenario and found out that Lead transaction data is not filling in standard and no data is coming into method create_business_transaction where Leads will be created based on the input data and says this has to fill in standard if all the mapping fields and data uploading is correct.
Pls suggest exactly where we are going wrong.
Pls let me know if u need any further info from my side.
Regards
Jaya -
ERMS : Email work items not getting created
Hi Forum
In my test system (CRM 2007), inbound mails were properly coming in and getting distributed to agent's inbox. But after the server restart, I realised that the work items for inbound mails stopped getting created due to which mails are not reaching agent's inbox.
Mails are visible in SOIN but their associated Work items are not there in SWI1.
I have checked almost all the settings like Email Distribution (SO28), CRM_ERMS_WF_CUST (Event lining is in place and is active), swu0 (Event simulation is working).... but still not sure why work items are not getting created for inbound mails.
Any thoughts ? Help will be deeply appreciated.
Regards
Vishal ManiThanks Bruno for your time to reply !
I checked this transaction and in overview there are 19 events with errors. But apart from that everything is green.
I checked the Linkages with Error tab and realised that the events with errors belong to object type BUS1006.
In Activation tab --> Linkages --> Object type (ERMSSUPRT2) --> Linkage is activated.
Infact that is the first thing, I checked when work items were not getting created.
So no clue from here too.
Regards
Vishal Mani -
How to create ECC Quotation from CRM Opportunity?
Hi Experts,
Here I am getting an error like "S::000" while creating ECC Quotation from CRM Opportunity. Here I am enclosing the screen shot, please give me the solution.
Regards
Kishor Kumar.Hi Kishore,
Please check the below links, there are certain per-requisite steps which are needed for this to work.
https://help.sap.com/saphelp_crm60/helpdata/en/47/45839696581a41e10000000a1553f7/frameset.htm
https://help.sap.com/saphelp_crm60/helpdata/en/47/463fc2b61c1a41e10000000a1553f7/frameset.htm
You can also check the SAP Note : 1078575 - ERP sales transactions in SAP CRM for more details.
Hope this helps.
Regards,
Siraj -
Invoice is not getting created in Order related billing
Dear all,
I am trying to do a Order related billing. After creating the order i am going to VF01 and selecting the billing type i have created and trying to create the invoice. I am getting the error "No billing documents were generated. See log" when i am checking the Log its showing now errors.
In case if my account determination procedure is wrong, system should allow me to create a Sales invoice and accounting document will not be generated. But in this case even the sales invoice is also not getting created.
Please suggest me if there are any configuration changes i need to do to overcome this problem.Apart from the suggestion already given, also ensure that
the order is not showing in incomplete log
the order is not blocked for credit limit
You can also cross check in VF04 whether system is fetching that sale order. For information, once you execute VF04, by default, system will check only "Delivery related" check box. You have to manually select "Order related" check box.
G. Lakshmipathi -
BP not getting created while creating employee
Hi,
When I Hire an employee a BP should be created for it. It used to happen earlier in the system but after we moved to another system this is not working. Can someone please let me know the necessary config for this?
I've the following settings:
HRALX ONUMB = 2
HRALX OSUBG = MD
The MD number range is from 90000000 to 9999999999. Should this number range be internal or external?
When I use the HR_SYNC_PERSON report for an employee I get the error as
"Determination of connections to object 'BP' of 'CP' '50000201' failed"
"Object of type 'US' with ID '1122' does not exist or is inconsistent"
"Determination of connections to object 'BP' of 'O' '50000101' failed" etc
Also I need to upload the employee master data using LSMW and BP does not get created with LSMW also? Is there some specific config while using LSMW?
Please help.Whenever you are uploading employees using LSMW, you need to run program HR_SYNC_PERSON.
Pls refer to the following thread for further info:
Assignment: Business partner for person '50000029' is not unique
Regards,
Dilek -
AUC Asset not getting created when Internal Order is created
Dear Experts,
While Creating the internal order ( Object Class - Investment Measure)
AuC (Asset Under Construction) not getting created automaticall . Note Investment profile is already there in the order.
Following steps below are configured -
1. Define the AuC Asset Class (with investment measure) - OAOA
2. Define the Asset Class u2013 for Main Asset - OAOA
3. Define Investment Profile - OITA
a. Assign the AuC Asset Class (Step-1) in the investment profile
4. Assign Investment Profile to Model Order - OITA
5. Define Order Type (Investment) - KOT2
a. Settlement Profile - OKO7
b. Maintain Allocation Structures - OKO6
Thanks
SanjaiHi Sreekanth,
What is the setting needed to create AUC Automatically when an Internal order is created ?
I have done all the setting, but still when I save Internal order neither AUC asset is getting created.
So I went to extras selected create AUC and it went to AS01, but when I came back (F3) from AS01 to Internal Order and save , Auc Asset is not getting captured in the settlement rule. I even tried to give manually the AUC Asset in the settlement rule, for which sys is not allowing in the settlement rule.
Any thoughts are highly appreciated
Advance Thanks
Sanjai -
SRM PR is not getting created in ECC backend
Hello Experts,
We are running SRM 7.0 with SRM-MDM Catalog, we are using SRM for shopping. We do have PI 7.11 running in the Environment as well.
We are on ECC 6.0 with Ehp 4.0
Purchase Order:
However we can see the PO creating successfully using PI.
Question, in the SRM table (BBP_FUNCTION_MAP), we see the object type: BUS2012 for ERP 4.0 has adapter name: /SAPSRM/CL_SOA_ADPT_PO_CRT_ERP for when creating PO. Please see teh screen shot.
is this the reason that we need PI?
Purchase Requisition:
PR Creation is not working:
PR is not getting created in the ERP, PR uses Object type: BUS2105, Adpater CL_BBP_BS_ADAPTER_RQ_CRT_470 for ERP 4.0 System type, can you please tell me if the adapter is correct for ERP 4.0 system type?
I also have a question to ask:
1) Where did you see that PR/PO was send to PI System (PI1)? My understanding is that since ERP amd SRM are 2 ABAP Systems, why we cannot send the PR/PO directly to ERP system from SRM? Why do we need a middleware(PI) in between for this process? We should be able to USE BAPI function to do it correct?
Please advice.
Thanks
Kumaryes, i could see a PR number with all this additional details as below.
Table BBP_PDBEI
CLIENT 453 Client
GUID 4CAEFA58EB9D005CE1008000AC1C2031 Globally Unique identifier
BE_LOG_SYSTEM QA1400 Logical System of Logistics Backend
BE_OBJ_ITEM Follow-On Object Item in Back-End System
BE_OBJECT_TYPE BUS2105 Follow-On Document Object Type in Back-End System
BE_OBJECT_ID 2000000167 Follow-On Document Object ID in Back-End System
BE_REFOBJ_TYPE Reference Object Type in Back-End System
BE_REFOBJ Reference Object in Back-End System
BE_REFOBJ_ITEM Reference Object Item in Back-End System
BE_REFOBJ_SBITM Reference Object Sub-Position in Backend System
BE_REFOBJ_TYPE2 Reference Object Type in Back-End System
BE_REFOBJ2 Reference Object in Back-End System
BE_REFOBJ_ITEM2 Reference Object Item in Back-End System
BE_REFOBJ_FYEAR2 0000 Reference Document Object - Fiscal Year in Back-End System
BE_STGE_LOC Storage location
BE_PLANT 2016 Plant
BE_BATCH Batch Number
BE_VAL_TYPE Valuation type
BE_MOVE_REAS 0000 Reason for Movement
BE_EXPERYDATE 00000000 Shelf Life Expiration Date
BE_PUR_GROUP 206 Purchasing group
BE_PUR_ORG 2000 Purchasing organization
BE_CO_CODE 2000 Company Code
BE_DOC_TYPE CLRQ Purchase Requisition Document Type
BE_ACCREQUIRED Account Assignment for Logical Backend Required
BE_SP_STK_IND Key for Special Stock Section
BE_INFO_REC Number of purchasing info record
BE_MOVE_TYPE 201 Movement type (inventory management)
BE_PACKNO 0000000000 Package number
BE_INTROW 0000000000 Internal line number for limits
BE_ITEM_TEXT Short Text of a Service Purchase Order Item
BE_PO_PRICE 1 Price from Backend
BE_UNLOAD_PT 200 Unloading Point in Backend
BE_DEL_IND Deletion Indicator in Backend Documents
BE_TRACKING_NO Requirement Tracking Number
BE_COND_TYPE Condition Key
BE_COND_STEP 000 Level Number
BE_COND_COUNTER 00 Condition counter -
Spool not getting created in batch job
Hello experts,
We have a requirement of printing BA00, BA01 and LD00 from different application.
We have done same code for all BA00, BA01, and LD00.
Normally the code is working fine except in few cases, when batch job is created but spool is not created.
DATA: job_name TYPE tbtcjob-jobname,
number TYPE tbtcjob-jobcount,
print_parameters TYPE pri_params,
wv_pripar TYPE pri_params,
wv_arcpar TYPE arc_params,
wv_val TYPE c VALUE 'X',
wv_false TYPE c VALUE 'X',
gv_mandt TYPE tsp01-rqclient,
gv_user TYPE tsp01-rqowner.
CLEAR: gv_mandt, gv_user, number.
gv_mandt = sy-mandt.
gv_user = sy-uname.
job_name = 'DELIVERY_PRINTING'.
CLEAR: range1.
range1-sign = 'I'.
range1-option = 'EQ'.
range1-low = 'LD00'.
CLEAR: range1-high.
APPEND range1 TO range.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = job_name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT sd70av2a WITH rg_kschl IN range
WITH rg_vbeln IN deli_tab
TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB job_name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = job_name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
WAIT UP TO 10 SECONDS.
** to give the data to the printer***
* CLEAR gv_rqident.
SELECT SINGLE listident INTO gv_listident FROM tbtcp
WHERE jobname = job_name
AND jobcount = number.
IF sy-subrc = 0.
MOVE gv_listident to gv_rqident.
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
EXPORTING
spool_request_id = gv_rqident.
ENDIF.
The same code is for all the output BA00, BA01 and LD00.
The issue is that for few batch jobs (which is created in the above code) , spool is not getting created.
Thanks and Regards,
Paritosh PandeyHi,
The code starting from WAIT UP TO 10 SECONDS. - not only does it look attrocious, is error prone (if no free process for executing batch job is available for 10 seconds, or if the job runs for more than 10 seconds, what will happen...?), but seems utterly unnecessary... Is there any reason immediate spool output can not be handled by simply setting PRINT_PARAMETERS-PRIMM = 'X'?
cheers,
Janis
Edit in:
Ok, i just read Document in spool but not printed... Do not use an output device relying on frontend access methods to do printing from background processing. Frontend is not available during background processing, period. To my knowledge there is no easy, clean solution to this problem other than defining and assigning, per user, output devices not relying on frontend printing. What if the dialog user has logged off by the time batch job finishes..? May the spool remain unprinted?
Has the SAP Basis refused to define output devices (I have hard time believing this...)? Well, tell them one time to stop being silly and if they do not cooperate, tell the owner of the requirement that it can not be implemented due to uncooperative Basis then... and that the users will have to keep going to SP01 and manualy start the output!
Message was edited by: Jānis B -
File not getting created at the Reciever
Hi All,
I have implemented a simeple file to file scenario. The file is getting deleted from the source directory but is not getting created in the target directory. It shows a checkered flag in SXMB_MONI . When i do Communication Channel monitoring for the reciever Comm. Channel, it shows no messsages .
I have refreshed the Cache in Integration directory. it is still not working.
I tried using a different Communication channel with the Mail adapter that is working fine.
I cant figure out what the problem is please help.
Many Thanks,
NehaHi! Neha,
Here i want to add some points :
Even I faced same problem in project....... then I followed this procedure...
My scenario is FILE TO RFC via FTP Server in file adapter.
Here issue is file is picking from FTP and showing success in MONI but data is not reaching to BW system..
Most of the times I checked and I did successfully.
Main issue are due to:::
1. Check Queues in Inbound queue SMq2
2. Trace teh step by step in message flow in message monitoring that means check whether message flows
from a) Intergration Engine
b) Adapter Engine..
3. Check and trace the flow in Message monitoring in Run Time work Bench
4. Check Status of Receiver communication Channel in Communication channel Monitoring
5) Check whether Business Services are Scheduled in Availability Time planning or not
6 Also Check in Visual admin whether the services are released or not if any others are might using the same servivcees and cahnnels and suppose if they are scheduled or not
7. Do Cache Refresh mainly SXI CACHE, ADAPTER ENGINE CACHE
8 Finally if still not resolved J2EE ENgine SOFT Restart..instead of doing restarting entire XIengine server.
Once the Server is started then defintely all the messages if suppose if 40 messages are picked from source directory and not reached to Target then all those definetely 100% become success and reached
Note:: All above needs to check only if development part is correctly configured.
Also check the Receiver target and sender directory Permissions in FTP Server i.e., rwx permissions okay
Thanks
Amar Srinivas Eli
Reward Points if useful -
Transfer Requirement not getting created
Hi All,
My query as below;
Production order is created using KANBAN (Control Cycle/Supply Area is defined) using classic KANBAN.
WM is in place and all the setting related to TR/TO creation for WM movement type 103 is in place.
When i am trying to receive this Production after completion it is not creating the TR/TO, while as material document is getting generated and shows the stock directly in interim storage type 901 without creating TR and TO.
Further i checked there is indicator in Production order i.e "Kanban indicator" that gets checked automatically when Production order is created using KANBAN Processs and if i remove that indicator forcefully, TR and TO is getting created normally.
Please provide some inputs where can be the problem and how TR and TO can be created normally eventhough KANBAN indicator is checked in Production order and where i can found the setting related to "KANBAN INDICATOR".
Appreciate your help.Hi Maddy
Thanks very much for your response.
1. When you use KANBAN, you define separate KANBAN storage location, which is different from WM-managed replenishment storage locations, and separate KANBAN interim storage area with storage bin.
Yes different storage location is defined which is not WM-managed in supply area.
As you said Control Cycle is defined, see if the interface is properly defined for both of these Sloc.
Where i can check whether interface is properly defined or not.
2. See if you have defined the KANBAN replenishment strategy with Control type Transfer Requirements from a Storage Location which is being controlled by WM in the Customizing for Production under KANBAN > Replenishment Strategies > Define Stock Transfer Strategies
Actually for a material two strategies are defined like;
1) In-house Production strategies-0003-
supply area is defined with storage location which is IM managed.
And when this order is completed and i am trying to receive this in WM SLOC (usally whatever SLOC we have defined in supply area it proposes that SLOC at the time of receipt but i am changing this manually to WM managed SLOC) using transaction MIGO, it is directly taking the stock to 901 interim storage type and in total the stock increases but the problem is when TR is not getting created i am not able to take this to the storage bin as per strategies defined.
2) Stock Transfer Strategies-This is working fine and in that TR/TO is working fine.
3. For TO to get created automatically by the system from the transfer requirement, see if an indicator Automatic TO creation in the replenishment strategy is set or not. Yes this is set for stock transfer strategies but i didn't find option to check the TO creation automatically for in-house production strategy
4. Also, check that you have set up a suitable replenishment movement type for KANBAN in the Customizing for Warehouse Management under Activities > Transfers > Define Movement Types (i.e.standard is 350 for KANBAN replenishment)-Yes this is also defined correctly.
Appreciate your more inputs on this.
Maybe you are looking for
-
APP-Automatic Payment Programe
I am using APP programe in 4.7 now i am going to configure and implement ECC6.0. I have tested the APP in IDES using F110 in company code 1000. In 4.7 i picked up the open items based on profit centre by selecting the profit centre in Free selection
-
I can not download Adobe Premiere Elements 11
I can not download Adobe Premiere Elements 11 which I just paid for online. The Adobe website tells me I need Internet Explorer 4 or higher. I have version 10 IE. How do I get my download?
-
How can I call the function module of the ECC when I save the campaign?
HI Experts! I want to call function module of the ECC when I click the save button in the campaign view,A badi or userexit is needed,but I don't find, can you tell me which badi or userexit is used to implement?
-
I have a query regarding variable usage in filter condition using ODI tool. For e.g. File name column of table should be equal to variable value and the syntax used is : AL_SUP_LEV_0_TBL.FILE_NAME='#XXCNV_SUPPLIER_CONV.G_CHR_FILE_NAME' I have tried u
-
Write cache not utilized for a LUN
I am running into this test result that I can't explain, please help. the test is running 5 thread of file creation at 5G each. This is on 7420, testing is done within the same pool that uses a pair of mirrored log at 76G each. one LDOM has 64G of m