Index in LOOP and BRANCH in Business Connector

Hello,
i use the SAP Business Conector 4.7 and want to map a structure from incoming XML-File to BAPI_PO_CREATE1. I loop over /ORDER[0]/ORDER/ORDER_ITEM_LIST/ORDER_ITEM/ACCOUNTING_INFO/COST_CATEGORY_ID
and  BRANCH over
/ORDER[0]/ORDER/ORDER_ITEM_LIST/ORDER_ITEM/ACCOUNTING_INFO/COST_CATEGORY_ID/*body
But ORDER_ITEM has an index 0,1,2,3 on so on. So it works only, if i BRANCH over
/ORDER[0]/ORDER/ORDER_ITEM_LIST/ORDER_ITEM[0]/ACCOUNTING_INFO/COST_CATEGORY_ID/*body
for every index. But the index could change with every file.
How can i BRANCH over an index?
Thanks,
Daniel

LOOP AT itab.
AT NEW stud.
  perform xxxx.
ENDAT.
ENDLOOP.
Refer SF
Refer this link for Smartforms
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b590fd97-0301-0010-db90-d09ff93cee5a
Subroutine in smartform
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
Style and mailing the Smartform output
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
Table,Template,Loop and Command in Smartform
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985

Similar Messages

  • Why cant we use sy-index in loop and endloop?where exactly we used sy-index

    hi
    can u help me for this

    Hi...
    Genereally Sy-index is used in iterative cases like
    while....endwhile
    and
    Do.... Enddo
    In LOOP ..... Endloop.... We should use SY-TABIX....
    It would be more consistent we use sy-tabix as we loop at internal table so this SY-TABIX points to the current record its reading...
    we can use sy-index but rarely depends on condition.....
    SY-INDEX and SY-TABIX will not be same always in LOOP and ENDLOOP
    Rewards points if satisfied..
    Regards
    Narin Nandivada

  • Error message when calling a Business Connector RFC destination from SRM

    Hello all,
    We are facing one problem with data Purchase Order transmission between SRM 5.0 (SRM_SERVER 5.5, extended classic scenario) and Business Connector 4.7.
    We made needed customizing in order to have "XML / XI" output medium available in tab 'Company Data' in "Manage Business Partners" web transaction (by updating BBP_USE_AI table in SM30 transaction).
    Then, we implemented BAdI definition BBP_EBPXML_OUT_BADI with method PURCHASEORDER in order to change XI system type to Business Connector.
    In this way, PO transfer data between SRM and BC is done using BC Module Function BAPI_POEC_XML_SEND (TCP/IP RFC connection was defined for Purchase Order in BBPC_RFCDEST table).
    Nevertheless, even if method BBP_PO_SEND_XML is correctly triggered when PO is created with a vendor with XML output medium, we have in the document output log ("Process Purchase Order" web transaction) an error message:
    ' Error (Unknown Partner and Message Type. Routing Rule created. Sender: SMR Receiver:) when calling RFC destination BC '
    where SRM is the SRM log. sys. and BC the Business Connector log. sys.
    Our EAI team is working on it, but if you have any idea, your are welcome !
    Thank you in advance.
    Regards.
    Laurent

    Hello Christian,
    Thank you for your help. However, we abandoned this solution between SRM and Business Connector.
    So, we followed instructions indicated in OSS note 883693 - "ECS: PO output determination in R/3".
    Nevertheless, in order to restrict this behaviour for specific vendors and purchasing organizations, we added some filters.
    It is working fine.
    However, when the PO is modified in SRM, then order again, PO is modified in R/3 (by the RFC user from SRM) more than once.
    As a consequence, we have as much messages as modifications of the order in R/3 (due to multiple RFC access with the SRM RFC user).
    Does anybody have an idea to have only one R/3 output message when the PO is modified in SRM ?
    One solution could be to check in the NAST table if the time creation of the last output message is lower than, for example, one minute.
    If it is the case, we do not allow R/3 ouput message.
    Any suggestions is welcome.
    Regards.
    Laurent.

  • Business Connector Functions

    Hello Gurus,
    I am normaly working with XI and not the business connector. But now I need to find some public functions which are declared in the Business Connector as transformers, but I do not know how. I just want to test the functions to see what happenes.  To give you an example I want to test a public function pub.string:PadRight. Hope someone can help me out.

    Found it out myself

  • Business Connector Combine MATMAS & CLFMAS

    Hello.
    I'm wondering what's the best way to combine a matmas and clfmas in business connector 4.7?
    Is there a way only sending 1 idoc from sap with the matmas+clfmas content? This would eliminate my combination problem in business connector.
    sorry for posting this in th xi forum but i don't see where to put my question else.
    rgds,
    jeroen

    Jeroen,
    In SAP you can send out both MATMAS and CLFMAS.  You have to set the "Send material in full" check box.  You will need to have both MATMAS, CLFMAS and DOLMAS in your partner profile.
    You can ignore the DOLMAS.
    You then should have both IDocs in SAP BC (you may need to set the packet size to get them together).
    If not build your self a simple queue by using the repository store and storing the first IDoc using the link (MATNR) as the key.
    Regards,
    Simon

  • GB e-filing  - Business Connector Error

    Hi,
    SAP version: ECC5
    Business Connector version: 4.7 SSL (along with Hotfix 5)
    Our HR functional consultant is trying to execute the program RPCEOYG0 to generate XML data with Zip option to send forms to Inland Revenue. As long as the zip option is not chosen, the program works fine, respective forms are generated in XML and sent to Business Connector. When zip option is chosen, the program gives an error:
    <b>
    [B2BSERV.0026.9201] Unknown service: GBOUTGOING:HR
    Message no. 3G001
    </b>
    According to the configuration guide, there is a service called HR_GB_EF_GZIP in the e-filing package that needs to be set up, in addition to the 6 other services. Thats all done and dusted. But it seems there is something wrong with the service itself thats causing the problem.
    Has anyone faced this issue before?
    Thanks and regards,
    Shehryar

    Hi Shehryar,
    We are also facing the same error and issue.Can you please let us know where the problem lies.
    When we give zip or unzip in both the cases we are getting the below error.
    <b>RFC Error:[B2BSERV:0026.9201 UNKNOWN SERVICE GBOUTGOING HR</b>
    SAP VERSION : 4.7
    BC Version: 4.6
    Waiting for your inputs .
    Regards
    Rani A
    Message was edited by:
            Rani A

  • Problem establishing Business Connector 4.8 and R/3 connection

    Hello,
    I'm currently running a few SAP Business Connectors 4.7 servers for my company, all connected to SAP R/3 4.7 backend, and everything works fine.
    I tried to setup the new BC 4.8, on a fresh Windows 2003 server, the install went fine, but when I try to make a new R/3 connection, with a working and existing RFC user (previously used by the former BC 4.7), I have the following error message :
    Error : class com.sap.conn.jco.JCoRuntimeException
    Message : Name or password is incorrect. Please re-enter on 192.168.0.4 sysnr 00
    Service : sap.admin.server:getInfo
    I don't understand because if I unplug the 4.8 server and plug back the 4.7 one with exactly SAME user/password and same R/3 connection properties, it works fine...
    I precise I re-typed manually the login/passwords in both BCs to ensure it's not due to a typo error.
    I have read that JCO has changed between 4.7 and 4.8 releases. Could it have an impact ? Also do I still need to install a librfc32.dll in my windows/system32 directory ?
    Any clues ?
    Thanks in advance for your help
    P.
    Edited by: Patrick TOURNEUR on Jul 21, 2008 6:40 PM

    Hello,
    just for your info, the JCo implementation has changed about this login function. BC 4.8 is using JCo 3, 4.7 used JCo 2.
    I never understood the whole problem completely, but as you found out by yourself, you are safe if you enter the user/pwd in SAP only uppercase, and also in BC
    SAP changed this user/login up/lowcase stuff at some time, which has caused many trouble in projects.
    CSY

  • Delta between Business Connector 4.8 and 4.7

    This seemed like the most logical place to put my post so here it goes..
    We are assessing our options for replacing/upgrading existing Business Connector installations that will shortly be out of support (OSS Note 571530).Whilst researching our options I have come across OSS Note 1094412 which describes a new version of 4.8 becoming available in July 2008.
    Information on BC4.8 is virtually non-existent on the web - can anyone provide me with details of the delta between 4.7 and 4.8, licensing structure, hardware requirements, support/maintenance strategy and ease of migration from 4.6/4.7 to 4.8?
    As an aside it is very interesting that SAP has chosen to provide BC 4.8, presumably to ensure BC can continue to runs on supported O/S' and Java environments, when SAP XI/PI is being touted as the de facto integrator for companies with a significant SAP presence. Maybe customers are not quite as keen to move on/remove their BC instances as SAP would hope...

    Hi Daniel,
    We have been on this topic for years (some vested interest through product development).
    What seems to have happened, from what we can gather, is that Netweaver XI/PI uptake hasn't happened as fast as initially hoped (SAP was looking at an intial end of life of Dec 2004 for BC).
    The case is quite simple. BC is free, easy to install and maintain. XI/PI, new product, takes a while to stabilize, much more feature rich, but at the same time more complex and less performing (and did I mention the license cost?).
    What we know about BC 4.8 and this is purely based on talking to people and reading about it, we have not seen / tested BC 4.8 ourselves - Mainly a platform upgrade, no significant changes. Most likely free as well (the original contract states that if SAP charges money for BC they have to pay extra to Webmethods / Software AG) accordingly. I would expect to see a few new built-in function and hopefully some hooks into standard SAP monitoring tools.
    I think you hit the nail on the head. We have seen customers panic and move to non-Netweaver platforms from BC to be on a supported solution (back when EOL was imminent before 4.8 was released). Why non-Netweaver? Because many customers use non-SAP Integration Products as well and they tend to drift to known solutions instead of trying to manage the risk of migrating to a unfamiliar product.
    I would not expect any major changes that would make migration to 4.8 hard. If there would be some major issues then that would signal some significant developments from SAP and that would be a strange thing at this point of the product lifecycle.
    End of life for BC 4.8 is in 2012 or thereabouts if I remember correctly, this was part of some note which was released/updated towards the end of last year.
    You might want to make some design calls if you continue developing your integration scenarios on BC. The best format to allow for an easy / relatively painfree migration to PI one day is by using BC graphical MAPS where possible, NOT XSL maps as wrongfully indicated in so many previous posts and articles. XSL is the hardest format to migrate to PI even though it might look superficially as a compatible format...
    Cheers
    Kalle

  • How to encode XML to Idoc and decode Idoc to XML in business connector?

    Hi all,
    first of all: thanks for all, who are reading and perhaps responding this question!
    Here some facts and my question(s):
    The facts:
    - I have the business connector version 4.6!
    - I'm not working with any SAP Netviewer!
    - I have XML files on an FTP-server and Idoc-files on an FTP-server --> so no connection between SAP and business connector, meaning: the files are just on the ftp-server!
    What am i doing and what is working properly:
    - Business connector logs in into the FTP-server (with FTP-service: pub.client.ftp:login)
    - gets the file (with FTP-service: pub.client.ftp:get) (the idoc-file, when i want to convert it into XML or the XML-file, when i want to convert it into idoc-format)
    - puts the file into another place in the server (with service wm.PartnerMgr.gateway.transport.FTPTransport:OutboundProcess)
    !!!So far only getting and putting of the file works!!!
    What is missing between getting the file in one format - for example idoc-format - and putting the file into the server in the other format - for example XML-format is:
    CONVERSION FROM XML INTO IDOC AND VICE VERSA
    My question:
    - which services i have to use between getting and putting the files?
    Thanks to all,
    Tamer

    Hi,
    I have the same problem. I do fix it?
    Thanks
    Wilson Xavier
    Brazil

  • Business Connector 4.7 and EDI Module

    Hi all,
    I want to use the EDI Module offered by SAP for the Business Connector. Unfortunately the SAP offered the zip file only for release 4.6 of Business Connector.
    Does anyone know if it's even so possible to import the EDI module in Business Connector 4.7?
    Furthermore I need a schema for EANCOM 2002 D.01B which is not included in the available download packages. Can I use standard schema files and import them in the Business Connector?
    Thanks,
    Christina

    Hi Jiri!
    We are using the EDI-Module together with SAP BC 4.7 without any problems in various productive customer projects. Installation of the package does not cause any problems - functionality is the same.
    By the way - as far as I know there is NO official "end-of-life" for the BC stated so far. In many cases a "migration" to XI is currently NOT necessary / wanted by our customers.
    Regards, Andy

  • Business connector scheduler gets hanged and Next run value is large number

    Hi All,
    I see the scheduler in business connector gets hanged and the Next run value shows huge/large number like 9223370831700598.0 sec. Please can anyone suggest what can be done.
    Currently BC ver is 4.7. The problem gets resolved every time when i restart the server.

    Hi,
    Not aware of the reason though, I guess you must be using the simple scheduled tasks.
    Try using complex reapting tasks where you specify days , minutes etc.
    It should work fine.
    Hope it helps. Reward if useful.
    Regards,
    Siddhesh S.Tawate

  • Business  Connector and XI

    Dear Sir,
    Are there any preson change from Business Connector to use XI instead ?? Please kindly advise . how did you convert from BC  to XI
    Thank you and best regards,
    Vimol

    Hi Vimol,
    Check this "How to" guide, for the required information
    https://websmp205.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202&_OBJECT=011000358700005272252005E
    other How to guides,
    https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202
    have a look at this also...
    Re: Connectors and Xi...
    also,
    XI FAQ’/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    I hope this will help you.
    Regards,
    Saurabh...
    Reward with points if found helpful.

  • Business connector  and BAPI ,java code

    Guy's
    we are having development project based on <b>Business
    connector and bapi</b> for sales order creation,we are
    going for function module /TECCOM/SALESORDER_SIMULATE
    for Availability request ,i am not aware of using business
    connector and bapi before,they are going for some java code,now i have to create java code and use this particualr BAPI,pls if somebody already worked on such issue,then help me with some material which will guide
    me and help me in finishing this task easily,
    <b>mail me at [email protected]</b>

    This is a very usefull link:
    http://www.henrikfrank.dk/abapexamples/Java/

  • Business Connector and sap router on same server?

    Hello,
    We are investigating currently in order to install "Business Connector" and "Sap router" on a same dedicated server.
    I would like to know if it is possible or not recommended, etc... if there are some guidelines.
    If someone has experience in this solution.
    Many thanks for your help

    I can't see a reason why not... any particular concerns?
    Regards
    Juan

  • Problem with ELSTER and Business Connector

    Hi all,
    it's not really a XI Problem but I have no idea, where I could post it anyway.
    For LSTA/LSTB with Elster we installed the Business Connector.
    To check the settings we execute the report RPUTX7D0.
    The following error message appears:
    Testreport zum Überprüfen der RFC-Verbindungen zum Business Connector
    Lohnsteueranmeldung                                                 
    Kommunikation - Business Connector                                                                               
    Test HR_DE_B2A_ELSTER_GZIP   => /ELSTER/LSTB/GZIP                   
    Test HR_DE_B2A_ELSTER_UNGZIP => /ELSTER/LSTB/UNGZIP                                                                               
    Teststring für GZIP und UNGZIP: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    Message: java.lang.StackOverflowError                               
    SY-SUBRC: 1                                                         
    Kommunikationsfehler beim Aufruf des                                
    Funktionsbausteins HR_DE_B2A_ELSTER_GZIP.                           
    Ueberprüfen Sie die RFC-Verbindung HR_DE_ELSTER                     
    und/oder die Funktion des Business Connectors.                      
    Message: java.lang.StackOverflowError                               
    SY-SUBRC: 1                                                         
    Kommunikationsfehler beim Aufruf des                                
    Funktionsbausteins HR_DE_B2A_ELSTER_UNGZIP.                         
    Ueberprüfen Sie die RFC-Verbindung HR_DE_ELSTER                     
    und/oder die Funktion des Business Connectors.                      
    Does anybody knows why the java.lang.StackOverflowError appears?
    Any ideas what I could do to solve the problem?
    Many Thanks,
    Mathias

    Here is the right error message. Seems as if it loops..... But the question is why.
    2007-07-13 13:32:03 CEST java.lang.StackOverflowError
         at java.lang.reflect.Method.invoke(Native Method)
         at com.wm.data.IDataUtil.clone(IDataUtil.java:405)
         at com.wm.lang.flow.FlowSequence.invoke(FlowSequence.java:197)
         at com.wm.lang.flow.FlowRoot.invoke(FlowRoot.java:199)
         at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
         at com.wm.lang.flow.FlowState.step(FlowState.java:430)
         at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
         at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
         at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
         at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
         at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
         at com.wm.lang.flow.FlowState.step(FlowState.java:430)
         at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
         at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
         at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
         at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
         at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
         at com.wm.lang.flow.FlowState.step(FlowState.java:430)
         at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
         at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
         at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
         at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
         at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
         at com.wm.lang.flow.FlowState.step(FlowState.java:430)
         at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
         at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
         at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
         at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
         at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
         at com.wm.lang.flow.FlowState.step(FlowState.java:430)
         at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
         at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
         at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
         at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
         at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
         at com.wm.lang.flow.FlowState.step(FlowState.java:430)
         at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)

Maybe you are looking for

  • "Bad" markup for non-English language in JSF

    Hi, the question emerged in "Problem ADF af:document i18n" thread, but, as I saw, it is more common, so I made this new thread. The question seems very simple, but by the moment I can't find an answer and it makes me doubt about the ability to use JS

  • How do I open 2 finder windows in the same location?

    I have one finder window I navigate to a folder that is nested 10 levels deep I want to open another finder window in the same location How do I do this? Thanks Omar

  • System Administrator does not Exist

    Hi all, for Fresh Installation of 11.5.10.2, I have applied diagnostics patch for IZU_TOP. I can login as SYSADMIN account, but can not see System Administrator Responsibility. It shows Assigned in User Management module to SYSADMIN user. I tried to

  • How to capture first two digit in a number

    Hi, I have numbers with differeent lenth in a variable How to capture first two digit?? Thanks.

  • HELP!! I'M SEEING DOUBLE

    I just did some routine iLife upgrade, so maybe that's the problem. But now EVERY item in my calendar has doubled. The same item, same time listed twice. Anyone who knows how to correct this short of manually deleting 50% of what's in my database, lo