Working with the line item table in CAF application service
Hello SDNs,
I am trying to retrive a value from the Nested list of one of my application service.
for example, suppose i have 2 operations in a application service, 1, calls the BAPI_PO_GETDETAIL1 based on the PO number given it returns the POItem, POServices tables.
2, operation accepts itemno and PO number as a input, and inside calls the 1st operation and wants deal with the POItem and POServices tables which of type standard BAPI classes nested under the main structure created in application service.
For example, i want to compare the item number given as input with the item numbers in the Item table, which is a output of 1st operation .
How to get the itemnumber from the POItem table, as this is a nested structure under POOut(defined in AS level) and how to compare this.
i have written the code as follows but it is returning the error. Can any look into this and suggest me.
public com.xxx.demo.goodsnserviceack.types.POProcessOut getPOServices(@javax.jws.WebParam(name="PONumber")
* java.lang.String PONumber, @javax.jws.WebParam(name="POItem")*
* java.lang.String POItem) {*
// POProcessOut is a output node of current operation
* POProcessOut PPO= new POProcessOut();*
//POHeader details is the nested structure under POProcessOut
* POHeaderdetails header=new POHeaderdetails();*
//POOutDetails is the output structure of 1st operation
* POOutDetails pt=new POOutDetails();*
* try{
//calling the first operation *
* pt= executeBAPIPOGetDetail(PONumber,"X","X");*
* //setting header details*
* header.setPO_NUMBER(pt.getPOHeader().getPO_NUMBER());*
* header.setVendor(pt.getPOHeader().getVENDOR());*
* header.setCOMP_CODE(pt.getPOHeader().getCOMP_CODE());*
* header.setSTATUS(pt.getPOHeader().getSTATUS());*
* PPO.setPOHeaderdetails(header);*
* //comparing the POItem number from POItem table and input of current operation
List<BAPIMEPOITEM> itemlist= pt.getPOItem();*
* while(itemlist.isEmpty()==false){*
* String itemnum= itemlist.get(0).getPO_ITEM();*
* if(itemnum.equals(POItem))*
* PPO.setItemno(itemnum);*
* catch(CAFServiceException e){*
* e.printStackTrace();*
* return PPO;*
Your inputs will be appreciated.
Thanks,
Sireesha.
Have you accessed the external webservice in this way:
EJBLocalHome localHome = HomeFactory.getInstance().getLocalHome("localejbs/sap.com/comptest/ACCRJAVAWSVI__DOCUMENT");
Method m = localHome.getClass().getMethod("create", new Class[]{});
ACCRJAVAWSVI__DOCUMENTLocal srv = (ACCRJAVAWSVI__DOCUMENTLocal)m.invoke(localHome, new Object[] {});
srv.validateLogin(input) ;
Aliaksei
Similar Messages
-
How to get Header data into multiple times along with the Line Items
Dear All,
I have problem while mapping the Header data and line item data to the flat file structure, Header data have to repeat along with the Line item data in the flatfile.
Details is below.
Example
Header record is one
E1EDK01
E1EDKA1
Line items are two
E1EDP01
E1EDP01
I want in the flat file two records having duplicate data in the fields which is belongs to header data
Like :
Record # partner data Line item data
Record 1 : WE name1 city 00010 materialname1 156
Record 2 : WE name1 city 00020 materialname2 198
( WE name1 city - data is same in the record 1)
For this what I did is I mapped the node E1EDP01 to the flat file message type node then I got all the line item data and first record is with header data but not in the second record.
I tried all node functions but no result because Idoc itself header data exists one record, I am not able to copy.
If any one knows , please give solution.
It is great help to me.
Thanks in Advance.
RamaraoDear Ramarao,
This will help you,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
No Documentation for Mapping Function useOneAsMany (Mapping Problem)
/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
Thanks & Regards
Agasthuri Doss -
Anyone worked with the LIN interface/protocol?
This is my first post in the forums. I've been avidly reading the
posts here for a few months now and look forward to the day I can
contribute. Meanwhile, I'm seeking some additional knowledge from
all you experts out there.
I've completed the design concept for a series of test systems that
includes a LIN interface. Currently, I've selected a PXI board
from Goepel. You'll find Goepel's 3072 listed here on NI's
website. I am looking at the 3080 which is a combo CAN/LIN
interface. It comes with LabView support. I've also found a
LIN interface from Pickering. I've also found circuitry to bridge
RS232 to LIN, but this is only a physical layer conversion. I'd
end up developing the whole protocol if I went that route.
My question is this. Are there alternatives that anyone is aware
of? It seems such overkill to drop a $2500 board in the system
just for a simple protocol conversion. Seems like someone out
there would have dealt with this...
Thanks in advance,
Steve Bishop
Project Group Lead/Sr. Test
Engineer
Kimball Electronics Group
Jasper, IN 47549
[email protected]Hi techie's,
I have some doubt's on LIN.
1. Master Node has sent a header for which two nodes have responded simultaneously. So there is a collision. Now master resolves this by giving priority to one of the nodes by sending unconditional frames individually to the nodes.
Doubt is when there a collision how slaves stop behave? As per slave state machine there is a read back and so one of the node should pull back the transmission. Then what about the other node which has succeeded in transmission?
If error is handled in a master how this works… how above error is handled?
How synchronization works?
How slave decides the identifier after getting synchronized with master? Mainly how without a clock only with Tbit period that it has got from sync? -
PO: Combining repeating line item info with individual line item detail.
I want to simplify the display PO t-code ME23N (and ultimately create and change) and I want to have a scrollable table with the line item info but I want to include in that scrollable table details that are only available on the item detail sub-area, e.g. account assignment info.
Is this possible?
Regards.
Patrick.I assume this is a Personas question?
That's not possible with Personas. You can't add extra columns to standard tables, nor create custom tables. You'd need to modify the underlying SAPgui transaction in the usual way and then simplfy that. How easy it will be to modify ME23N I have no idea - you'll have to ask over in the ABAP Switching, Enhancing, and Adapting Standard Programs space. I will say that some of the line item details are hard to include in the line item table, and account assignment is one of them - how to you represent split account assignment, for example?
Steve. -
CO-PA extractor not showing certain characteristics from line item table
When I create a Cost Based CO-PA extractor in KEB0, I do not see all the characteristics from the line item table CE1XXXX for selection. For eg.COPA_BWZPT.As far as I am aware of, there are no settings to make characteristics show up in the extractor. What determines whether a characteristic from CE1XXXX shows up in the extractor or not? Any inputs would be appreciated
did you check other copa tables?
-
Tax and amount total should show in the line item of confirmation screen
Hi All,
I need to add the Tax and amount total fields in the line item of confirmation screen for service cart.
Could someone please tell me how and where should I add and write the neccessary logic for that.
We are on version SRM 3.0.
Thanks,
KumarHi,
Please check the foll note for addition of custom fields:
458591 - User-defined fields: Preparation and use
672960 - User-defined fields 2
To change the field content you need to implement the badi BBP_DOC_CHANGE_BADI .
Here is the sample code for BBP_DOC_CHANGE_BADI Implementation
loop at et_item into ls_item.
move ls_item-mfrpn to ls_item-zz_your_new_field.
modify et_item from ls_item transporting zz_your_new_field.
endloop.
BR,
Disha.
Pls reward points for useful answers. -
Exception in CAF application service
Hi All
I am trying to access the BAPI bapi__mddataset__get__axis__info
from a CAF application service. But receive following exception. Any clue how to solve it.
at com.sap.caf.rt.bol.da.remote.MessageEntityConverter.createNewInstance(MessageEntityConverter.java:788)
at com.sap.caf.rt.bol.da.remote.MessageEntityConverter.retrieveElementValue(MessageEntityConverter.java:494)
at com.sap.caf.rt.bol.da.remote.MessageEntityConverter.retrieveMessageValue(MessageEntityConverter.java:447)
at com.ibm.cer_test.extsrv.MPConnector.process(MPConnector.java:65)
at com.ibm.cer_test.extsrv.bapi__mddataset__get__axis__info.BAPI__MDDATASET__GET__AXIS__INFOBean.BAPI__MDDATASET__GET__AXIS__INFO(BAPI__MDDATASET__GET__AXIS__INFOBean.java:40)
at com.ibm.cer_test.extsrv.bapi__mddataset__get__axis__info.BAPI__MDDATASET__GET__AXIS__INFOLocalLocalObjectImpl0.BAPI__MDDATASET__GET__AXIS__INFO(BAPI__MDDATASET__GET__AXIS__INFOLocalLocalObjectImpl0.java:115)
at com.ibm.cer_test.appsrv.mdapp.MdAppBean.getMdDataSet(MdAppBean.java:295)
at com.ibm.cer_test.appsrv.mdapp.MdAppLocalLocalObjectImpl0.getMdDataSet(MdAppLocalLocalObjectImpl0.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.findByDataObject(ServiceWrapper.java:269)
at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.findByDataObject(CAFServiceAccessBeanImpl.java:223)
at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl20.findByDataObject(CAFServiceAccessLocalLocalObjectImpl20.java:875)
at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.findBy(AspectServiceAccess.java:275)
at com.sap.caf.rt.ui.cool.generic.Query.execute(Query.java:218)
at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.execute(TableViewCC.java:323)
at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.setup(TableViewCC.java:276)
at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.wdp.InternalTableViewCC.setup(InternalTableViewCC.java:192)
at com.sap.caf.ui.servicebrowser.components.visualizer.views.ServiceBrowserCV.onActionExecuteQuery(ServiceBrowserCV.java:180)
at com.sap.caf.ui.servicebrowser.components.visualizer.views.wdp.InternalServiceBrowserCV.wdInvokeEventHandler(InternalServiceBrowserCV.java:215)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:707)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:661)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:229)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.ClassNotFoundException: com.ibm.cer_test.extsrv.bapi__mddataset__get__axis__info.output.AXIS__INFO
Loader Info -
ClassLoader name: [ibm.com/cer_test]
Parent loader name: [Frame ClassLoader]
References:
common:service:http;service:servlet_jsp
service:ejb
common:service:iiop;service:naming;service:p4;service:ts
service:jmsconnector
library:jsse
library:servlet
common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
library:ejb20
library:j2eeca
library:jms
library:opensql
common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore
interface:resourcecontext_api
interface:webservices
interface:cross
interface:ejbserialization
sap.com/cafruntimeear
library:com.sap.guid
library:com.sap.util.monitor.jarm
sap.com/com.sap.jdo
library:cafmetamodellib
sap.com/caf~core
library:cafruntimeconnectivity
library:cafruntimeconnectivity~base
service:applocking
interface:security
library:cafruntimeapi~lib
service:tcsecdestinations~service
interface:tcsecdestinations~interface
Resources:
C:
usr
sap
J17
JC01
j2ee
cluster
server0
apps
ibm.com
cer_test
src.zip
C:
usr
sap
J17
JC01
j2ee
cluster
server0
apps
ibm.com
cer_test
EJBContainer
applicationjars
ibm.comcer_testejbmodule.jar
C:
usr
sap
J17
JC01
j2ee
cluster
server0
apps
ibm.com
cer_test
EJBContainer
clientjars
clientibm.comcer_testejbmodule.jar
Loading model: {parent,references,local}
at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:382)
at com.sap.caf.rt.bol.da.remote.MessageEntityConverter.createNewInstance(MessageEntityConverter.java:781)
... 50 more
Thanks in advance
SudipHi,
I too got an exception like that.
1. Instead of code
patentServiceLocal local = this.getpatentService();
local.update(OBJECT);
use the following
this.getpatentService().update(OBJECT);
I got by problem solved this way.
Regards,
Srinivasan Subbiah -
Table to see the line items for cost center-ECC 6.0
Hi,
Which is the table to get the line items in controlling with cost center & WBS information.
Regards,
VipinCheck with below tables :
COSS, COSPP, COSSP, COSL, COSR ,COSP.
Check with below link
http://www.sap-img.com/financial/important-tables-in-sap-co.htm
Thanks
Seshu -
LSMW program to upload the sales order with multiple line items.
Dear SD and PP Gurus,
I am new to creating LSMW Program.
I want to create a LSMW program to upload the sales order with multiple line items. I have read on SDN that it can be done on two phases. First Create Header Data than line items. IS IT TRUE??, Or
Is there any procedure by which we can load the sales orders with multiple line items in a single run (part).
I want to use Batch process, not a BAPI or IDOC procedure.
I have created a program with
object 0090
Method 0000
Program Name RVINVB10
Program Type D
Source Structure 1 - For Header and Source Structure 2 for Line Items.
Mapped Field INDET (With Fix Value 1), ORDERTYPE, SALESORG, DISTCHANNEL, DIVISION, CUSTOMER, PONUMBER , DELVDATE, PRCGDATE, PMTTERM
INCOT1 INCOT2 with Source Structure - 1 and
Field INDENT (With Fix Value 2), ITEMNO, MATCODE, MATQTY, SUOM, PLANT, BATCH, AMOUNT with Structure-2
than maintained Structure relation ship, field Mapping, Specified Files, Assigned files, Read Data and other process,
At final stage (Start Direct Input program RVINVB10) it is giving a message - Table name not allowed.
Please tell me where I am wrong.
Thanks in advance.
DSCDear SD Gurus n Experts,
I have solved the above problem. But there is another problem appearing regarding the date format. Now system generating a message: Date . . is not valid.
While I am using Date: YYYYMMDD format in flat file, which is SAP's Standard Format.
In SDN Link: LSMW upload Sales Order using VA01/VA02 I have found that there are some date fields which are mandatory to filled. Here I have mapped
VDATU - Requested delivery date, BSTDK - Customer purchase order date, PRSDT - Date for pricing and exchange rate, BSTDK_E - Ship-to party's PO date, FKDAT - Billing Date, KORDT - Delivery Date,
and PRGRS - Date type is Constant = D
Can any one tell me, where is the priblem.
With thanks,
DSC -
The apple store is so unhelpful. I have an iMac computer operating on Mac OSX 10.5.8. I want to upgrade to the latest Mountain Lion operating system so I can work with the iCloud on my computer and download my emails. I can't seem to purchase this on-line as it keeps telling me to go to the app store. I haven't got the app store on my computer as I am told I need iCloud for which I need the new operating system, which I can't download or purchase as I am sent back to an instruction telling mee to go to the app store icon.
How difficult can it be to simply purchase the software on-line have it shipped to you so you can install it, in the event it cannot be downloaded as it appears it can't be based on my curent operating systems being Mac OSX 10.5.8.Requirements for OS X 10.6 'Snow Leopard'
http://support.apple.com/kb/SP575
Whilst Apple have withdrawn Snow Leopard from download, you can still get it from Apple by calling 1-800-MY-APPLE (if you are in the USA) and they will supply the SL DVD for $30. You can also purchase the code to use to download Lion from the same number.
Requirements for Mountain Lion:
http://www.apple.com/osx/specs/ -
The report in FI which contains Quantity field with every line item
Hi Gurus,
What are the reports in Finance which contains Qty field with every Line Item reports & reports that contains user name & System Id in it along with other informations e.g. G/L, Ar, AP
Thanks & Regds,
Santosh RotheHi
Using the line item display report you can get the required details by changing layout in the output:
FBL1N: Vendor line item
FBL3N: G/L line item
FBL5N: Customer line item
VVR -
How to make plant default on the line item along with the item category
Hi All,
I want to default Plant on the line item along with the item category.In order to meet the following scnario.
1. I have two plants,first plant is maintained for the valuated item and the second plant is maintained for the non valuated item (Free Goods).
Whenever user is entering an item in the sales order for which corresponding free goods item is maintained in the master record.System is proposing two lines items in the sales order.
First line item is the main item which appears along with the Plant 1 which contains valuated items
Second line item is for the Free of charge item which is being proposed from Plant 2, which contains the non valuated items.
I want that the system should always propose Plant 1 with main item and Plant 2 with the Free of Charge item by default. (Along with the item category TAN and TANN)
RahulDelivering Plant is determined in the following order
1. Customer material info record.
2. Customer master
3. Material master.
Use one of them an default your plant.
I think in your case you can use the materila master which will give an item level plant different. The other two will default the plant at the header level.
regards
jude -
What power line adapters work with the Simpler Net...
I currently use the provided Simpler Networks power line adapters, one plugged into my HH3 and the other for my BT Vision box. I want to also connect my desktop PC to the HH suing a power line adapter. Which ones will work with the ones I already have?
As a side note, do I need to buy another pair, or will all three talk to each other, and know to use the one connected to the HH as the way to the internet?
Thanks in advanceIf a powerline adapter is plugged into HH ports 1,2,3 you can get no more than 100 Mbps they are only Fast Ethernet ports and cannot go any faster.
You would be better with Gigabit switches, Cat5e ethernet cables and a theoretical maximum of 1000 Mbps which you only DONT get when there is an ethernet packet collision, and only connecting via HH3 or HH4 port 4 the GigE port
If you put a fast ethernet switch in the wrong place you will only get 100 Mbps across it. -
On a Mac v10.6.6 Firefox v3.6.13 Right click on Google Map does not bring up the drop down box, with the first item being "directions from here", the right click does work on Google map when using Safari
Your above posted system details show outdated plugin(s) with known security and stability risks.
*Shockwave Flash 9.0 r999
Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
*http://www.adobe.com/software/flash/about/
In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
http://java.com/en/download/faq/firefox_newplugin.xml
See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html -
DB Adaptor import table option does not work with the AS400 DB
1. The DB Adaptor import table option does not work with the IBM i-series(AS/400) tables(Both in ESB and BPEL).
2. Also I was not able to import tables from multiple databases into
the same BPEL project.Both of these issues work in preview version. My earlier posting was based on beta version testing.
Maybe you are looking for
-
I am trying to us a form on a site that requires authentication and it won't work with Muse
I called the provider and they sent me a bunch of code to insert in order to make the form work but is there anyway I can make it work from within Muse? https://solutions.hostmysite.com/index.php?/Knowledgebase/Article/View/8460/0/using-pear-m ail-to
-
Hi, I am trying to create a Report in SQVI for list of customers, but can anybody guide me the steps, if I am trying to join tables : KNA1, KNB1 & KNVV. System is allowing me to join but no data is populated at the time of execution. Rgds, Indrajit
-
Right clicking PDF files and printing those with Acrobat Reader X
We have a Windows XP computer with Adobe Acrobat 7 Professional and Acorbat Reader X. Now when we open PDF files they open with Acrobat Reader X wich is fine. But when we try selecting PDF files and right click Print them they print with Acrobat 7 Pr
-
I do not have priviledge to kill the session, and i have checked the forums to create a procedure to kill the session, so how can i use that procedure to kill the session. Thanks
-
Reception - SIM Card Connection
I have been following the banter for a few days and looking for a reason why my reception isn't as good as I expected it to be. While I am not an engineer or electronics expert, I did conclude that the only part of the iPhone 4 that wasn't completely