Date Issue while creating Activity using BAPI_ACTIVITYCRM_CREATEMULTI
Hi,
I'm creating an activity using BAPI BAPI_ACTIVITYCRM_CREATEMULTI and this is working fine. The only thing which is not reflecting in the activity is the date which I'm passing to this BAPI. The system always puts the default date, which is system date.
Below are the parameters I'm passing in DATE and DATEX parameters of BAPI_ACTIVITYCRM_CREATEMULTI. Let me know if I'm doing something wrong.
Can someone help me? Any help in resolving this would be appreciated and rewarded with points. Thanks!
lt_date-ref_handle = lt_header-handle. "handle for activity
lt_date-ref_kind = 'A'. "Adm header
lt_date-appt_type = 'ORDERACTUAL'. "Order actual date type
lt_date-date_from = '20060120'. "e.g.
lt_date-time_from = '1200000'. "e.g.
lt_date-date_to = '20060120'."e.g.
lt_date-time_to = '1200000'. "e.g.
lt_date-show_local = 'X'.
lt_date-mode = 'A'."Create
lt_datex-ref_handle = 'X'.
lt_datex-ref_kind = 'X'.
lt_datex-appt_type = 'X'.
lt_datex-date_from = 'X'.
lt_datex-time_from = 'X'.
lt_datex-date_to = 'X'.
lt_datex-time_to = 'X'.
lt_datex-show_local = 'X'.
lt_datex-mode = 'X'.
append: lt_date, lt_datex.
Regards,
Sandeep
Hi,
Here is a sample code for you.
*& Report YAM_TEST_CONT_END_DATE *
REPORT yam_test_cont_end_date .
DATA: lit_header_guid TYPE crmt_object_guid_tab,
lit_appointment TYPE crmt_appointment_comt,
lit_status_comt TYPE crmt_status_comt,
wa_status_comt LIKE LINE OF lit_status_comt.
DATA : lit_ret TYPE TABLE OF bapiret2,
lit_obj_to_save TYPE TABLE OF bapibus20001_guid_dis,
lit_saved_obj TYPE TABLE OF bapibus20001_object_id.
DATA: lv_header_guid TYPE crmt_object_guid,
lv_item_guid TYPE crmt_object_guid,
lv_timestamp(15) TYPE c.
DATA: lit_fname TYPE crmt_input_field_names_tab,
wa_fname TYPE crmt_input_field_names.
DATA: lit_input TYPE crmt_input_field_tab,
wa_input TYPE crmt_input_field.
DATA: wa_appointment TYPE crmt_appointment_com,
wa_logical_date_key TYPE crmt_date_logical_date_key.
CONSTANTS: lc_end TYPE crmt_apptype VALUE 'CONTEND',
lc_appt TYPE crmt_fieldname VALUE 'APPT_TYPE',
lc_from TYPE crmt_fieldname VALUE 'TIMESTAMP_FROM',
lc_to TYPE crmt_fieldname VALUE 'TIMESTAMP_TO',
lc_obj TYPE crmt_object_name VALUE 'APPOINTMENT',
lc_tzone_from(13) TYPE c VALUE 'TIMEZONE_FROM',
lc_tzone_to(11) TYPE c VALUE 'TIMEZONE_TO'.
PARAMETER: p_objid TYPE crmt_object_id.
START-OF-SELECTION.
* Get the HEADER GUID for the Contract Number
SELECT SINGLE guid
INTO lv_header_guid
FROM crmd_orderadm_h
WHERE object_id EQ p_objid.
CHECK sy-subrc EQ 0.
* Get the Item GUID for the HEADER GUID
SELECT SINGLE guid
INTO lv_item_guid
FROM crmd_orderadm_i
WHERE header EQ lv_header_guid.
CHECK sy-subrc EQ 0.
APPEND lv_header_guid TO lit_header_guid.
APPEND lv_header_guid TO lit_obj_to_save.
* Convert System date and time to timestamp
CONCATENATE sy-datum sy-uzeit INTO lv_timestamp.
* Setting Contract End Date
MOVE: lv_item_guid TO wa_appointment-ref_guid,
'B' TO wa_appointment-ref_kind,
'CONTEND' TO wa_appointment-appt_type,
lv_timestamp TO wa_appointment-timestamp_from,
lv_timestamp TO wa_appointment-timestamp_to,
sy-zonlo TO wa_appointment-timezone_to,
sy-zonlo TO wa_appointment-timezone_from.
* Filling the Input Fields for Appointment
wa_fname-fieldname = lc_appt.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_fname-fieldname = lc_from.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_fname-fieldname = lc_to.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_fname-fieldname = lc_tzone_from.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_fname-fieldname = lc_tzone_to.
INSERT wa_fname INTO TABLE lit_fname.
CLEAR: wa_fname.
wa_logical_date_key-appt_type = lc_end.
MOVE: lv_item_guid TO wa_input-ref_guid,
'B' TO wa_input-ref_kind,
lc_obj TO wa_input-objectname,
wa_logical_date_key TO wa_input-logical_key,
lit_fname TO wa_input-field_names.
APPEND wa_input TO lit_input.
CLEAR: wa_input, wa_logical_date_key.
APPEND wa_appointment TO lit_appointment.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_appointment = lit_appointment
it_status = lit_status_comt
CHANGING
ct_input_fields = lit_input
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
CHECK sy-subrc EQ 0.
* Saving the items alone
CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
TABLES
objects_to_save = lit_obj_to_save
saved_objects = lit_saved_obj
return = lit_ret.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
<b>Reward points if it helps.</b>
Regards,
Amit Mishra
Similar Messages
-
Partner function issues while creating SA using LSMW
Hi,
I am opening a new thread (though similar question has been put by Vihaan in below thread)
Tax code in SA - LSMW
We are creating SAs via LSMW IDOC method (Message Type - PURSAG_CREATE and Basic Type - PURSAG_CREATE01), all our SAs being created w r to Contract and Contract has multiple OA and PI partner functions. So while creating SA we are passing unique OA and PI value (from list of valid OA/PI avaialble in contract) in LSMW structures - E1BPMEOUTPARTNER and E1BPMEOUTPARTNERX.
Values passed are mentioned below:
E1BPMEOUTPARTNER Partner Information for Outline Agreement
Fields
PARTN_ROLE Partner Function
Rule : Constant
Code: E1BPMEOUTPARTNER-PARTN_ROLE = 'BA'.
PLANT Plant
SUBRANGE_TX Description of Vendor Subrange
LANGU Language Key
LANGU_ISO Language according to ISO 639
PARTNR Reference to other vendor
Rule : Constant
Code: E1BPMEOUTPARTNER-PARTNR = '1XXXXXXXX9'.
DEF_PARTNR Default Partner
Rule : Constant
Code: E1BPMEOUTPARTNER-DEF_PARTNR = 'X'.
DELETE_IND Deletion Indicator in Purchasing Document
E1BPMEOUTPARTNERX Change Parameter Partner Data (Outline Agreement)
Fields
PARTN_ROLE Partner Function
Rule : Constant
Code: E1BPMEOUTPARTNERX-PARTN_ROLE = 'BA'.
PLANT Plant
SUBRANGE_TX Description of Vendor Subrange
LANGU Updated information in related user data field
LANGU_ISO Updated information in related user data field
PARTNR Updated information in related user data field
Rule : Constant
Code: E1BPMEOUTPARTNERX-PARTNR = 'X'.
DEF_PARTNR Updated information in related user data field
Rule : Constant
Code: E1BPMEOUTPARTNERX-DEF_PARTNR = 'X'.
DELETE_IND Updated information in related user data field
Now issue is SAP is not recognizing above mentioned partner value and throwing error as Following mandatory roles missing in partner maintenance: OA
If the reffered contract has single OA and PI LSMW is running fine and creating SA successfully but issue is coming only when we have multiple OA/PI.
Has anybody faced similar issue or aware if any OSS note which resolves this issue, please advise.
Thanks,
YogeshHi Jurgen,
I have created a separate source structure for passing partner function and now have below source structure:
Source Structures
HEADER_SA Header Structure
PARTNER_SA PARTNER STRUCTURE (Lower level to Header)
ITEM_SA Item Structure (Lower level to Header but at the same level as Partner)
Then created a separate file for partner having both OA and PI value as shown below (ID is common field between all three structures Header, item and Partner):
ID PARVW LIFN2 DEFPA
1 BA 1XXXXXXX9 X
1 RS 1XXXXXXX7 X
Now after convert data step it considers above values for partner role but still LSMW fails with same error "Mandatory PF missing, OA, PI"
Also, one more info wanted to share- if in my contract I put a tick mark against one of the partner OA/PI in DEFAULT BOX, it works fine but that does not make any sense as the whole pupose of having multiple OA/PI is to give option to business of selecting one of the avaialble OA/PI.
FYI - I have opened a customer message to SAP, let see what they suggest.
Thanks,
Yogesh -
Problem creating basic views while creating materials using idocs?
hello,
I am facing an issue while creating materials using idocs. The problem is that the basic view does not get created whereas other views are present. The function module used is idoc_input_matma01 and the basic idoc type is MATMAS03.
Looking for help. Thank youHi Madhu,
Actually i recieve an idoc from PI containing data required for cretion of the material via an idoc. This idoc is then processed to create the required material.
The material gets created with appropiate data in various tables(mara, makt) but when we view material in mm03 we cant see the basic data views. -
Error while creating activity by using BAPI
Hi,
While creating activity by using BAPI Im getting error as follows,
Start processing of refference object handle generated.
Integrity rule a d0008 broken
business partner with function from vbkakom not vbpakom
Integrity rule a d0008 broken
edit all incomplete field .
Please help me for solving this issue.
Regards,
SureshNot received any proper reply Closing the issue.
-
Issue while creating connection pool in weblogic using SERVICE NAME
Found two issues while creating connection pool in weblogic using SERVICE NAME
1. While running apps from jdeveloper using xxx-jdbc.xml
weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Io exception: The Network Adapter could not establish the connection
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:214)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1051)
2. Configuriing the jndi in Weblogic server
weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:SERVICENAME
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
Problem
database url is generated based on SID
eg: jdbc:oracle:thin:@localhost:1521:SID
Solution
(generate seperate url for SERVICE NAME)
jdbc:oracle:thin:@localhost:1521/SERVICENAME
------------------------It is so clear: host not found error for network connection and the other SID servcie name not found means your oracle instance name is not up. check with srvctl status for given servcie name or node, else check CRS_Stat -t if you are using RAC.
-
Issue in Creating Activity in R/3 GUI
Hi All
I face an issue while creating an activity in Project System. When I click the Create --> Activity (intenal) in the menu in Project Builder, the system returns me back on the same page (Network Details page) and does not move further. (Same with clicking the Activity Overview)
I had already created two activities for a diffrent network, sometime ago - which got saved but later display the message on accessing - "Inconsistent data in activity ..". Also, I am not able to add any new activity in this network too.
Could you please help me know if I am doing something wrong or what the solution to this problem is ?
Regards
SheenamHi Kalyan;
You can define different number ranges in R/3 and CRM.
As per my understatnding number ranges maintained in R/3 is 0000000001-ZZZZZZZZZZ which is already exist in CRM.
You can try following steps
1. Define new number range ( as an ext no range)in CRM as per your requirement (which is not used in CRM)
2. create new groupings then assign number range in to grouping.
3. Then go to R/3 and change the number ranges for BP as a internal number ranges
4.Goto T.Code PIDE there select R/3 to CRM. and enter the mapping details with new number ranges then start downloading.
If helps reward the points.
Regards
Jameem Khan.
TTL Mumbai -
Error while creating PO using monitor shopping cart
Hi all,
We are facing one issue while creating the PO in SRM using the monitor shopping cart node. The system is throwing an error message stating that u201CEnter Tax Codeu201D because of this we are not able to proceed further. Can anyone knows why this error message is showing. I debugged the code but I couldnu2019t find out from where this message is triggering. Which BADI / FM is called up at this point giving this error message..?
Any point on this will highly appreciated .
Thanks in Advance .
Regards,
Mahesh Mohan DHi Mahesh
Does your business has practice to enter a tax details in basic data of sc since this below configuration brings the tax settings in shopping for all type of shopping carts
SPRO>Supplier Relationship Management>SRM Server>Cross-Application Basic Settings>Tax Calculation-->Determine System for Tax Calculation - What is the existing settings?
if it so the basic data , you can find tax details otherwise not.
if there is a setting like no tax determination, you need to check the given vendor data whether ERS is flaged or not.
since ERS flag equires tax data.
regards
Muthu -
Issues while creating a search project in BCC
Hi There,
Migrating the apps from 2007.3 to 10.0.3.Experiencing issues while creating a search project.
Step #1.In Search Administration,navigating through Project > Global Settings & creating a Content Label named as "Catalog"
Step #2.Navigating through Project > Create Production Project.Creating a project with Content Set as "CatalogSet"
Step #3.Adding a Content with this info:
Content Name: Catalog
Type of Content : ATG Repository
IndexingOutputConfig Path : /atg/commerce/search/ProductCatalogOutputConfig
Host name : localhost
RMI : 10160 ( RMI port of commerce instance)
Creating a content & getting the message as New Content "CatalogTest" has been created.
Issue #1: Content is not displaying in the Content eventhough content has been created successfully.
Issue #2: Getting error for "Default Text Processing Options"
You can refer these issues in the attached screenshot "Content-Page-with-error.jpg"
Step #4.Creating a new TPO as "English" & trying to "Associate Search Project" & getting an error.Refer the attached error log "Associate-Search-Project.log"
Due to these issues, "Build Index" button is disabled.Did anybody experienced these issues? Any help/comments are appreciated.
Also attached the full server logs as commerce-server.log & publishing-server.log.
Since no options for attachment in this forum, I posted the attachment in this link.Please refer it.
https://groups.google.com/forum/?fromgroups#!topic/atg_tech/csEHi-x3Nyc
Thanks in advance!
Mani
Edited by: user11263665 on Apr 25, 2012 10:38 PMWe faced the same problem when migrating from 2007 to ATG 10.0.3. The reason this error comes up is because the Search depends on a local customization adapter /atg/searchadmin/adapter/customization/LocalCustomizationDataAdapter which adds English as a language in the text processing options.
After the migration you need to import the initial ATG search related data into your Search schema. These instructions have been mentioned in the ATG install guide. Here is the extract from the docs.
Note: The import scripts import data using startSQLRepository. Make sure your JTDataSource and
FakeXADatasource are configured to permit this in home/localconfig. JTDataSource should automatically
point to FakeXADataSource. FakeXADataSource should point to the administration database, and
FaxeXADataSource_production should point to the production database. Note that some product
installation processes, including Oracle ATG Web Knowledge Manager Self Service, need FakeXADataSource
pointed at the production database, so you may need to change the FakeXADataSource between installations.
once you are done with the configurations above, import only the searchadmindata xml into search schema as this imports the LocalCustomizationDataAdapter config information into your search schema. Once this is done, you should be good to index.
<ATG10dir>\home\bin\startSQLRepository.bat|sh -m SearchAdmin.AdminUI
-repository /atg/searchadmin/SearchAdminRepository -import
<ATG10dir>\Search10.1\SearchAdmin\common\data\initial\searchadmindata.
xml -
WHAT ALL MESSAGE'S ISSUED WHILE CREATING PO
Sir,
ply let me know after saving the po i want to know what all messages were issued while creating the po.
Like "warning" or "information" message
where can i see this
regards
ameyHi,
PAth- Spro-MM-Purchasing-Environment Data-Define Attributes of System Messages...
Here are few message type:
Contract has different purchasing organization & W
Validity period of contract does not start until & W
Validity period of contract expired on & W
Target value of contract & exceeded by & & W
Net price for item & taken from conditions W
Purchase requisition & item & already deleted W
Scheduled quantity & & greater than target quantity & & W
Quantity smaller than invoiced quantity & W
Target quantity exceeded by & & W
Not possible to determine a consumption account W
Release date lies in the past W
Base unit of measure & adopted from material master record
Release date: next workday is & W
Contract target value & reached W
Please only use plants with company code &
Order unit copied from material master record W
Hope it helps.
Utsav.. -
Getting error while creating subsite using custom template in sharepoint2013
Hi,
I am getting the following error while creating subsite using custom template in sharpoint2013. even publish features are enabled.
Please suggest me on this.
Thanks in advance.You need to enable the PerformancePoint Service Site Collection Features(PPSMonDatasourceCtype)
on the target site collection. go to site action > site settings> site collections features > and enable it and now try again.
Similar case: http://imughal.wordpress.com/2012/09/20/dependency-feature-ppsmondatasourcectype-id-05891451-f0c4-4d4e-81b1-0dabd840bad4-for-feature-bicenterdataconnections-id-3d8210e9-1e89-4f12-98ef-643995339ed4-is-not-activated-at-this-scop/
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Hi, I am facing an issue while creating a new web part page (Safeunit.aspx) within a folder (Safematic Seal Support Systems) located under a Document Library (Product Information Documents).
The path I am explaining:
Going to the Document Library (Product Information Documents) --> now inside that, clicking on a folder (Wet Seal Support
Systems) --> now inside the folder clicking on another sub-folder (Safematic Seal Support Systems) --> Here I want the web page Safeunit.aspx
Issue is that when I reach to the required destination, and want to create the web page by clicking on 'Site Action' --> 'Create' --> 'Web Part Page', now while selecting the Document Library name from the drop-down list, I do use 'Product
Information Documents' since the folder is inside this library only; but that create the page directly under the 'Product Information Documents' library, not under the sub-folder (Safematic Seal
Support Systems).
FYI, it is SP2007 version.
Kindly assist in this. Thanks in advance.I see that you have the namespaces reference in your code.
I think you have changed the NameSpace name of your code to CreateSPFolder, change the reference in all your manifest, and other files to point to the current namespace name. It should help.
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you -
Issue while Creating the records in OAF by disabling one field.
Hi Experts,
I am having the scenario like this.
From the OAF page I want to create the record by omitting one field(it is disable for OAF).
Consider the folowing scenario..
I am having the following fields Empno,Empname,Salary,Job in the OAF page where I made the Job field alone as disable and the style i am using for job field is message text input and i have set the initial value as 'Manger'.
I am facing issue while creating the records in OAF page without the job filed value ie 'Manager' then the records were not inserted into my tables. Whereas if I enable the job field in OAF page(meaning I gave the job as 'Manager' in OAF page) I am able to create the records from OAF page and able get inserted in the database.
Could Anyone can suggest where I fail as it is my Priority issue.
Any Suggestion will be a great help for me.
Thanks,
Murugesh.or you can default it in the controller by handling add row event
if(vo.hasNext())
vorow = vo.next();
vorow.setAttribute("xxxx",3838);
--Prasanna -
Entity Attributes are not populating while creating EO using EO wizard.
Hi,
I am using JDeveloper version 10.1.3.3.0.3 and E-Business suite12.1.2.
I am facing problem while creating EO using EO wizard.
In Entity Object Editor Entity Attributes are not populating while creating EO.
Please help me resolve this issue.
Thanks & Regards,
SagarikaPlease ensure you click on Tables and Synonyms check box and select proper schema.
Try to select the table from the list after this instead of writing as in 10.1.3 when we write table name it automatically selects from the list if it exists in the list.
Thanks
AJ -
Scrollbar appearing while creating pdf using AlivePDF
Hi,
I am facing a problem while creating pdf using AlivePDF.
I have a VBox on which I am adding multiple pages. If the content overflows it shows scrollbar. All this is working fine.
[PHP]
<mx:VBox x="0" y="80" width="705" height="560" id="content"></mx:VBox>
[/PHP]
When I create the pdf using the following code it shows scrollbar in generated pdf (attached screenshot) while I want all the content without scrollbar
[PHP]
var pg:DisplayObject;
pg = content.getChildAt(i);
var pdf:PDF;
pdf = new PDF (Orientation.PORTRAIT, Unit.POINT, Size.LETTER);
pdf.setDisplayMode(Display.FULL_WIDTH);
pdf.addPage();
pdf.addImage(pg, new Resize(Mode.FIT_TO_PAGE, Position.CENTERED ),0, 0, 0, 0, 0, 1,true,'PNG',100);
[/PHP]
Please suggest what changes should I make to fix this.If the report didn't change, then perhaps the data did. Check
to make sure the data being supplied to the report is as expected.
I have run into mysterious errors where an expected value was of
the wrong type or a required value was now blank. It is also
possible to have existing logical errors in an iif() or other
dynamic evaluation expression that was not previously examined;
until now. So, is there any unexpected or exceptional data the
report cannot handle? -
Issues while creating implementation for BADI "ME_PROCESS_PO_CUST"
Hi Group,
I have issues while creating implementation for BADI "ME_PROCESS_PO_CUST".
I tried to create implementation for the above mentioned BADI but, I was getting an error like this:
"Interface implementation IF_EX_ME_PROCESS_PO_CUST does not exist".
I want to implement this BADI and so, ideas/views at the earliest will be appreciated.
Please let me know how to overcome this error.
Thanks,
Vishnu.Hi,
Have you activated the class which is implementing the interface? (in transaction SE19 you should see class name)
Best regards,
Wojciech
Maybe you are looking for
-
Hi Experts, I need to display an Information Message on a (WAD)Variable Screen. Is it possible? If yes, How? Thanks
-
Maximum number of line items in PO/SA....
Hi, 1. What is the limitation on maximum number of line items in a PO/schedulling agreement/Contract. 2. Also what is the maximum permissible number of lines in a single accounting document possible.As far as I know there is a limitation of counter 9
-
Function Module Undefined during message mapping.
Hi, My Scenario is Idoc to Multiple Files without any condition i have to drop 2 files at the 2 differient directories of FTP, So we are using PI 7.1 and in the Message Mapping using Signature Tab we have added 2 Target messages and at the source we
-
Installing games and adding items needing sync function mannually
I hate the sync function on iTunes because I don't store half of my items on my computer and am always moving things around and manually editing id3 tags in iTunes and Syncing deletes things and returns the tags to what they are on the file itself. I
-
In table TVTA it displays the Fixed date and quantity flag as part of the table. I would like to default this based on sales area criteria. Can someone point me to the part of the IMG where this exists? Thanks - Ron