How to get PO item level attachment
Hi All,
We created "Z" driver program for PO print, in driver program we convert PO into PDF format and attach that PDF with email.
But we have PO ITEM LEVEL ATTACHMENT and for sending email we use standarf FM SO_DOCUMENT_SEND_API1.
Everything working fine,we got mail with both PDF's(PO item level attachment and & PO converted PDF) but when we double click to open PDF which is attached in mail we got error message .
So we decide insted of using standard function module use class to send mail, but challenge is HOW TO DOWNLOAD PO ITEM LEVEL ATTACHEMENT .
Kindly suggest the solution.
-NavinK
Hi Navin,
check this thread:
it has the exact same question + solution
[Send CV03N attachments present in Purchase order at line item level |Re: Send CV03N attachments present in Purchase order at line item level].
Best regards,
Steven
Similar Messages
-
How to get commerce item level taxAmount,shipTo details and etc?
Hi ,
How to get the commereceItem level taxAmount ,shipTo address details,price includes vat or not and discounts.
Regards,
Satya.Hi SatyaVenkat,
You can call commerceItem.getShippingGroupRelationships(). It will return a list of commerceItem shippingGroupsRelationships.
So, with it you will be able to get all commerceItem information, about shippingGroups (that contains shippingAddress), priceInfo (that contais tax and discounts) and so on.
Hope it helps -
How to get List Item attachments name without write any custom code or any database query?
Hi,
How to get List Items attachments name without write any custom code or any database query?You can get it from Rest,
There are 2 options,
1) create a 'Result Source' which has a search query for that List which has attachments
- Use rest query to get the 'Filename' , it will have the attachment file name
For example, if the result source id is : 73e6b573-abf8-4407-9e5f-8a85a4a95159 , then the query will be
http://[site URL]/_api/search/query?querytext='*'&selectproperties='Title,Path,FileExtension,SecondaryFileExtension,Filename'&sourceid='73e6b573-abf8-4407-9e5f-8a85a4a95159'&startrow=0&rowLimit=100
You can refine the query, be giving proper 'querytext'
2) Use the List rest api
For example if your list guid is :38d524a1-e95c-439f-befd-9ede6ecd242e
You can get he attachments for 1st item using this
http://[Site URL]/_api/lists(guid'38d524a1-e95c-439f-befd-9ede6ecd242e')/items(1)/AttachmentFiles
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
How to get line item net price and net value?
I have using "BAPI_SALESORDER_SIMULATE" to SIMULATE to create SO,
the return table
ORDER_ITEMS_OUT-NET_VALUE is not equals than created by VA01 .
how to get line item net price and net value?Hi,
Can u elaborate ur query ?
By this FM you cannot create a SO . Use FM --> BAPI_SALESORDER_CREATEFROMDAT2
Regards,
MAdhukar Shetty -
How to get page item list in a page?
how to get page item list in a page?
Have a look at ISpread::GetItemsOnPage().
That should get you started. -
How to get po item condition type according schema group
hi experts,
i want to get po item condition type according schema group.
for example, in xk03, if the "schema group, vendor"in purchasing data view is set to 'Z3', in the purchase order which is made for this vendor, the po item's gross price condition type is hwxx.
if the "schema group, vendor" is set to 'Z2', the po item's gross price condition type is pbxx.
my question is : how to get po item condition type according schema group?
hunger for ur advice and thanks a lot!several steps you need to go
1. you need to get the purcahsing group schema against your purchasing group from table T024E.
2. get the vendor group schema from vendor master data table LFxxxxxx
3. get the pricing schema from table TMKS via the selection criteria purchasing group schema and vendor group schema
4. go to the table T683S via inputing Usage, application and pricing determination procedure.
5. now you got it. -
How to get Po item Delivery Date ?
who can tell me how to get PO Item Delivery Date ?
Thank You!hi
good
go through these links,hope these ll help you to solve your probelm
http://web.mit.edu/sapr3/windocs/bpors03m.htm
http://www.sap.com/southafrica/services/education/pdf/BPP.pdf
thanks
mrutyun^ -
How to get work item details programatically ?
Hi All,
I have a list of work items (process instances) and I want to retrieve each item details such as: attachments, notes, id, ...
All the items are filtered and represented as Fuego.Papi.Instance:
Fuego.Papi.Instance[] inst = busProcess.getInstancesByFilter(filter : instFilter);
But the work item details are inherited from Fuego.Lib.ProcessInstance. So, how to get the item details from inst[] ?
Would appreciate any help, may be Dan will have an advise ?
Regards,
KimIf you have instances returned by your filter, you could extract variable information for each instance by doing something like this:
for each inst in getInstancesByFilter(ps, filter : instF) do
// here's how to get the value inside a primitive instance variable
orderAmtObj as Object = getVar(inst, var : "orderAmount")
// here's how to get the value of attributes inside a complex BPM Object instance variable
// - in this case this is an "order" object with two attributes (customerName and amount)
orderObj as Object = (getVar(inst, var : "order"))
xmlObject = Fuego.Xml.XMLObject(createXmlTextFor(DynamicXml, object : orderObj, topLevelTag : "xsi"))
logMessage "The value of the order object's customer name is: " +
selectString(xmlObject, xpath : "customerName")
logMessage "The value of the order object's order amount is: " +
selectNumber(xmlObject, xpath : "amount")
// here's a rather uninspired way to retrieve who the participant is that was assigned the instance
logMessage "The participant assigned to this instance is: " + inst.participantId
endInside the above "for" loop, you could retrieve these predefined variables (this example assumes you use "inst" in your "for" loop):
objRet as Any
objRet = inst.getVar(var : "PREDEFINE_ACTIVITY")
logMessage "Activity name = " + objRet using severity = DEBUGSubstitute "PREDEFINE_ACTIVITY" in the above logic to get this information:
PREDEFINE_PRIORITY (priority)
PREDEFINE_ACTIVITY_DEADLINE (activity.deadline)
PREDEFINE_CREATION_TIME (creation.time)
PREDEFINE_PROCESS_DEADLINE (deadline)
PREDEFINE_DESCRIPTION (description)
PREDEFINE_PROCESS (process)
PREDEFINE_RECEIVED_TIME (receptionTime)
PREDEFINE_PARTICIPANT (participant)
PREDEFINE_COPY (id.copy)
PREDEFINE_STATUS (status)
Similarly, you might want to try to get instance information using the Fuego.Papi.VarDefinition object a try. Never used it, but the logic might be as simple as:
logMessage "who created? = " + inst.getVar(Fuego.Papi.VarDefinition.CREATOR_ID) using severity = DEBUG
logMessage "does it have attachments? = " + inst.getVar(Fuego.Papi.VarDefinition.HAS_ATTACHMENTS) using severity = DEBUG
logMessage "does it have notes? = " + inst.getVar(Fuego.Papi.VarDefinition.hasnotes) using severity = DEBUGDan -
Work Order Smartforms.. How to get the Service level Items...
Hi Experts,
I am working on Work Order Smartform... I got everything but i am stucking at Service level Items... There is one Table called ESLL.. I am trying to fetch the data from that table but its not printing.. So, please help me regarding this issue.. any logic to implement it..
Thanks in Advance
Regards,
MurlaikrishnaHi Karthik,
For every PO we have item level data... in that we have Service level data tab. But there is no link between PO and Service level items to fetch, I have used the tables EKPO and ESLL for fetching the data from service level by usin PACKNO field.
When I am writing the select statement for ESLL, service Item level data is not printing from ME23N...
Thanks in Advance,
Regards,
Muralikrishna -
Bom explosion how to get the least level every stufe = 1
material number : 2t67363633
following is the bom of that materials
the below ouput is i got it from cs12
.1 010 6631030681
..2 010 INL025000650
..2 020 IN6631030681
.1 020 6650002622
..2 010 950002621GV
.1 030 6682500491
.1 040 712758079
but in cs13 the following output i got only the following for the same materials
.1 010 6631030681
..2 010 INL025000650 -
i got this
..2 020 IN6631030681 -
i got this
.1 020 6650002622
..2 010 950002621GV -
i got this
.1 030 6682500491 -
i got this
.1 040 712758079 -
i got this
requirement is take the least items in every level1 items
supouse if the level1 item doesnt have any subitems ,we ll take this one also
following is the detiails for the senario,using this to restrict and how to get the cs13 above output
level fld2 fld3 fld4 fld5 fld6 fld7 componentname
.1 0000001 00000097 001 00002 0001 010 6631030681 -
..2 0000001 00000093 002 00002 0001 010 inl025000650
..2 0000002 00000093 002 00004 0002 020 in6631030681-1560
.1 0000002 00000097 001 00004 0002 020 6650002622
..2 0000001 00000095 002 00002 0001 010 950002621gv
.1 0000003 00000097 001 00006 0003 030 6682500491
<b> .1 0000004 00000097 001 00008 0004 040 712758079</b>
i here attached my code for ur review
i got the output without the last leve i bold it. is there any logic to solve the problem
TABLES : MAST.
DATA: BEGIN OF ISTPO OCCURS 1000.
INCLUDE STRUCTURE STPOX.
DATA: END OF ISTPO.
DATA: W_TOPMAT LIKE CSTMAT.
SELECT-OPTIONS : P_MATNR FOR MAST-MATNR.
PARAMETERS : P_WERKS TYPE MAST-WERKS.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR LIKE MAST-MATNR,
WERKS LIKE MAST-WERKS,
END OF ITAB.
DATA: IT_STB LIKE ISTPO OCCURS 0 WITH HEADER LINE.
data : istpofinal like istpo occurs 0 with header line.
data : istpotemp like istpo occurs 0 with header line.
START-OF-SELECTION.
CLEAR ISTPO. REFRESH ISTPO.
SELECT MATNR WERKS FROM MAST INTO TABLE ITAB
WHERE MATNR IN P_MATNR AND WERKS = P_WERKS.
LOOP AT ITAB.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
MEHRS = 'X'
MMAPS = ' '
MDMPS = ' '
BREMS = 'X'
DATUV = SY-DATUM
MTNRV = ITAB-MATNR
WERKS = P_WERKS
EMENG = '1'
STKKZ = ' '
FBSTP = ' '
FTREL = ' '
IMPORTING
TOPMAT = W_TOPMAT
TABLES
STB = ISTPO
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
OTHERS = 8.
IF SY-SUBRC = 0.
WRITE:/ 'MaterialNumber' ,21 'Description'.
SKIP 1.
endif.
WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
data : ttabix like sy-tabix,
tstufe like stpox-stufe.
data : len type i.
istpotemp[] = istpo[].
describe table istpotemp lines len.
LOOP AT ISTPO .
WRITE :/ ISTPO-STPOZ,
ISTPO-STLKN,
ISTPO-POSNR,
ISTPO-IDNRK,
ISTPO-OJTXP,
ISTPO-MENGE,
ISTPO-MEINS.
if sy-tabix = len.
move-corresponding istpo to istpofinal.
append istpofinal.
exit.
endif.
ttabix = sy-tabix - 1 .
if tstufe ge istpo-stufe.
read table istpotemp index ttabix.
move-corresponding istpotemp to istpofinal.
append istpofinal.
endif.
tstufe = istpo-stufe.
ENDLOOP.
*endif.
endloop.
skip 3.
loop at istpofinal.
WRITE :/ ISTPOFINAL-STPOZ,
ISTPOFINAL-STLKN,
ISTPOFINAL-POSNR,
ISTPOFINAL-IDNRK,
ISTPOFINAL-OJTXP,
ISTPOFINAL-MENGE,
ISTPOFINAL-MEINS.
endloop.Hi Shiba,
We got the required list,
But while using select-option to view multiple values the list of datas in the ISTPOFINAL gets displayed like the given below.
example
Material1
.........Component 1
.........Component 2
Material 2
.........Component 1......... From Material 1
.........Component 2......... From Material 1
.........Component 3
.........Component 4
Material 3
.........Component 1......... From Material 1
.........Component 2......... From Material 1
.........Component 3......... From Material 2
.........Component 4......... From Material 2
.........Component 5
.........Component 6
Like this it goes on for the entire list at the tie of displaying the ISTPOFINAL.
We tried evn by deleting the adjacent duplicate values still it gets displayed.
is there any problm with the loop or is it the problm with the ending of the loop.
Pls suggest us.
LOOP AT ITAB.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
MEHRS = 'X'
MMAPS = ' '
MDMPS = ' '
BREMS = 'X'
DATUV = SY-DATUM
MTNRV = ITAB-MATNR
WERKS = P_WERKS
EMENG = '1'
STKKZ = ' '
FBSTP = ' '
FTREL = ' '
IMPORTING
TOPMAT = W_TOPMAT
TABLES
STB = ISTPO
MATCAT = MATCAT
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
OTHERS = 8.
WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
data : ttabix like sy-tabix,
tstufe like stpox-stufe.
data : len type i.
istpotemp[] = istpo[].
describe table istpotemp lines len.
loop at istpo.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
MEHRS = 'X'
MMAPS = ' '
MDMPS = ' '
BREMS = 'X'
DATUV = SY-DATUM
MTNRV = ISTPO-IDNRK
WERKS = P_WERKS
EMENG = '1'
STKKZ = ' '
FBSTP = ' '
FTREL = ' '
IMPORTING
TOPMAT = W_TOPMAT
TABLES
STB = ISTPOTEMP
MATCAT = MATCAT
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
OTHERS = 8.
if sy-subrc ne 0.
move-corresponding istpo to istpofinal.
append istpofinal.
clear: istpo, istpofinal.
else.
continue.
clear: istpo, istpofinal.
endif.
*break-point.
delete adjacent duplicates from istpofinal.
endloop.
loop at istpofinal.
WRITE :/ ISTPOFINAL-STPOZ,
ISTPOFINAL-STLKN,
ISTPOFINAL-POSNR,
ISTPOFINAL-IDNRK,
ISTPOFINAL-OJTXP,
ISTPOFINAL-MENGE,
ISTPOFINAL-MEINS.
clear: istpofinal.
endloop.
endloop. -
Dear All,
In Po how to attach the documents or files at item level.........Hi
Yes you can attch the documents to Po line item for that you need to select the PO line item and select the Icon Documents .this icon is of DMS attachment .you need to give the document type and document number that is stored in DMS folder -
How to get any items found upon the fill color?
How to know any items(like textframe, pathitems) found upon the fill color object in "illustrator cs3" file through scripting. I attached the sample cs3 file(Test.eps) for reference. Please help me.
ThanksUsing a couple of property nodes, you can get an array of references for all of the controls on a front panel. From there, just register the array.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
All Controls Mouse Down.png 8 KB -
How to get selected items from a tree in backing bean without adfbc
Hi ADF Experts,
Below is my code for af:tree. My question is how can I get selected Items from the selectionListener (without adf bc) this uses formation of tree from backing bean.
Using Jdev 11.1.1.7.0
<af:tree var="node" value="#{pageFlowScope.MerchandizeBean.model}"
binding="#{pageFlowScope.MerchandizeBean.treeModel}" id="tree" immediate="true" autoHeightRows="0"
styleClass="AFStretchWidth" rowSelection="multiple"
selectionListener="#{pageFlowScope.MerchandizeBean.treeNodeSelection}">
<f:facet name="nodeStamp">
<af:commandLink text="#{node.classDescription}"
actionListener="#{pageFlowScope.MerchandizeBean.createListManyItemForMerchandise}" id="displayTable" partialSubmit="true">
</af:commandLink>
</f:facet>
</af:tree>
public void treeNodeSelection(SelectionEvent selectionEvent) {
// Add event code here...
RichTree tree = (RichTree)selectionEvent.getSource();
TreeModel model = (TreeModel)tree.getValue();
//get selected value
Thanks
RoyHi,
in a multi select case, try
RowKeySet rks = tree.getSelectedRowKeys();
Iterator iter = rks.iterator();
while(iterator.hasNext()){
Object aKey = iterator.next();
tree. setRowKey(aKey);
Object rowData ? tree.getRowData();
.... do something with the data here ...
Frank -
How to get JSON item in web service workflow?
Im tried to get json item in workflow,But was unable to obtain "RtnCode",how to do it?
This my JSON,
"MerchantID": "1032017",
"RtnCode": "2",
"RtnMsg": "Get Succeeded",
My workflow :
Get RtnCodefrom
Variable: DealItems
Error code:
RequestorId: f85b0795-6682-fde7-0000-000000000000.
Details: An unhandled exception occurred during the execution of the workflow instance.
Exception details: System.InvalidOperationException: Looking up a value using a key is not supported on an instance of 'Microsoft.Activities.Dynamic.DynamicPrimitive'. at Microsoft.Activities.Dynamic.DynamicItem.TryGetValue(String key, DynamicItem&
value) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem obj) at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance
instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) Exception from activity
GetDynamicValueProperty<String> Start Sequence Flowchart Sequence Pay.WorkflowXaml_07f732da_c82a_4234_abd5_34c32c637413Hi Felaray,
I have a similar issue and what I tried to do is to install JSON.NET in my project and used the "Assign" activity (under "Primitives" category on the toolbox) to assign the string to an object:
Newtonsoft
.Json.JsonConvert.DeserializeObject(resultFromCustomActivity)
but unfortunately did not work. I am getting this exception:
Visual Studio 2013 Workflow: Failed to translate expression because of the following error: Translating the method or one of its overloads to an activity is not supported
If you cannot really change the source header, you might need to create a code custom activity and pass in your string and use JSON.NET, parse it and return what you want.
Another "easier" option might involve doing some nasty parsing (using the Assign Activity) by finding the index of your "RntCode:" and getting the next set of characters before the comma. Since the .NET classes to utilize are limited
it would be worth trying to use a RegEx
resultFromCustomActivity
.Substring(0,
10) -
How to get open items as on a key date
Hi experts,
I want to show a report Agewise report of offsets: 0-30, 30-60,....
Only the open items of Vendor as on a particular key date to be considered...
How to get the open items as on a particular key date ?
Regards,
Rao.Hi All,
Thanks for the reply..
==============================================================
Basically create one ckf and two rkfs for each aging bucket
ie ckf 0-30 days = rkf 0-30 days open + rkf 0-30 days subsequently cleared
Because you need to restate the AP report to a key date - some items have changed their status since that key date but were open at the key date (ie we call those subsequently cleared)
so rkf 0-30 days open is
posting date <= key date
item status = O
net due date between variable date (cmod which reads key date) offset 0 and variable date (cmod which reads key date) offset -30
rkf 0-30 days subsequently cleared is
posting date <= key date
cleared date > variable date (which reads cmod of key date)
net due date between variable date (cmod which reads key date) offset 0 and variable date (cmod which reads key date) offset -30
========================================================================
In the above two cases, while creating restricted key figures how to design this;
net due date between variable date (cmod which reads key date) offset 0 and variable date (cmod which reads key date) offset -30
And also after creation of two rkfs i created a ckf i.e ckf = rkf1+rkf2.
Now i dragged this ckf into columns and when i checked the query it is giving error that key date variable is used more than once. ( Bcz we have used key date variable both in rkf1 and rkf2 for getting posting date <= to key date )
What is the solution for this ?
Regards,
Rao.
Maybe you are looking for
-
Hi, IDOC showing an error messge when syntex check. EDI: Syntax error in IDoc (segment cannot be identified) Diagnosis: The segment E1EDP19 does not occur at the current level of the basic type ORDERS01 (extension ). This error can have several reas
-
Urlsample portlets on 902 don't work - 500 Internal Server Error
Hi, Got more problems with urlsample portlets. It's installed and I can see the demo page. But when I try to use the portlets, I get a 500 Internal Server Error. The accompanying message for google.com portlet is: oracle.portal.provider.v2.security.A
-
For ESS which one is better ? (Webdynpro for Java or Webdynpro for ABAP)
Hello , For developing Employee Self Service(ESS) which one is preffered Is webdynpro for java and webdynpro for ABAP ? Why ? What are the differences ?? Please give me clearly. Thanks Risha
-
Albums With Over 50 Tracks Split
Is it normal for albums with over 50 tracks to split up into different sections? How do I take a screenshot with Mac, so I can show you what I mean.
-
Dear experts, I've set up the XI configuration for the Elster scenario but when executing the HR - test report (RPUTX7D0) I'm getting a "HTTP client. Code 400 reason ICM_HTTP_CONNECTION_FAILED" for all 4 XI HTTP posts. All other interfaces, such as