Identify unread items in Inbox via SDK
I have determined that it is possible to read the items in a user's inbox via the RESTful WS SDK, since it can be accessed like any other folder.
I would like to know if it is possible to identify which items in the in the inbox are unread.
(As far as I can determine, the answer is no, but I'm hoping I missed something).
hi Emily
You are correct. The Platform Rest WS just returns infoobjects and their types. It doesn't return info that is specific to the type of plugin associated with the infoobject. This could be a great enhancement for the SAP Idea Place though.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Similar Messages
-
Creating action log entry for incident via SDK in C#
Hi,
Does anyone have any example code, or pointer to, of how to add an action log entry (with icon) to an incident? I can't work out what the target for the relationship should be or how to configure it...
With Thanks,
RobAnton,
Thanks for your response! I think the problem may be in how I'm creating "WorkItemMP". In the method below I'm trying to pass in an issue Id parameter to add an action log item to an Issue.
How are you creating the "WorkItemMP"?
public
void
UpdateActionLog(string
nsId)
EnterpriseManagementGroup
emg1 = new
EnterpriseManagementGroup("server01.xyx.com"
ManagementPackClass
classIncident = emg1.EntityTypes.GetClass(new
Guid(SYSTEM_WORKITEM_INCIDENT_CLASSS));
// A604B942-4C7B-2FB2-28DC-61DC6F465C68
EnterpriseManagementObjectProjection
incidentProjection = new
EnterpriseManagementObjectProjection
(emg1, classIncident);
ManagementPack
WorkItemMP = emg1.ManagementPacks.GetManagementPack(new
Guid("DD26C521-7C2D-58C0-0980-DAC2DACB0900"));
//System.WorkItem.Incident.Library MP
CreatableEnterpriseManagementObject
cemoIncident = new
CreatableEnterpriseManagementObject(emg1,
classIncident);
cemoIncident[classIncident,
"Id"
].Value = nsId;
ManagementPackClass
typeActionLog = emg1.EntityTypes.GetClass("System.WorkItem.TroubleTicket.ActionLog"
, WorkItemMP);
CreatableEnterpriseManagementObject
objectActionLog = new
CreatableEnterpriseManagementObject
(emg1, typeActionLog);
objectActionLog[typeActionLog,
"Id"].Value
= Guid
.NewGuid().ToString();
objectActionLog[typeActionLog,
"Description"].Value
= "Incident updated via SDK.\n"
objectActionLog[typeActionLog,
"Title"].Value
= "Incident updated via SDK"
objectActionLog[typeActionLog,
"EnteredBy"].Value
= "Administrator"
objectActionLog[typeActionLog,
"EnteredDate"].Value
= DateTime
.Now.ToUniversalTime();
ManagementPackEnumeration
enumeration6 = WorkItemMP.GetEnumerations().GetItem("System.WorkItem.ActionLogEnum.TaskExecuted"
objectActionLog[typeActionLog,
"ActionType"
].Value = enumeration6.Id;
ManagementPackRelationship
relationship2 = emg1.EntityTypes.GetRelationshipClass("System.WorkItem.TroubleTicketHasActionLog"
, WorkItemMP);
if
(incidentProjection != null
incidentProjection.Add(objectActionLog, relationship2.Target);
incidentProjection.Commit(); -
Setting Activity AttendEmpl or AttendUser via SDK
Dear all,
I'm developing a procedure via SAP DI SDK to create new Activities into SAP B1.
Iuse the SAPbobsCOM.Contacts class.
I need to set the OCGL AttendEmpl / AttendUser fields
Is it possible via SDK?
I can use the HandledBy property only if the Employee is also a SAP user.
How can we set AttendEmpl / AttendUser fields via SDK when the Employee is not associated to a SAP user?
Best regards
EmanueleDear Beni,
thank you for your help.
I solved the problem using
Dim oCompServ As SAPbobsCOM.CompanyService = Nothing
Dim oActivityServ As SAPbobsCOM.ActivitiesService = Nothing
Dim vNewActivity As SAPbobsCOM.Activity = Nothing
oCompServ = oCompany.GetCompanyService
oActivityServ = oCompServ.GetBusinessService(SAPbobsCOM.ServiceTypes.ActivitiesService)
vNewActivity = oActivityServ.GetDataInterface(SAPbobsCOM.ActivitiesServiceDataInterfaces.asActivity)
vNewActivity.HandledBy = dsOrders.Tables(0).Rows(iterOrders).Item("HandledBy")
oActivityServ.AddActivity(vNewActivity)
Best regards
Emanuele -
SBWP - When delete items in Inbox the error is coming - Lock Entries (SM12)
Hi Friends,
Whenever delete workflow items from Inbox (txn : SBWP), I am getting the below error.
Requested object is currently blocked by user <XXXXX>
Diagnosis :
No lock can be granted by calling a function module, as enqueue another SAP transaction keeps blocking concerned.
Technical: C_ENQUEUE routine provides the following return codes:
COLLISION_OBJECT = EMMARAE
COLLISION_UNAME = CEMCONC
System activity
The enqueue function module triggers the exception. If this exception was not intercepted by the application program, the SAP transaction is automatically interrupted.
Procedure
Check the table blocking the user or transaction that maintains the requested block (Tools -> Administration ==> Monitors -> Entries blocking). Contact this user if necessary.
After this error, the item is deleted from the inbox. Then, when I go and check in SM12, there are 3 entries are created : 2 entries with Lock Mode as 'S' and one entry with Lock Mode 'E' in MARA table.
After refresh in RS12/SM12 tcodes, these 3 entries has gone.
Friends, can you kindly clarify why the above error message is coming while delete ? How to avoid this ?
Kind regards,
Jegathees P.An Z indexes created for the table CDHDR (Followed the note 150925)
-
How to identify BOM items in the report
Hi,
I have a requirement from the user that they want to exclude all BOM items from the report which is showing all the Items.So how can i identify those items from the report query??
ThanksSELECT DISTINCT
DECODE (ooh.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', NULL,
'DRAFT', NULL,
'DRAFT_CUSTOMER_REJECTED', NULL,
'DRAFT_SUBMITTED', NULL,
ooh.order_number)
Ord,
ottt.name ord_type,
ooh.ordered_date Order_Date,
ooh.quote_number quote_no,
ool.line_number LNum,
ooh.flow_status_code Order_status,
-- hca.account_number Customer_number ,
ool.flow_status_code line_status,
PAB.PARTY_NAME bill_Customer_Name,
ACB.ACCOUNT_NUMBER bill_Customer_number,
PAS.PARTY_NAME ship_Customer_name,
ACS.ACCOUNT_NUMBER ship_to_Customer_Number,
ool.unit_selling_price selling_price,
ool.unit_list_price list_price,
ool.ORDERED_ITEM pNum,
ooh.booked_date Date_booked,
ool.Actual_shipment_date Ship_date,
ooh.header_id header_id,
mtl.description pDesc,
gcc.segment4 Revenue_account,
-- ooh.shipping_instructions,
REPLACE (ooh.SHIPPING_INSTRUCTIONS, CHR (10), ',')
shipping_instructions,
ool.schedule_ship_date SSD,
DECODE (ool.flow_status_code,
'BOOKED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_FULFILLMENT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'ENTERED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RECEIPT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SHIPPED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_SHIPPING', ool.ordered_quantity,
NULL, ool.flow_status_code,
'OFFER_EXPIRED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
NULL, ool.flow_status_code,
'XXMI_WAIT_MSA', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_SUBMITTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'LOST', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PO_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
NULL)
Qty_Remning,
DECODE (ool.flow_status_code,
'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
NULL)
INV_AMOUNT,
ool.ordered_quantity - NVL (ool.cancelled_quantity, 0) qua_ord,
(NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0)
Ext_value,
-- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N') Credit_Hold ,
ooh.cust_po_number PONUm
FROM apps.oe_order_headers_all ooh,
apps.oe_order_lines_all ool,
apps.mtl_system_items_b mtl,
apps.org_organization_definitions ood,
apps.gl_code_combinations gcc,
AR.HZ_PARTIES PAH,
AR.HZ_CUST_ACCOUNTS ACH,
AR.HZ_CUST_SITE_USES_ALL SUB,
AR.HZ_CUST_ACCT_SITES_ALL STB,
AR.HZ_CUST_ACCOUNTS ACB,
AR.HZ_PARTIES PAB,
AR.HZ_CUST_SITE_USES_ALL SUS,
AR.HZ_CUST_ACCT_SITES_ALL STS,
AR.HZ_CUST_ACCOUNTS ACS,
AR.HZ_PARTIES PAS,
apps.oe_transaction_types_tl ottt,
apps.per_all_people_f papf
-- apps.OE_ORDER_HOLDS_ALL ooha,
-- apps.OE_HOLD_SOURCES_ALL ohsa
-- ,apps.OE_HOLD_DEFINITIONS Hod_def
WHERE ooh.header_id = ool.header_id
AND ool.org_id = NVL (:p_org_id, ool.org_id)
AND ool.flow_status_code != 'CLOSED'
--and ooha.header_id(+) = ooh.header_id
--and ooha.line_id(+) = ool.line_id
--and ohsa.hold_source_id = ooha.hold_source_id
--and ohsa.hold_id = Hod_def.hold_id
--and ohsa.RELEASED_FLAG = 'N'
AND ooh.attribute2 = papf.person_id(+)
AND ottt.language = 'US'
AND ooh.order_type_id = ottt.transaction_type_id(+)
AND ooh.open_flag = 'Y'
--and ooh.order_number = '40000791'
AND ooh.SOLD_TO_ORG_ID = ACH.CUST_ACCOUNT_ID
AND ACH.PARTY_ID = PAH.PARTY_ID
AND oOH.INVOICE_TO_ORG_ID = SUB.SITE_USE_ID(+)
AND SUB.CUST_ACCT_SITE_ID = STB.CUST_ACCT_SITE_ID(+)
AND STB.CUST_ACCOUNT_ID = ACB.CUST_ACCOUNT_ID(+)
AND ACB.PARTY_ID = PAB.PARTY_ID(+)
AND oOH.SHIP_TO_ORG_ID = SUS.SITE_USE_ID
AND SUS.CUST_ACCT_SITE_ID = STS.CUST_ACCT_SITE_ID
AND STS.CUST_ACCOUNT_ID = ACS.CUST_ACCOUNT_ID
AND ACS.PARTY_ID = PAS.PARTY_ID
-- and SOH.CANCELLED_FLAG ='N'
AND ool.inventory_item_id = mtl.inventory_item_id
AND ool.org_id = mtl.organization_id
AND mtl.sales_account = gcc.code_combination_id
AND ool.org_id = ood.organization_id
--and ooh.salesrep_id = jrs.salesrep_id
--&LP_INCL_QUOTES
GROUP BY DECODE (ooh.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', NULL,
'DRAFT', NULL,
'DRAFT_CUSTOMER_REJECTED', NULL,
'DRAFT_SUBMITTED', NULL,
ooh.order_number),
ottt.name,
ooh.ordered_date,
ooh.quote_number,
ool.line_number,
ooh.flow_status_code,
--- hca.account_number ,
ool.flow_status_code,
PAB.PARTY_NAME,
ACB.ACCOUNT_NUMBER,
PAS.PARTY_NAME,
ACS.ACCOUNT_NUMBER,
ool.unit_selling_price,
ool.unit_list_price,
ooh.shipping_instructions,
ool.ORDERED_ITEM,
ooh.booked_date,
ool.Actual_shipment_date,
ooh.header_id,
mtl.description,
gcc.segment4,
ooh.cust_po_number,
(NVL (ool.ordered_quantity, 0)) * NVL (ool.unit_selling_price, 0),
ool.schedule_ship_date,
DECODE (ool.flow_status_code,
'BOOKED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_FULFILLMENT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN_DISPOSITION', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'ENTERED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RETURN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_RECEIPT', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SHIPPED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PENDING_CUSTOMER_ACCEPTANCE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_INTERNAL_REJECTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'AWAITING_SHIPPING', ool.ordered_quantity,
NULL, ool.flow_status_code,
'OFFER_EXPIRED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_I', ool.ordered_quantity,
NULL, ool.flow_status_code,
'XXMI_WAIT_MSA', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'DRAFT_SUBMITTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'LOST', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'INTERNAL_REQ_REQUESTED', ool.ordered_quantity,
NULL, ool.flow_status_code,
'EXTERNAL_REQ_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'PO_OPEN', ool.ordered_quantity,
NULL, ool.flow_status_code,
'SUPPLY_ELIGIBLE_E', ool.ordered_quantity,
NULL),
DECODE (ool.flow_status_code,
'CLOSED', (ool.ordered_quantity * ool.unit_selling_price),
NULL),
ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)
-- DECODE (Hod_def.Name,'Credit Card Auth Failure', 'Y','N',Hod_def.NAME,'Credit Card High Risk', 'Y','N',Hod_def.NAME,'Credit Check Failure', 'Y','N',Hod_def.NAME,'Credit Note Hold','Y', 'N')
-- (hz_loc.Address1||','||hz_loc.Address2||','||hz_loc.City||','||hz_loc.State)
HAVING (ool.ordered_quantity - NVL (ool.cancelled_quantity, 0)) >
SUM (NVL (ool.shipped_quantity, 0))
ORDER BY 1, 2, 3; -
Unread items in folders are not shown
I recently upgraded to Office 2013 and use Outlook as my primary mail client for work. In Outlook 2010 when a folder had new/unread mail in it the folder would bold and show the number of unread items in the folder. I have not successfully gotten
this to work on Outlook 2013. I have selected the properties of the folder and tried to have it show the total number of items in the folder as well as only the unread ones. Neither of these numbers show up next to the folder. This is causing
some significant frustration because hours are going by without me realizing that I have unread email. How do I make outlook show the unread items count for each folder?
Please help!
Thanks!Hi,
Please right-click the problematic Outlook folder, click Properties and make sure “Show number of unread items” is checked in Outlook 2013.
Regards,
Winnie Liang
TechNet Community Support -
How to retain the work item in inbox of user if user press the icon cancel?
HI,
we are using a text editor in approval section of workflow where the user needs to enter the reason for apporval or rejection.
the requirement is how to retain the work item in inbox of user if user press the icon cancel? there are two icons in editor,one is ok(tick marg) and cancel(cross mark).
so when user dont enter any text in the editor and press on cancel icon,then approval/rejection should not authorize and work item will remain in the user's inbox .unless and untill he enters the text.
i have tried LEAVE TO TRANSACTION 'SBWP'.leave program etc but nothing is working.
please guide me.
thanks
prsahuHi,
Go with Sangvir Singh suggestion.
It also looks neater from a Business Process Modeling perspective. You continue the process flow only when a change has occurred.
Kind regards, Rob Dielemans -
Can We enter Sales Invoice and Incoming Payment VIA SDK
Dear Experts
We have to develop an integration bridge with retrieve data from excel sheet and upload in SAP , i want to clear is it possible to enter sales invoices and incoming payment via SDK?. If it is possible please guide me about objects name and any reading material for SDK development.
ThanksHello,
Yes it is possible with 2 steps:
1. you post the invoice
2. you post the payment
I have already posted into the forum several examples, you may check them:
For invoice + payment
for payment only:
Regards
János -
Where Clause - Modification via SDK
Good morning,
We are currently experiencing quite a large performance impact as our record selection formulas, and parameters are not hitting our database (in where clause) and therefore a large amount of data is being pulled back and then filtered out at the report level. Was hoping someone might be able to provide some information on how we could either dynamically append to the where clause via sdk, or devise optional workaround to make sure our selected parameters are passed to the db.
Environment
Solaris, with custom User Interface that passes information to crystal reports via SDK. Crystal Reports (2008) with Universe as datasource.
Thanks,
Ian SGood morning,
We are currently experiencing quite a large performance impact as our record selection formulas, and parameters are not hitting our database (in where clause) and therefore a large amount of data is being pulled back and then filtered out at the report level. Was hoping someone might be able to provide some information on how we could either dynamically append to the where clause via sdk, or devise optional workaround to make sure our selected parameters are passed to the db.
Environment
Solaris, with custom User Interface that passes information to crystal reports via SDK. Crystal Reports (2008) with Universe as datasource.
Thanks,
Ian S -
Set PO item rejection indicator via IDoc ORDRSP?
Dear experts,
is it possible to set the rejection indicator in the purchase order item (EKPO-ABSKZ) via processing an order confirmation IDoc ORDRSP?
I found nothing but SAP note 890812 where SAP proposes a workaround with manual setting of the rejection indicator.
Our scenario is that the vendor sends an ORDRSP Idoc with action code 001 in segment E1EDP01-ACTION and a sales blocking reason in fields E1EDP01-ABGRU and E1EDP01-ABGRT. We already found a way to ignore segments containing these fields and process all other IDoc items, but it would be nice to set the rejection indicator automatically for these rejected items.
We are on ECC 6.0 SP06.
Any help is appreciated.
Kind regards,
Karstendo you really want your vendor to decide if you have a request or not?
dont you need this reopened requisition to procure that material at the vendors competitor?
by the way,
The corrosponding purchase requisition is opened again and new PO's are created by MRP.
MRP never creates POs. MRP can create requisitions. But why should MRP do this in case your PR is reopened instead of deleted?
You should rethink about this statement.
MRP will probaby recreate the requisition if you would close the requisition with the Order response from your vendor, so why not reusing this PR instead of deleting and crating a new one? -
Item level targeting via printer preferences
I am trying to do item level targeting via printer preferences. I have tried numerous ways numerous times and cannot get this to work. I currently have 120 printers I am trying to assign via terminal server client ip range, workstation IP range , for different
sites, and also group permissions to those printers.
I have one printer I have the following setting (all the other printers follow this example depending on location and user
this collection is true
the terminal session is Remote Desktop Services with Client TCP/IP address between 10.4.1.1 and 10.4.1.254
Or the IP address range is 10.4.1.1 - 10.41.254
AND the user is a member of the security group SKIN\grpMIllennium
OR the user is a member of the security group SKIN\grpPrtSDCPerReceipt
However when I test this I am connecting from a 10.2.2.203 address but yet still get this printer. How can I limit this to only those IP addresses?I am trying to do item level targeting via printer preferences. I have tried numerous ways numerous times and cannot get this to work. I currently have 120 printers I am trying to assign via terminal server client ip range, workstation IP range , for different
sites, and also group permissions to those printers.
I have one printer I have the following setting (all the other printers follow this example depending on location and user
this collection is true
the terminal session is Remote Desktop Services with Client TCP/IP address between 10.4.1.1 and 10.4.1.254
Or the IP address range is 10.4.1.1 - 10.41.254
AND the user is a member of the security group SKIN\grpMIllennium
OR the user is a member of the security group SKIN\grpPrtSDCPerReceipt
However when I test this I am connecting from a 10.2.2.203 address but yet still get this printer. How can I limit this to only those IP addresses? -
Small issue in sending mail to sap-inbox via classes
Hi All,
I am working in sending SAP mail to sap-inbox via classes..
Which i am able to work out..But got some minor struck off where when i am sending the mail from sap-report
it is sucesfully reaching the user ....
Issue is In the sap-inbox mail it is not only showing the
Created: Sender user name
it is also showing the Changed :Sender name only
How to restrict the changed should not display ...
Waiting for your response....
*Creates persistent send request
TRY.
L_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
* Creating Document
L_DOCUMENT_SAS = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
I_TYPE = 'HTM'
I_TEXT = I_CONTENT[]
I_SUBJECT = 'Automated HRIS (SAP) Report' ).
*PERFORM PREPARE_ATTACHMENT.
* Adding Attachment
CALL METHOD L_DOCUMENT_SAS->ADD_ATTACHMENT
EXPORTING
I_ATTACHMENT_TYPE = C_EXT
* I_ATTACHMENT_SIZE = L_SIZE
I_ATTACHMENT_SUBJECT = 'Hr Details r.xls'
I_ATT_CONTENT_HEX = L_XML_TABLE. "i_attach.
* I_ATT_CONTENT_TEXT = l_XML_TABLE.
Sas
Edited by: saslove sap on Oct 22, 2009 7:05 AM
Edited by: saslove sap on Oct 22, 2009 7:07 AMcontd...
* document to send request
CALL METHOD L_SEND_REQUEST->SET_DOCUMENT( L_DOCUMENT_SAS ).
DATA:LR_SENDER TYPE REF TO IF_SENDER_BCS,
LR_SEND TYPE REF TO CL_BCS.
* Preparing the sender object
* LR_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( sy-uname ).
DATA: L1_UNAME TYPE SY-UNAME.
L1_UNAME = SY-UNAME.
LR_SENDER = CL_SAPUSER_BCS=>CREATE( L1_UNAME ).
* Setting the sender
CALL METHOD L_SEND_REQUEST->SET_SENDER
EXPORTING
I_SENDER = LR_SENDER.
* E-Mail
LOOP AT P_EADDR.
TRANSLATE P_EADDR-LOW TO UPPER CASE.
L_RECIPIENT = CL_SAPUSER_BCS=>( P_EADDR-LOW ).
CALL METHOD L_SEND_REQUEST->ADD_RECIPIENT
EXPORTING
I_RECIPIENT = L_RECIPIENT
I_EXPRESS = 'X'
I_COPY = ' '
I_BLIND_COPY = ' '
I_NO_FORWARD = ' '.
IF SY-SUBRC EQ 0.
WRITE:/'** SUCCESS: Email Sent to', P_EADDR-LOW COLOR COL_NORMAL.
ELSE.
WRITE:/'** ERROR: Failed to send Email to',P_EADDR-LOW COLOR COL_NEGATIVE .
ENDIF.
ENDLOOP.
*Trigger E-Mail immediately
L_SEND_REQUEST->SET_SEND_IMMEDIATELY( ' ' ).
CALL METHOD L_SEND_REQUEST->SEND( ).
COMMIT WORK.
CATCH CX_DOCUMENT_BCS INTO L_BCS_EXCEPTION.
CATCH CX_SEND_REQ_BCS INTO L_SEND_EXCEPTION.
CATCH CX_ADDRESS_BCS INTO L_ADDR_EXCEPTION.
ENDTRY.
Edited by: saslove sap on Oct 22, 2009 9:02 AM -
How to identify parent item & child (component) item??
Hi
Plz let me know how we can identify parent item & component item in the same bom?? I am checking it in table STPO but not able to identify.
Thnx
NeelHi,
I hope there is no such indicator to differeciate parent material and child material in same BOM.
i will explain one simple way to find out.
Suppose you are having three Material Number ex P1,C1,C2 .
Suppose ur having three Material Number ex P1,C1,C2 .
1.Use table MAST and give the Material List - It will give Parent Material list only(P1)
2.Give the BOM Number to table STPO - It will give child material list of Parent Material BOM(C1,C2) with repect to BOM
3. Use report CS15 to find out that Parent Material (P1 Material from MAST) material is being used as component in Some other BOM.
regards
pradeep -
Retain item in Inbox and confirm end of processing
HI All,
I am trying to implement retaining item in inbox if user selects to cancel. I was told confirm end of processing is best otpion, when I try to change the task using pftc it still shows the confirm end of processing and background processing as greyed out.
First question will be if it is foreground processing and honest answer is I dont know, however I assume that since we open invoices and access it from inbox, it is foreground processing item.
Can you please advise ?
thanks,
RSHi Reena,
to find out if it's a foreground(Dialog) task or not, go to the task (PFTC) and see below the Method. If it says "Object method with Dialog", then its a foreground or dialog task. that means, a user intervention is required to execute this method. Another way, is go the method & BO in SWO1 and dblclick on the method. IF the Dialog check box is checked, then its a dialog task.
And, in the invoices, if you are using FIPP or BUS2081.CHANGE method, then,its a dialog task.
Hope this helps
venu -
Printer Item level targeting via printer preferences
I am trying to do item level targeting via printer preferences. I have tried numerous ways numerous times and cannot get this to work. I currently have 120 printers I am trying to assign via terminal server client ip range, workstation IP range , for different
sites, and also group permissions to those printers.
I have one printer I have the following setting (all the other printers follow this example depending on location and user
this collection is true
the terminal session is Remote Desktop Services with Client TCP/IP address between 10.4.1.1 and 10.4.1.254
Or the IP address range is 10.4.1.1 - 10.41.254
AND the user is a member of the security group SKIN\grpMIllennium
OR the user is a member of the security group SKIN\grpPrtSDCPerReceipt
However when I test this I am connecting from a 10.2.2.203 address but yet still get this printer. How can I limit this to only those IP addresses?Looking at the xml seemed to help me understand it a little better. Now I understand what you mean about the parenthesis
- collection statements. Makes a difference. I cant seem to get it all to work right though. For example, this printer I have it connecting by member of a group and terminal server client ip, member of a group client ip, or member of any of these remote groups.
I made a test user that has access to "SKIN\grpPrtSDCDavFacesheetHP4014n" but when I connect from an ip of 10.2.1.23, it still adds the printer even though its only supposed to if it sees IP address from 10.8.1.1 - 10.8.1.254
<?xml version="1.0"?>
-<SharedPrinter bypassErrors="1" userContext="1" uid="{B54F5C24-47C6-4887-B8A6-622E1A0997AA}" changed="2014-10-16 17:22:07" image="2" status="CLIFACE" name="CLIFACE" clsid="{9A5E9697-9095-436d-A0EE-4D128FDFBCE5}"><Properties
port="" deleteMaps="0" persistent="0" deleteAll="0" skipLocal="0" default="0" location="" path="\\SIILPEOSVPS02\CLIFACE" comment="" action="U"/>-<Filters>-<FilterCollection
not="0" bool="AND"><FilterUser name="SKIN\spacli02" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-7310"/><FilterUser name="SKIN\spacli01" not="0"
bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-7309"/><FilterGroup userContext="1" name="SKIN\grpPrtSDCDavFacesheetHP4014n" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-5510"
localGroup="0" primaryGroup="0"/><FilterGroup userContext="1" name="SKIN\grpPrtIDIClHP4240" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-3327" localGroup="0"
primaryGroup="0"/><FilterTerminal not="0" bool="AND" max="10.8.1.254" min="10.8.1.1" option="IP" type="TS"/></FilterCollection>-<FilterCollection not="0" bool="OR"><FilterGroup
userContext="1" name="SKIN\grpPrtIDIClHP4240" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-3327" localGroup="0" primaryGroup="0"/><FilterGroup userContext="1"
name="SKIN\grpPrtSDCDavFacesheetHP4014n" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-5510" localGroup="0" primaryGroup="0"/><FilterUser name="SKIN\spacli01" not="0"
bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-7309"/><FilterUser name="SKIN\spacli02" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-7310"/><FilterIpRange
not="0" bool="AND" max="10.8.1.254" min="10.8.1.1"/></FilterCollection>-<FilterCollection not="0" bool="OR"><FilterUser name="SKIN\dermdoc" not="0" bool="OR"
sid="S-1-5-21-1972655925-2044812881-1539857752-1831"/><FilterGroup userContext="1" name="SKIN\grpPrtSDCThea" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-6894" localGroup="0"
primaryGroup="0"/><FilterGroup userContext="1" name="SKIN\grpPrtSatelliteCoord4" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-7280" localGroup="0" primaryGroup="0"/><FilterGroup
userContext="1" name="SKIN\grpPrtSatelliteCoord3" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-5523" localGroup="0" primaryGroup="0"/><FilterGroup userContext="1"
name="SKIN\grpPrtSatelliteCoord2" not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-5520" localGroup="0" primaryGroup="0"/><FilterGroup userContext="1" name="SKIN\grpPrtSatelliteCoord"
not="0" bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-5517" localGroup="0" primaryGroup="0"/><FilterGroup userContext="1" name="SKIN\grpPrtSDCPeoMainOps" not="0"
bool="OR" sid="S-1-5-21-1972655925-2044812881-1539857752-5333" localGroup="0" primaryGroup="0"/><FilterGroup userContext="1" name="SKIN\grpPrtSDCPeoAnnexPurchasingMngr" not="0" bool="OR"
sid="S-1-5-21-1972655925-2044812881-1539857752-5326" localGroup="0" primaryGroup="0"/></FilterCollection></Filters></SharedPrinter>
Maybe you are looking for
-
Cannot send mail from my Iphone 4S ?! Please help ...
Hello, I am able to receive my mail on my Iphone 4S (hotmail account) but cannot send. I get a message : the mail server ''pop3 live.com'' is not responding. Verify that you have entered the correct account info in Mail settings. I have checked all i
-
I recently purchased a song on itunes and it wont play, when I go to my file and open up the info, i noticed that it shows Codec:AAC (protected) where my other songs are not. Or if im in itunes in my purchased song, when i open the info it shows Kind
-
Item numbers are differing when i am creating billing document.
item numbers are differing when i am creating billing document with reference to delivery. eg: item 10 Nimusulide item 20 paracetomol but in invoice it is as follows item 50 Nimusulide item 100 paracetomol plz help me
-
On occasion, airdisk speed slows going from AC to battery on MB
Just putting it out there to see if anyone else has this. I've had issues with airdisk issues in leopard where video streaming would occasionally sputter. i've noticed this recently that it occurs when I unplug and run off the battery. it continues e
-
Required Overlapping VS Continuos Flow Production
Hi SAP Experts, I have a few questions regarding the overlapping indicator in routing as below: 1. What is the difference between "Required Overlapping" & "Continous Flow Production" indicator in routing? I have tested with both indicator but still c