FM "BAPI_ACTIVITYCRM_CREATEMULTI"
Hello All ,
We are creating activity using fm "BAPI_ACTIVITYCRM_CREATEMULTI",
it's work fine but we figure out 2 problems :
1.We try to update the user status through BAPIBUS20001_STATUS_INS, we pass following parameters :
REF_GUID = transaction guid
STATUS = "E0009"
USER_STAT_PROC = "ZACTI1" but transaction created with initial status "EOOO1".
2.Where we create transaction manually the "Employee Creator" filled automatically, where we trying to do it with FM we can't update/create automatically this field.
Any help will be appriciate.
Rika
Hi Rika,
Try to call function CRM_ORDER_CHANGE_STATUS just for
the status after BAPI ACTIVITY CREATE MULTI.
But you have to remember that E0009 is still in range
Low and High of status E0001.
Hope this helps.
Gun
Similar Messages
-
Error In BAPI_ACTIVITYCRM_CREATEMULTI
Hi,
I am using BAPI_ACTIVITYCRM_CREATEMULTI for creating activity with text.please refer below code for reference.
I am able to create activity but not able to create text.
Error which I am getting is
1) If wa_text-REF_KIND = 'A'. Error is "An authorization check could not be executed"
2) if wa_text-REF_KIND = 'E' Error is "Referenced object type (TEXTS) not allowed"
3) If I am commeting wa_text-ref_handle = 1. Then it create 2 activities 1) with partner 2) for Text without Partner.
Can you please suggest what are changes needed in code below so that i can create Activities with long text.
*& Report ZACTI_UPD
REPORT ZACTI_UPD.
data: header type standard table of BAPIBUS2000110_HEADER_INS,
wa_header type BAPIBUS2000110_HEADER_INS,
headerX type standard table of BAPIBUS2000110_HEADER_INSX,
wa_headerX type BAPIBUS2000110_HEADER_INSX,
partner type standard table of BAPIBUS20001_PARTNER_INS,
wa_partner type BAPIBUS20001_PARTNER_INS,
PARTNERX type standard table of BAPIBUS20001_PARTNER_INSX,
wa_partnerx type BAPIBUS20001_PARTNER_INSX,
return type standard table of BAPIRET2,
createdProcess type standard table of BAPIBUS20001_HEADER_INS,
MATERIAL type standard table of BAPIBUS2000110_MATERIAL,
wa_MATERIAL type BAPIBUS2000110_MATERIAL,
MATERIALX type standard table of BAPIBUS2000110_MATERIALX ,
wa_MATERIALX type BAPIBUS2000110_MATERIALX,
EXTENSIONIN type standard table of BAPIPAREX,
wa_EXTENSIONIN type BAPIPAREX,
JOURNAL type standard table of BAPIBUS2000110_JOURNAL,
wa_JOURNAL type BAPIBUS2000110_JOURNAL,
JOURNALX type standard table of BAPIBUS2000110_JOURNALX,
wa_JOURNALX type BAPIBUS2000110_JOURNALX,
lt_extensionin type table of bapiparex,
text type standard table of BAPIBUS20001_TEXT_INS,
wa_text type BAPIBUS20001_TEXT_INS,
TEXTX type standard table of BAPIBUS20001_TEXT_INSX,
wa_TEXTX type BAPIBUS20001_TEXT_INSX.
call function 'GUID_CREATE'
importing
ev_guid_32 = wa_header-GUID.
My Activity Type
wa_header-PROCESS_TYPE = 'ZH01'. "Value pass from legacy transcation type
wa_header-description = 'Bapi Test'.
My Activity Category
wa_header-CATEGORY = 'CX4'. "Value pass from legacy cetogory
wa_header-PRIORITY = '5'. "Value pass from legacy proiroty
wa_header-posting_date = sy-datum.
wa_header-MODE = 'A'.
wa_header-direction = 0.
append wa_header to header.
wa_headerx-GUId = 'X'.
wa_headerx-PROCESS_TYPE = 'X'.
wa_headerx-DESCRIPTION = 'X'.
wa_headerx-CATEGORY = 'X'.
wa_headerx-PRIORITY = 'X'.
wa_headerx-OBJECTIVE = 'X'.
wa_headerx-POSTING_DATE = 'X'.
wa_headerx-MODE = 'X'.
wa_headerx-DIRECTION = 'X'.
append wa_headerx to headerx.
wa_partner-ref_guid = wa_header-GUID.
wa_partner-REF_KIND = 'A'.
wa_partner-REF_PARTNER_HANDLE = 1.
wa_partner-PARTNER_FCT = '00000009'.
wa_partner-partner_no = '1000000004'.
wa_partner-NO_TYPE = 'BP'. " BP = Business partner #
wa_partner-DISPLAY_TYPE = 'BP'.
append wa_partner to partner.
wa_partner-REF_PARTNER_HANDLE = 2.
wa_partner-PARTNER_FCT = '00000026'.
**User Name
wa_partner-partner_no = '1000000004'.
wa_partner-NO_TYPE = 'US'. "US = USER
wa_partner-DISPLAY_TYPE = 'US'.
append wa_partner to partner.
wa_partnerx-REF_GUID = 'X'.
wa_partnerx-REF_KIND = 'X'.
wa_partnerx-REF_PARTNER_HANDLE = 'X'.
wa_partnerx-PARTNER_FCT = 'X'.
wa_partnerx-PARTNER_NO = 'X'.
wa_partnerx-NO_TYPE = 'X'.
wa_partnerx-DISPLAY_TYPE = 'X'.
append wa_partnerx to partnerx.
TEXT
wa_text-ref_Guid = wa_header-GUID.
wa_text-ref_handle = 2.
wa_text-REF_KIND = 'A'.
wa_text-tdid = 'A002'. "'A002'. " '0200'.
wa_text-tdspras = 'E'.
wa_text-tdline = 'This is my test text.'.
wa_text-tdstyle = 'SYSTEM'.
wa_text-tdform = 'SYSTEM'.
wa_text-mode = 'A'. "guess
wa_text-tdformat = '*'.
append wa_text to text.
wa_textx-ref_guid = 'X'.
wa_textx-ref_handle = 'X'.
wa_textx-REF_KIND = 'X'.
wa_textx-tdid = 'X'..
wa_textx-tdspras = 'X'.
wa_textx-tdline = 'X'.
wa_textX-tdstyle = 'X'.
wa_textX-tdform = 'X'.
wa_textx-mode = 'X'.
wa_textx-tdformat = 'X'.
append wa_textx to textx.
data: ls_process_settings type bapibus20001_procsettings.
ls_process_settings-msglevel = 8 ."gc_msglevel-administrator.
ls_process_settings-save = 'X' . "true.
call function 'BAPI_BUSPROCESSND_PROCSETTINGS'
exporting
process_settings_in = ls_process_settings
tables
return = return
CALL FUNCTION 'BAPI_ACTIVITYCRM_CREATEMULTI'
TABLES
HEADER = header
HEADERX = headerx
PARTNER = partner
PARTNERX = partnerx
ORGANISATION =
ORGANISATIONX =
DATE =
DATEX =
TEXT = text
TEXTX = textx
REASON =
REASONX =
OUTCOME =
OUTCOMEX =
STATUS =
STATUSX =
LOCATION =
LOCATIONX =
INPUT_FIELDS =
CREATED_PROCESS = CREATEDPROCESS
RETURN = return
DOCUMENT_FLOW =
JOURNAL = journal
JOURNALX = journalx
MATERIAL = material
MATERIALX = materialx
EXTENSIONIN = lt_extensionin
if sy-subrc = 0 .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
endif.
field-symbols: <cp> type BAPIBUS20001_HEADER_INS,
<rt> type BAPIRET2.
loop at createdprocess assigning <cp>.
write: / <cp>-OBJECT_ID,
<cp>-description.
endloop.
loop at return assigning <rt>.
write:/ <rt>-message.
endloop.its is resolved
-
BAPI_ACTIVITYCRM_CREATEMULTI - Passing PREDECESSOR_PROCESS
Hello,
We have a customized code for creating activities from inbound mails from customers. We are calling BAPI_ACTIVITYCRM_CREATEMULTI to create the activity. In the header parameter structure, if I pass the guid of the parent activity in the PREDECESSOR_PROCESS and also pass the PREDECESSOR_OBJECT_TYPE, will it link the current activity with it's parent activity in the doc flow.
Regards,
SanjayAjay,
In the program "CRM_CALL_ACTIVITY_INTERFACE", the PREDECESSOR values are not populated. So, if I can't use the PREDECESSOR values to change the parents doc flow then I will have to call 'BAPI_ACTIVITYCRM_CHANGEMULTI' to change the doc flow of the parent. Can anyone please tell me if the PREDECESSOR values are populated then will it change the doc flow of the parent to show the current activity as the objkey_b. -
BAPI_ACTIVITYCRM_CREATEMULTI in CRM
Hi Experts,
I have one query regarding the bapi - BAPI_ACTIVITYCRM_CREATEMULTI.
i want to add some more fields in TABLES of this BAPI.
In TABLES of this BAPI there is a table named as : EXTENSIONIN. I have tried to add some data in this field which should be reflected in the table CRMD_ACTIVITY_I.
Do anybody have any idea regarding BAPI Extension ??Hi Naresh,
Yes. We can extend standard Function Modules available in SAP. For that in ECC 6.0 We have FM Extensions.
Display FM - > Function Module -> Enhance interface.
But I am not able to see the FM in SE37 which you have given.BAPI_ACTIVITYCRM_CREATEMULTI.
All the very best to you.
- MOHAN -
Problem when use BAPI_ACTIVITYCRM_CREATEMULTI
Hi, expert
When i use the BAPI_ACTIVITYCRM_CREATEMULTI to create an activity,
I found a problem.
Here is my code:
ls_text_bapi-ref_handle = '1'.
ls_text_bapi-ref_kind = 'A'.
ls_text_bapi-tdid = 'ZSR1'.
ls_text_bapi-mode = 'A'.
ls_text_bapi-tdspras = sy-langu.
ls_text_bapi-tdline = iv_text_1.
APPEND ls_text_bapi TO lt_text_bapi.
ls_text_bapix-ref_handle = true.
ls_text_bapix-ref_kind = true.
ls_text_bapix-tdid = true.
ls_text_bapix-mode = true.
ls_text_bapix-tdspras = true.
ls_text_bapix-tdline = true.
APPEND ls_text_bapix TO lt_text_bapix.
ls_text_bapi-ref_handle = '2'.
ls_text_bapi-ref_kind = 'A'.
ls_text_bapi-tdid = 'ZSR2'.
ls_text_bapi-mode = 'A'.
ls_text_bapi-tdspras = sy-langu.
ls_text_bapi-tdline = iv_text_1.
APPEND ls_text_bapi TO lt_text_bapi.
ls_text_bapix-ref_handle = true.
ls_text_bapix-ref_kind = true.
ls_text_bapix-tdid = true.
ls_text_bapix-mode = true.
ls_text_bapix-tdspras = true.
ls_text_bapix-tdline = true.
APPEND ls_text_bapix TO lt_text_bapix.
CALL FUNCTION 'BAPI_ACTIVITYCRM_CREATEMULTI'
TABLES
header = lt_activity_h_bapi
headerx = lt_activity_h_bapix
partner = lt_partner_bapi
partnerx = lt_partner_bapix
date = lt_appointment_bapi
datex = lt_appointment_bapix
text = lt_text_bapi
textx = lt_text_bapix
status = lt_status_bapi
statusx = lt_status_bapix
created_process = lt_bapi_act_created
return = lt_bapi_act_return.
then i use the crm_order_read to check the activity,
i found that only the table et_text was empty.
is there any problem in my code ?
Thanks.
Oliver.Solved!
Check the FM 'CRM_MA_ACT_SAVE' .
Best Regards.
Oliver. -
BAPI Extension BAPI_ACTIVITYCRM_CREATEMULTI
Hi Experts,
I have one query regarding the bapi - BAPI_ACTIVITYCRM_CREATEMULTI.
i want to add some more fields in TABLES of this BAPI.
In TABLES of this BAPI there is a table named as : EXTENSIONIN. I have tried to add some data in this field which should be reflected in the table CRMD_ACTIVITY_I.
Do anybody have any idea regarding BAPI Extension ??Please check this link >>
SAP help covers this decision making rather extensively here:
http://help.sap.com/saphelp_nw04/helpdata/en/6b/3f6d016d0711d396a50004ac96334b/frameset.htm
Cheers,
Ashish -
Problem in BAPI_ACTIVITYCRM_CREATEMULTI
Hi Experts!
I am uploading activity in crm throu BAPI_ACTIVITYCRM_CREATEMULTI. When I am inserting data in structures
BAPIBUS2000110_HEADER_INS
BAPIBUS20001_HEADER_INS
BAPIBUS2000110_HEADER_INSX
than it is not updating the ACTIVITY . Msg r shown ie
AN AUTHORIZATIOIN CHECK COULD NOT BE EXECUTED
A LOG HAS BEEN GENERATED FOR SINGLE DOCUMENT
AN AUTHORIZATIOIN CHECK COULD NOT BE EXECUTED
Pls send me the solution.
Regds
NavneetHi Navneet,
That message is due to the error in input data.You have to give all the required mandatory fields in header . Eg:
BAPIBUS2000110_HEADER_INS-GUID
BAPIBUS2000110_HEADER_INS-DESCRIPTION
BAPIBUS2000110_HEADER_INS-DIRECTION
BAPIBUS2000110_HEADER_INS-PRIORITY
BAPIBUS2000110_HEADER_INS-PROCESS_TYPE
BAPIBUS2000110_HEADER_INS-MODE as A.
Set those fields which had data in BAPIBUS2000110_HEADER_INS as X against same field in structure BAPIBUS2000110_HEADER_INSX
Try giving partner and organisation details .
BAPIBUS20001_PARTNER_INS-REF_GUID
BAPIBUS20001_PARTNER_INS-REF_KIND = A
BAPIBUS20001_PARTNER_INS-REF_PARTNER_HANDLE
BAPIBUS20001_PARTNER_INS-PARTNER_FCT
BAPIBUS20001_PARTNER_INS-PARTNER_NO
BAPIBUS20001_PARTNER_INS-NO_TYPE
BAPIBUS20001_PARTNER_INS-DISPLY_TYPE
BAPIBUS20001_ORGMAN_INS -REF_GUID
BAPIBUS20001_ORGMAN_INS -REF_KIND = A
BAPIBUS20001_ORGMAN_INS -REF_PARTNER_HANDLE
BAPIBUS20001_ORGMAN_INS-DIS_CHANNEL
BAPIBUS20001_ORGMAN_INS -SALES_ORG
BAPIBUS20001_ORGMAN_INS -SALES_ORG_RESP
BAPIBUS20001_ORGMAN_INS -MODE = A
Thanks ,
Rajeswari -
Using BAPI_ACTIVITYCRM_CREATEMULTI for creating sales order in CRM
Hello Experts,
I am creating a sales order using BAPI_ACTIVITYCRM_CREATEMULTI, But I am getting the following errors:
1. Reference Object Type (ORGMAN) not allowed
2. Reference Object Type (PARTNER) not allowed
3. Incomplete interface data - No reference specified
4. Item was not found
Can you please help me with the mandatory fields, that has to be filled in the BAPI, and do I need to use Commit BAPI after this BAPI.
Please I am in critical postion,
Now I am able to create a sales order there is no data it like the partner number and Item.May be I am missing some important fileds.
Please help.
Thanks,
Suma
Edited by: Suma B on Aug 8, 2008 1:05 PMHi,
I am passing data using SE37 T-Code.
I was told by the fucntioal guys that GUID will be generated by CRM, so we dont need to send that as an input.
Still facing the same error...
These are my input fields:
REF_HANDLE
REF_GUID
R
OBJECTNAME
LOGICAL_KEY
FIELDNAME
C
|
0000000000
ORDERADM_H
PROCESS_TYPE
0000000000
ORDERADM_H
POSTING_DATE
0000000000
ACTIVITY_H
CATEGORY
0000000000
ACTIVITY_H
PRIORITY
0000000000
ACTIVITY_H
DIRECTION
0000000000
PARTNER
000000000022XXXXXXX
REF_PARTNER_FCT
0000000000
PARTNER
000000000022XXXXXXX
REF_PARTNER_NO
0000000000
PARTNER
000000000022XXXXXXX
PARTNER_FCT
0000000000
PARTNER
000000000022XXXXXXX
PARTNER_NO
0000000000
ORGMAN
DIS_CHANNEL
0000000000
ORGMAN
DIVISION
0000000000
ORGMAN
SALES_ORG
0000000000
ORDERADM_I
PRODUCT
0000000001
B
SCHEDLIN
00000000000000000000000000000000
QUANTITY
|
This is error log:
T
ID
NUM
MESSAGE
LOG_NO
LOG_MS
MESSAGE_V1
MESSAGE_V2
MESSAGE_V3
MESSAGE_V4
PARAMETER
ROW
FIELD
SYSTEM
|
W
CRM_ORDER
004
Referenced object type (ORGMAN) not allowed
$000001
000001
ORGMAN
ORDER
0
CR5CLNT100
W
CRM_ORDER
004
Referenced object type (PARTNER) not allowed
$000001
000002
PARTNER
ORDER
0
CR5CLNT100
W
CRM_ORDER
005
Incomplete interface data - No reference specified
$000001
000003
ORDER
0
CR5CLNT100
E
CRM_ORDERADM_I
006
Item was not found.
$000001
000004
ORDER
0
CR5CLNT100
E
CRM_ORDER
005
Incomplete interface data - No reference specified
$000001
000005
ORDER
0
CR5CLNT100
S
CRM_MESSAGES
005
A log has been generated for single document
$000001
000006
MESSAGES
0
CR5CLNT100
E
COM_PARTNER
119
Enter Sold-To Party
$000002
000001
Sold-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Ship-To Party
$000002
000002
Ship-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Bill-To Party
$000002
000003
Bill-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Payer
$000002
000004
Payer
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Sold-To Party
00000000000000047612
000001
Sold-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Ship-To Party
00000000000000047612
000002
Ship-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Bill-To Party
00000000000000047612
000003
Bill-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Payer
00000000000000047612
000004
Payer
PARTNER
0
PARTNER_NO
CR5CLNT100
|
Thanks,
Suma -
Add Text to Activity using BAPI_ACTIVITYCRM_CREATEMULTI
All:
I am creating activities as part of a data load.
One of the requirements is to assign text to a text type associated with an activity journal. However, I am struggling with this last piece of the puzzle.
I have lifted most of my code from the program "CRM_CALL_ACTIVITY_INTERFACE". Unfortunately, the demo program does not include parameters for passing text.
The snippet below is from my workup program.
Any ideas why the text is not making through the bapi?
data: text type standard table of BAPIBUS20001_TEXT_INS,
wa_text type BAPIBUS20001_TEXT_INS,
TEXTX type standard table of BAPIBUS20001_TEXT_INSX,
wa_TEXTX type BAPIBUS20001_TEXT_INSX.
TEXT
wa_text-ref_Guid = wa_header-GUID.
wa_text-tdid = '0200'.
wa_text-tdspras = 'E'.
wa_text-tdline = 'This is my test text.'.
wa_text-tdstyle = 'SYSTEM'.
wa_text-tdform = 'SYSTEM'.
wa_text-mode = 'I'. "guess
wa_text-tdformat = '*'.
append wa_text to text.
wa_textx-ref_guid = 'X'.
wa_textx-tdid = 'X'..
wa_textx-tdspras = 'X'.
wa_textx-tdline = 'X'.
wa_textX-tdstyle = 'X'.
wa_textX-tdform = 'X'.
wa_textx-mode = 'X'.
wa_textx-tdformat = 'X'.
append wa_textx to textx.
CALL FUNCTION 'BAPI_ACTIVITYCRM_CREATEMULTI'
TABLES
HEADER = header
HEADERX = headerx
PARTNER = partner
PARTNERX = partnerx
ORGANISATION =
ORGANISATIONX =
DATE =
DATEX =
TEXT = text
TEXTX = textx
REASON =
REASONX =
OUTCOME =
OUTCOMEX =
STATUS =
STATUSX =
LOCATION =
LOCATIONX =
INPUT_FIELDS =
CREATED_PROCESS = CREATEDPROCESS
RETURN = return
DOCUMENT_FLOW =
JOURNAL = journal
JOURNALX = journalx
MATERIAL = material
MATERIALX = materialx
EXTENSIONIN = lt_extensionin
Thanks in advance.Mauricio:
Pardon me. You were right about the GUID. I haven't gone through a deep debug, but the results are there.
The GUID is generated a the start of the program and passed to all of the tables required by the function module. This follows the logic laid out in the demo program.
Following your logic, I removed the generated GUID from the table TEXT. Poof my item text appeared in the new generated activity journal.
Thanks for your help.
RM
I have included my code for anyone's perusal. No warranties implied or expressed. Use at you own risk.
*& Report Z_LOAD_ACTIVITIES_FROMDATA *
REPORT Z_LOAD_ACTIVITIES_FROMDATA .
data: header type standard table of BAPIBUS2000110_HEADER_INS,
wa_header type BAPIBUS2000110_HEADER_INS,
headerX type standard table of BAPIBUS2000110_HEADER_INSX,
wa_headerX type BAPIBUS2000110_HEADER_INSX,
partner type standard table of BAPIBUS20001_PARTNER_INS,
wa_partner type BAPIBUS20001_PARTNER_INS,
PARTNERX type standard table of BAPIBUS20001_PARTNER_INSX,
wa_partnerx type BAPIBUS20001_PARTNER_INSX,
return type standard table of BAPIRET2,
MATERIAL type standard table of BAPIBUS2000110_MATERIAL,
wa_MATERIAL type BAPIBUS2000110_MATERIAL,
MATERIALX type standard table of BAPIBUS2000110_MATERIALX ,
wa_MATERIALX type BAPIBUS2000110_MATERIALX,
EXTENSIONIN type standard table of BAPIPAREX,
wa_EXTENSIONIN type BAPIPAREX,
JOURNAL type standard table of BAPIBUS2000110_JOURNAL,
wa_JOURNAL type BAPIBUS2000110_JOURNAL,
JOURNALX type standard table of BAPIBUS2000110_JOURNALX,
wa_JOURNALX type BAPIBUS2000110_JOURNALX,
text type standard table of BAPIBUS20001_TEXT_INS,
wa_text type BAPIBUS20001_TEXT_INS,
TEXTX type standard table of BAPIBUS20001_TEXT_INSX,
wa_TEXTX type BAPIBUS20001_TEXT_INSX.
constants: gc_lenstruc type i value 30.
constants: begin of gc_bapi_te,
activity_i type crmt_object_name value
'BAPI_TE_CRMD_ACTIVITY_I',
activity_ix type crmt_object_name value
'BAPI_TE_CRMD_ACTIVITY_IX',
product_i type crmt_object_name value
'BAPI_TE_CRMD_PRODUCT_I',
lead_h type crmt_object_name value
'BAPI_TE_CRMD_LEAD_H',
opport_h type crmt_object_name value
'BAPI_TE_CRMD_OPPORT_H',
orderadm_h type crmt_object_name value
'BAPI_TE_CRMD_ORDERADM_H',
orderadm_i type crmt_object_name value
'BAPI_TE_CRMD_ORDERADM_I',
shipping type crmt_object_name value
'BAPI_TE_CRMD_SHIPPING',
sales type crmt_object_name value
'BAPI_TE_CRMD_SALES',
schedlin type crmt_object_name value
'BAPI_TE_CRMD_SCHEDLIN',
pricing type crmt_object_name value
'BAPI_TE_CRMD_PRICING',
pricing_i type crmt_object_name value
'BAPI_TE_CRMD_PRICING_I',
billing type crmt_object_name value
'BAPI_TE_CRMD_BILLING',
ordprp_i type crmt_object_name value
'BAPI_TE_CRMD_ORDPRP_I',
end of gc_bapi_te.
* My structure for loading the journal
data: ls_activity_i_add_fields type zzcrmt_activity_i_add_fields,
ls_te_activity_i type bapi_te_crmd_activity_i,
ls_te_activity_ix type bapi_te_crmd_activity_ix,
ls_extensionin type bapiparex,
lt_extensionin type table of bapiparex.
data: ls_activity_bapi type bapibus2000110_header_ins,
lt_return2 type standard table of bapiret2,
createdProcess type standard table of BAPIBUS20001_HEADER_INS.
field-symbols: <lv_anyfield> type simple,
<lv_flagfield> type simple,
<lv_fn> type any,
<lv_ft> type any.
data:
laeng type zzcrmt_activity_i_add_fields-laeng,
breit type zzcrmt_activity_i_add_fields-breit,
hoehe type zzcrmt_activity_i_add_fields-hoehe,
meabm type zzcrmt_activity_i_add_fields-meabm,
prava type zzcrmt_activity_i_add_fields-prava,
pravb type zzcrmt_activity_i_add_fields-pravb,
subjecta type zzcrmt_activity_i_add_fields-subjecta,
subjectb type zzcrmt_activity_i_add_fields-subjectb,
result type zzcrmt_activity_i_add_fields-kv_result,
resreas type zzcrmt_activity_i_add_fields-resreas,
kv_deko type zzcrmt_activity_i_add_fields-kv_deko,
dekotp type zzcrmt_activity_i_add_fields-dekotp,
kv_stock type zzcrmt_activity_i_add_fields-kv_stock,
posloc type zzcrmt_activity_i_add_fields-posloc,
kv_zpanz type zzcrmt_activity_i_add_fields-kv_zpanz,
kv_zpava type zzcrmt_activity_i_add_fields-kv_zpava,
nrmshf type zzcrmt_activity_i_add_fields-nrmshf,
nrpshf type zzcrmt_activity_i_add_fields-nrpshf,
posver type zzcrmt_activity_i_add_fields-posver,
poshor type zzcrmt_activity_i_add_fields-poshor,
posqli type zzcrmt_activity_i_add_fields-posqli,
ecropt type zzcrmt_activity_i_add_fields-ecropt,
nroffac type zzcrmt_activity_i_add_fields-nroffac,
faclen type zzcrmt_activity_i_add_fields-faclen,
facwid type zzcrmt_activity_i_add_fields-facwid,
facdep type zzcrmt_activity_i_add_fields-facdep,
facunit type zzcrmt_activity_i_add_fields-facunit,
sprice type zzcrmt_activity_i_add_fields-sprice,
oprice type zzcrmt_activity_i_add_fields-oprice,
aprice type zzcrmt_activity_i_add_fields-aprice,
kvcurr1 type zzcrmt_activity_i_add_fields-kvcurr1,
phrefnr type zzcrmt_activity_i_add_fields-phrefnr,
storno type zzcrmt_activity_i_add_fields-storno,
lbval type zzcrmt_activity_i_add_fields-lbval,
grade type ZZCRMT_ACTIVITY_I_ADD_FIELDS-grade,
trade_name type ZZCRMT_ACTIVITY_I_ADD_FIELDS-grade.
data: logsys type bapibus20001_doc_flow_ins-logsys_a.
data: lr_structdescr_bapi_te type ref to cl_abap_structdescr,
lr_structdescr_add_fields type ref to cl_abap_structdescr,
lv_component like line of cl_abap_structdescr=>components.
* INITIALIZATION *
initialization.
data: lv_datum(10) type c,
lv_uzeit(6) type c..
write: sy-datum to lv_datum dd/mm/yyyy,
sy-uzeit to lv_uzeit using edit mask '__:__'..
call function 'OWN_LOGICAL_SYSTEM_GET'
importing
own_logical_system = logsys
exceptions
others = 0.
lr_structdescr_bapi_te ?= cl_abap_typedescr=>describe_by_data(
ls_te_activity_i ).
lr_structdescr_add_fields ?= cl_abap_typedescr=>describe_by_data(
ls_activity_i_add_fields ).
start-of-selection.
* Test journal entries
subjecta = 'Z000000001'.
subjectb = 'Z007'.
FACUNIT = 'KG'.
grade = '200%'.
trade_name = 'Chlorine Tonner'.
call function 'GUID_CREATE'
importing
ev_guid_32 = wa_header-GUID.
* My Activity Type
wa_header-PROCESS_TYPE = 'ZCON'.
wa_header-description = 'This is my bapi test'.
* My Activity Category
wa_header-CATEGORY = 'Z01'.
wa_header-PRIORITY = '5'.
wa_header-posting_date = sy-datum.
wa_header-MODE = 'A'.
wa_header-direction = 0.
append wa_header to header.
wa_headerx-GUId = 'X'.
wa_headerx-PROCESS_TYPE = 'X'.
wa_headerx-DESCRIPTION = 'X'.
wa_headerx-CATEGORY = 'X'.
wa_headerx-PRIORITY = 'X'.
wa_headerx-OBJECTIVE = 'X'.
wa_headerx-POSTING_DATE = 'X'.
wa_headerx-MODE = 'X'.
wa_headerx-DIRECTION = 'X'.
append wa_headerx to headerx.
wa_partner-ref_guid = wa_header-GUID.
wa_partner-REF_KIND = 'A'.
wa_partner-REF_PARTNER_HANDLE = '0001'.
wa_partner-PARTNER_FCT = '00000009'.
wa_partner-partner_no = '45000181'.
wa_partner-NO_TYPE = 'BP'.
wa_partner-DISPLAY_TYPE = 'BP'.
append wa_partner to partner.
wa_partner-REF_PARTNER_HANDLE = '0002'.
wa_partner-PARTNER_FCT = '00000022'.
*User Name
wa_partner-partner_no = 'RMYERS'.
wa_partner-NO_TYPE = 'US'.
wa_partner-DISPLAY_TYPE = 'US'.
append wa_partner to partner.
wa_partnerx-REF_GUID = 'X'.
wa_partnerx-REF_KIND = 'X'.
wa_partnerx-REF_PARTNER_HANDLE = 'X'.
wa_partnerx-PARTNER_FCT = 'X'.
wa_partnerx-PARTNER_NO = 'X'.
wa_partnerx-NO_TYPE = 'X'.
wa_partnerx-DISPLAY_TYPE = 'X'.
append wa_partnerx to partnerx.
wa_material-header = wa_header-GUID.
wa_material-handle = 1.
*Product GUID
wa_material-product ='A105BA8D09107646BF7C58408DCECEFA'.
wa_material-ORDERED_PROD = '90000113'.
* using volume not quanitiy fileds
wa_material-volume = 100.
* wa_material-QUANTITY = 100.
append wa_material to material.
wa_materialx-HANDLE = 'X'.
wa_materialx-PRODUCT = 'X'.
wa_materialx-HEADER = 'X'.
wa_materialx-volume = 'X'.
wa_material-ORDERED_PROD = 'X'.
wa_materialx-QUANTITY = 'X'.
append wa_materialx to materialx.
data j_guid like wa_JOURNAL-journal_guid.
j_guid = 'B845C68411370348807A9C46F74A756C'.
wa_JOURNAL-ref_handle = '0000000001'.
* My journal GUID
wa_JOURNAL-journal_guid = 'B845C68411370348807A9C46F74A756C'.
append wa_journal to journal.
wa_JOURNALX-journal_guid = 'X'.
wa_JOURNALX-ref_handle = 'X'.
append wa_JOURNALX to journalx.
move: laeng to ls_activity_i_add_fields-laeng,
breit to ls_activity_i_add_fields-breit,
hoehe to ls_activity_i_add_fields-hoehe,
meabm to ls_activity_i_add_fields-meabm,
prava to ls_activity_i_add_fields-prava,
pravb to ls_activity_i_add_fields-pravb,
subjecta to ls_activity_i_add_fields-subjecta,
subjectb to ls_activity_i_add_fields-subjectb,
result to ls_activity_i_add_fields-kv_result,
resreas to ls_activity_i_add_fields-resreas,
kv_deko to ls_activity_i_add_fields-kv_deko,
dekotp to ls_activity_i_add_fields-dekotp,
kv_stock to ls_activity_i_add_fields-kv_stock,
posloc to ls_activity_i_add_fields-posloc,
kv_zpanz to ls_activity_i_add_fields-kv_zpanz,
kv_zpava to ls_activity_i_add_fields-kv_zpava,
nrmshf to ls_activity_i_add_fields-nrmshf,
nrpshf to ls_activity_i_add_fields-nrpshf,
posver to ls_activity_i_add_fields-posver,
poshor to ls_activity_i_add_fields-poshor,
posqli to ls_activity_i_add_fields-posqli,
ecropt to ls_activity_i_add_fields-ecropt,
nroffac to ls_activity_i_add_fields-nroffac,
faclen to ls_activity_i_add_fields-faclen,
facwid to ls_activity_i_add_fields-facwid,
facdep to ls_activity_i_add_fields-facdep,
facunit to ls_activity_i_add_fields-facunit,
sprice to ls_activity_i_add_fields-sprice,
oprice to ls_activity_i_add_fields-oprice,
aprice to ls_activity_i_add_fields-aprice,
kvcurr1 to ls_activity_i_add_fields-kvcurr1,
phrefnr to ls_activity_i_add_fields-phrefnr,
storno to ls_activity_i_add_fields-storno,
lbval to ls_activity_i_add_fields-lbval,
grade to ls_activity_i_add_fields-grade,
trade_name to ls_activity_i_add_fields-trade_name.
move-corresponding ls_activity_i_add_fields to ls_te_activity_i.
include: crm_bapi_eewfields_move.
while sy-subrc eq 0. "// Set the X-flags generic
assign component sy-index of structure ls_te_activity_i to
<lv_anyfield>.
if sy-subrc eq 0.
if not <lv_anyfield> is initial.
assign component sy-index of structure ls_te_activity_ix to
<lv_flagfield> casting type bapiupdate.
if sy-subrc eq 0.
<lv_flagfield> = 'X'.
endif.
endif.
endif.
endwhile.
if not ls_te_activity_ix is initial.
ls_te_activity_i-ref_handle = ls_te_activity_ix-ref_handle = 1.
ls_te_activity_i-journal_guid = ls_te_activity_ix-journal_guid = j_guid
call method cl_abap_container_utilities=>fill_container_c
exporting
im_value = ls_te_activity_i
importing
ex_container = ls_extensionin+gc_lenstruc
exceptions
illegal_parameter_type = 1
others = 2.
move gc_bapi_te-activity_i to ls_extensionin-structure.
append ls_extensionin to lt_extensionin.
call method cl_abap_container_utilities=>fill_container_c
exporting
im_value = ls_te_activity_ix
importing
ex_container = ls_extensionin+gc_lenstruc
exceptions
illegal_parameter_type = 1
others = 2.
move gc_bapi_te-activity_ix to ls_extensionin-structure.
append ls_extensionin to lt_extensionin.
endif.
* TEXT
* wa_text-ref_Guid = wa_header-GUID.
wa_text-ref_handle = '0000000001'.
wa_text-REF_KIND = 'B'.
wa_text-tdid = '0200'.
wa_text-tdspras = 'E'.
wa_text-tdline = 'This is my test text.'.
wa_text-tdstyle = 'SYSTEM'.
wa_text-tdform = 'SYSTEM'.
wa_text-mode = 'B'. "guess
wa_text-tdformat = '*'.
append wa_text to text.
* wa_textx-ref_guid = 'X'.
wa_textx-REF_KIND = 'X'.
wa_textx-tdid = 'X'..
wa_textx-tdspras = 'X'.
wa_textx-tdline = 'X'.
wa_textX-tdstyle = 'X'.
wa_textX-tdform = 'X'.
wa_textx-mode = 'X'.
wa_textx-tdformat = 'X'.
append wa_textx to textx.
data: ls_process_settings type bapibus20001_procsettings,
lt_created_header type table of bapibus20001_header_ins,
ls_created_header type bapibus20001_header_ins.
ls_process_settings-msglevel = 8 ."gc_msglevel-administrator.
ls_process_settings-save = 'X' . "true.
call function 'BAPI_BUSPROCESSND_PROCSETTINGS'
exporting
process_settings_in = ls_process_settings
tables
return = lt_return2.
CALL FUNCTION 'BAPI_ACTIVITYCRM_CREATEMULTI'
TABLES
HEADER = header
HEADERX = headerx
PARTNER = partner
PARTNERX = partnerx
* ORGANISATION =
* ORGANISATIONX =
* DATE =
* DATEX =
TEXT = text
TEXTX = textx
* REASON =
* REASONX =
* OUTCOME =
* OUTCOMEX =
* STATUS =
* STATUSX =
* LOCATION =
* LOCATIONX =
* INPUT_FIELDS =
CREATED_PROCESS = CREATEDPROCESS
RETURN = return
* DOCUMENT_FLOW =
JOURNAL = journal
JOURNALX = journalx
MATERIAL = material
MATERIALX = materialx
EXTENSIONIN = lt_extensionin
if sy-subrc = 0 .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
endif.
field-symbols: <cp> type BAPIBUS20001_HEADER_INS,
<rt> type BAPIRET2.
loop at createdprocess assigning <cp>.
write: / <cp>-OBJECT_ID,
<cp>-description.
endloop.
loop at return assigning <rt>.
write:/ <rt>-message.
endloop. -
Activity through BAPI_ACTIVITYCRM_CREATEMULTI or CRM_ORDER_MAINTAIN
Hi All,
I have to create activity from Legacy file, so which one would be convenient as FM CRM_ORDER_MAINTAIN is a generic FM and it can create Opprtunity,Activity etc.and there is a BAPI FM ( which creates Activity )BAPI_ACTIVITYCRM_CREATEMULTI .What Should one use in a conversion program in which input is in a fixed length file format.
Thanks & Regards.
Paul Dibs.Hi Koushik,
Thanks for the reply,
But still I need to know what are the specific difference between the two function module.Even in CRM_ORDER MAINTAIN I am able to get all those Structure with which I am working in BAPIACTIVITYCRM_CREATEMULTI. I know all the other CRM Business transaction can be created through CRM_ORDER_MAINTAIN. If you could explain a bit detail in what context one should use CRM_ORDER MAINTAIN and BAPIACTIVITYCRM_CREATEMULTI. -
How to make processing of BAPI_ACTIVITYCRM_CREATEMULTI time efficient
hello
We want to upload the CRM Business activity (Interaction Record) using 'BAPI_ACTIVITYCRM_CREATEMULTI ' .It is taking 30 min to upload 5000 records, but the actual file will contain more than 1 million records.Is there any way to upload it efficiently.HI,
Use the "Parallel Processing" to reduce the time taken to execute more records..
Just search "Parallel processing in SAP" in GOOGLE for teh methods... -
From dialog user to service user & BAPI BAPI_ACTIVITYCRM_CREATEMULTI
Hello all,
I have a question. When being a<b> dialog</b> user, running the fm BAPI BAPI_ACTIVITYCRM_CREATEMULTI creates no problems. E.g., the number of partners added to the activity is correctly stored in the internal table. However, since I want to prevent that I have to update the password every x days, I want to use a <b>system</b> or <b>service</b> type of user.
The problem now is that the function modules returns with an <b>error</b>. Because a certain partner now is NOT added/available anymore.
To sum, running the fm with dialog user gives a good, desired result. Chaning the user the system gives an erroneous result.
What changes do I have to make so that it correctly adds the desired partner type to my activity?
MehmetThanks RENE for your answer.
The problem is solved, it seems that i was passing fields that i didn´t have to pass, so instead of passing all the fields of the partner, now i just pass:
wa_partner_bapi-ref_guid
wa_partner_bapi-ref_kind
wa_partner_bapi-partner_no
wa_partner_bapi-partner_fct
wa_partner_bapi-ref_partner_handle
wa_partner_bapi-no_type
wa_partner_bapi-display_tyype
Regards,
Filipe -
Text creation in BAPI_ACTIVITYCRM_CREATEMULTI
Hi,
I am not able to add notes with the activity created using FM :
BAPI_ACTIVITYCRM_CREATEMULTI . I am writing the below code:
* Set Text
wa_text_bapi-ref_guid = wa_activity-zcrm_guid. " having the header GUID
wa_text_bapi-ref_handle = '0000000001'.
wa_text_bapi-REF_KIND = 'A'.
wa_text_bapi-tdid = 'A001'.
wa_text_bapi-tdspras = sy-langu.
wa_text_bapi-tdline = wa_raw_act-description. "having the notes values
wa_text_bapi-tdstyle = 'SYSTEM'.
wa_text_bapi-tdform = 'SYSTEM'.
wa_text_bapi-mode = 'A'. "guess
wa_text_bapi-tdformat = '*'.
append wa_text_bapi to lt_text_bapi.
wa_text_bapix-ref_guid = 'X'.
wa_text_bapix-ref_handle = 'X'.
wa_text_bapix-REF_KIND = 'X'.
wa_text_bapix-tdid = 'X'..
wa_text_bapix-tdspras = 'X'.
wa_text_bapix-tdline = 'X'.
wa_text_bapix-tdstyle = 'X'.
wa_text_bapix-tdform = 'X'.
wa_text_bapix-mode = 'X'.
wa_text_bapix-tdformat = 'X'.
append wa_text_bapix to lt_text_bapix.
CALL FUNCTION 'BAPI_ACTIVITYCRM_CREATEMULTI'
TABLES
header = it_activity_bapi
headerx = it_activity_bapix
TEXT = lt_text_bapi
TEXTX = lt_text_bapix
STATUS = lt_status_bapi
STATUSX = lt_status_bapix
document_flow = lt_docflow_bapi
journal = lt_journal_bapi
journalx = lt_journal_bapix
material = lt_material_bapi
materialx = lt_material_bapix
extensionin = lt_extensionin
created_process = lt_created_header
return = lt_return2.
But the text is not getting added to the notes .
Please help.
thanks,
MansiHi Mansi,
Everything seems fine, so I really don't have much to say, but let me just share with you three thoughts:
- If you're filling the ref_guid, you don't need to fill the ref_handle (and vice-versa).
- Can you confirm the text ID is A001? Just saying this because the 'notes' text in my system for standard Interaction Record text profile, is A002.
- If still don't work, you can try to consider creating the activity using FM CRM_MA_ACT_SAVE.
Kind regards,
Garcia -
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,
SandeepHi,
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 -
Hi i am working with bapi BAPI_ACTIVITYCRM_CREATEMULTI
hi,
i am working with BAPI_ACTIVITYCRM_CREATEMULTI this bapi create a activity and all the things are ok, but my problem is by using this bapi how can i handle attachment ple help me on this issue.
Regards,
TanveerShravani28 wrote:
Thanks.
But this is not the solution.Your following description says that Rewriter IS the solution.
I have written many pattern satisfying different conditions. and this pattern will be one of them.
When I give any input ,it will iterate all the pattern loop and find out the exact pattern to which its getting matched.
There will be one specific format difined for each pattern in which we wanna a get string reformatted.
Suppose xyz matching pattern1 , its associated output format will be defined in some property file. it wil grab this and reformat the string.
If it doesn't match any pattern , it will give error message.
So like this way. my concern is to find out the spaces present in a string. It can be anyhwere.
Can I acheive this through regexpUsing Rewriter - yes!
Of course I could be misunderstanding your requirement. Maybe a few examples might clarify the problem.
Maybe you are looking for
-
Problem with display of nokia lumia 1320
My lumia 1320 display has broken,,but the phone is still 100 percentage functional ,,,but there seems to be a lot of cracks on the display...so...what should i do??? should i replace display or digitizer or front glass screen lense cover...please hel
-
Pictures not showing up in media/pictures folder
Hi there, new blackberry user. I have taken a few pictures with my Bold 9700 and the have shown up in media/pictures/all pictures. Not sure what happened, but now when I take pictures, I can only view them if I explore and go to the pictures folder
-
N80 vista x64 portable device driver
Hi, When connecting the N80 to USB and selecting "Media Player" mode, vista doesnt find an appropriate driver. I installed nokia suite 6.83. I remember that this worked at somepoint, but I somehow managed to delete the nokia n80 entry via uninstall f
-
I have a Producer consumer loop that is reading in data from a Excel File call sample1. There is a third party software that constantly writes data to the same excel file Sample1 every _ amount of seconds. Every time the Third party software writes
-
I've never used any Data Guard protection mode except Maximum Performance before so please forgive me if my questions seem ignorant. I have a primary DB with 2 standbys both currently operating in maximum performance mode. The primary is a 2 node RAC