Quantcast
Channel: SCN: Message List - SAP Business One Integration Technology
Viewing all 973 articles
Browse latest View live

B1if RESTful API for webshop

$
0
0

Hi Experts,

 

I am testing an integration from SAP B1 to webshop via RESTful API and JSON.

 

But for SLD test connection (and in step processing) I always get an error 401. At the same time all settings are working fine in SoapUI 5.2.1 and web browsers. Any idea why?

 

Thanks and Regards


Re: SAP Business One IF

$
0
0

Thanks for you answers, but it does not solve my problem

 

when i try to enable the dashboard the following error occurs

 

Ensure that SAP Business One Integration Service and SAP Business One Event Sender Service have been started; then wait 1 minute and try again

 

Note : I reinstalled the B1If , still i am facing the issue.

 

Thanks,

Devi

Re: No Scenario Step (vBIU) Assigned for Step for Sender System (SysId)

$
0
0

Hi Sỹ Hùng,

 

Check if sysid has been changed for the companies or not.
You can check sysid in files at B1iP Control Center console on following location:-
1) bizstore:/com.cxs.b1i.directory.cc/Deployment/sysid.xml(unified)
2) bizstore:/com.cxs.b1i.directory/SysLandscape/Landscape.xml(unified)

 

if system id changes then you need to delete the sysid.xml file and redeploy the IC Solution again.

 

If issue still persists raise the ticket on Global SAP GSC for the same.

 

Regards,
Yash

Re: SAP Business One IF

Re: How to view attachment in SAP Business One mobile

$
0
0

you need  B1 9.1 PL5  or higher

 

Kind regards

Marco

SQL to Flat File For-Each Issues

$
0
0

Hello,

 

I'm making a scenario where I take an SQL query then I transform it into a specific format and output it to CSV.

 

I have everything working fine for the query and the output file and formatting.  However, when I output the final results the rows are identical.  IE, my query results in ten different items but my CSV output is just ten rows replicating the first row.

 

Here is my transformation coding.

 

<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:b1e="urn:com.sap.b1i.sim:b1event" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" bfa:force="" vpf:force="" jdbc:force="" rfc:force="" b1ie:force="" b1e:force="" xci:force="" sim:force="" utils2:force="" b1im:force="">    <xsl:output method="xml" encoding="UTF-8" indent="yes"></xsl:output>    <xsl:param name="atom"></xsl:param>    <xsl:param name="sessionid"></xsl:param>    <xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role=&apos;S&apos;]"></xsl:variable>    <xsl:variable name="vpSender" select="/vpf:Msg/vpf:Header/vpf:Sender/@Id"></xsl:variable>    <xsl:variable name="vpObject" select="/vpf:Msg/vpf:Header/vpf:Sender/@ObjId"></xsl:variable>    <xsl:variable name="vpReceiver" select="/vpf:Msg/vpf:Header/vpf:ReceiverList/vpf:Receiver[./@handover=&apos;P&apos;]/@Id"></xsl:variable>    <xsl:variable name="sqlresult" select="/vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom1&apos;]"></xsl:variable>    <xsl:template match="/">        <Msg xmlns="urn:com.sap.b1i.vplatform:entity">            <xsl:copy-of select="/vpf:Msg/@*"></xsl:copy-of>            <xsl:copy-of select="/vpf:Msg/vpf:Header"></xsl:copy-of>            <Body>                <xsl:copy-of select="/vpf:Msg/vpf:Body/*"></xsl:copy-of>                <Payload Role="X" id="{$atom}">                    <xsl:call-template name="transform"></xsl:call-template>                </Payload>            </Body>        </Msg>    </xsl:template>    <xsl:template name="transform">        <xsl:attribute name="deli">,</xsl:attribute>        <bfa:io>            <bfa:row>                <bfa:col>Supplier ID</bfa:col>                <bfa:col>Item Number</bfa:col>                <bfa:col>Qty On Hand</bfa:col>                <bfa:col>Qty Backordered</bfa:col>                <bfa:col>Qty On Order</bfa:col>                <bfa:col>Item Next Availability</bfa:col>                <bfa:col>Item Discontinued</bfa:col>                <bfa:col>Item Description</bfa:col>            </bfa:row>            <xsl:for-each select="$sqlresult/jdbc:ResultSet/jdbc:Row">                <bfa:row>                    <bfa:col>                        <xsl:value-of select="$sqlresult/jdbc:ResultSet/jdbc:Row/jdbc:SuppID"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="$sqlresult/jdbc:ResultSet/jdbc:Row/jdbc:ItemCode"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="$sqlresult/jdbc:ResultSet/jdbc:Row/jdbc:QtyOnHand"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="$sqlresult/jdbc:ResultSet/jdbc:Row/jdbc:QtyBackordered"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="$sqlresult/jdbc:ResultSet/jdbc:Row/jdbc:QtyOnOrder"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="$sqlresult/jdbc:ResultSet/jdbc:Row/jdbc:ItemNextAvail"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="$sqlresult/jdbc:ResultSet/jdbc:Row/jdbc:ItemDisc"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="$sqlresult/jdbc:ResultSet/jdbc:Row/jdbc:ItemName"></xsl:value-of>                    </bfa:col>                </bfa:row>            </xsl:for-each>        </bfa:io>    </xsl:template></xsl:stylesheet>

My resulting file is similar to (i didn't recreate the entire file, just to illustrate that I'm getting only the top row of my SQL query results):

 

Item Number

Item 1

Item 1

Item 1

Item 1

Item 1

Item 1

Item 1

Item 1

Item 1

Item 1

 

My query results payload is perfect when I do the test step.  I just can't get the for-each to work properly.  I have heard that I need a jdbc:ResultSets (with an S) but this doesn't seem to make any difference.

 

How do I make it properly increment the rows in the output??

 

Thanks!

 

Mike

Re: SQL to Flat File For-Each Issues

$
0
0

I actually solved my own issue.

 

Turns out my xPath for the child items was incorrect:

 

<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:b1e="urn:com.sap.b1i.sim:b1event" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" bfa:force="" vpf:force="" jdbc:force="" rfc:force="" b1ie:force="" b1e:force="" xci:force="" sim:force="" utils2:force="" b1im:force="">    <xsl:output method="xml" encoding="UTF-8" indent="yes"></xsl:output>    <xsl:param name="atom"></xsl:param>    <xsl:param name="sessionid"></xsl:param>    <xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role=&apos;S&apos;]"></xsl:variable>    <xsl:variable name="vpSender" select="/vpf:Msg/vpf:Header/vpf:Sender/@Id"></xsl:variable>    <xsl:variable name="vpObject" select="/vpf:Msg/vpf:Header/vpf:Sender/@ObjId"></xsl:variable>    <xsl:variable name="vpReceiver" select="/vpf:Msg/vpf:Header/vpf:ReceiverList/vpf:Receiver[./@handover=&apos;P&apos;]/@Id"></xsl:variable>    <xsl:template match="/">        <Msg xmlns="urn:com.sap.b1i.vplatform:entity">            <xsl:copy-of select="/vpf:Msg/@*"></xsl:copy-of>            <xsl:copy-of select="/vpf:Msg/vpf:Header"></xsl:copy-of>            <Body>                <xsl:copy-of select="/vpf:Msg/vpf:Body/*"></xsl:copy-of>                <Payload Role="X" id="{$atom}">                    <xsl:call-template name="transformDSV"></xsl:call-template>                </Payload>            </Body>        </Msg>    </xsl:template>    <xsl:template name="transformDSV">        <xsl:attribute name="deli">,</xsl:attribute>        <xsl:variable name="sqlResults" select="/vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom1&apos;]"></xsl:variable>        <bfa:io>            <bfa:row>                <bfa:col>Supplier ID</bfa:col>                <bfa:col>Item Number</bfa:col>                <bfa:col>Qty On Hand</bfa:col>                <bfa:col>Qty Backordered</bfa:col>                <bfa:col>Qty On Order</bfa:col>                <bfa:col>Item Next Availability</bfa:col>                <bfa:col>Item Discontinued</bfa:col>                <bfa:col>Item Description</bfa:col>            </bfa:row>            <xsl:for-each select="$sqlResults/jdbc:ResultSet/jdbc:Row">                <bfa:row>                    <bfa:col>                        <xsl:value-of select="jdbc:SuppID"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:ItemCode"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:QtyOnHand"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:QtyBackordered"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:QtyOnOrder"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:ItemNextAvail"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:ItemDisc"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:ItemName"></xsl:value-of>                    </bfa:col>                </bfa:row>            </xsl:for-each>        </bfa:io>    </xsl:template></xsl:stylesheet>

If you notice I have just the "jdbc:ItemCode" for example in the columns now.  Before I had the full xPath which I guess was redundant.  Like "$sqlresult/jdbc:ResultSet/jdbc:Row/jdbc:ItemCode" which is incorrect.

 

Good luck!

Define Delimiter for FTP Upload in CSV

$
0
0

Hello,

 

I've successfully run an SQL query and output it to a local CSV file and it works perfectly.

 

I now want to upload the same file in the exact same format to an FTP location.  I have the FTP location working fine, it creates the file with the same data and format EXCEPT it switches the delimiter to a semi-colon.  I have read this is the default of the system but I don't know how to change it.

 

My FTP atom setup:

screen1.png

You can see it's set to .CSV and my output file is .CSV.  My original code for the source atom is:

 

    <xsl:template name="transformDSV">        <xsl:attribute name="deli">,</xsl:attribute>        <xsl:variable name="sqlResults" select="/vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom1&apos;]"></xsl:variable>        <bfa:io>            <bfa:row>                <bfa:col>Supplier ID</bfa:col>                <bfa:col>Item Number</bfa:col>                <bfa:col>Qty On Hand</bfa:col>                <bfa:col>Qty Backordered</bfa:col>                <bfa:col>Qty On Order</bfa:col>                <bfa:col>Item Next Availability</bfa:col>                <bfa:col>Item Discontinued</bfa:col>                <bfa:col>Item Description</bfa:col>            </bfa:row>            <xsl:for-each select="$sqlResults/jdbc:ResultSet/jdbc:Row">                <bfa:row>                    <bfa:col>                        <xsl:value-of select="jdbc:SuppID"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:ItemCode"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:QtyOnHand"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:QtyBackordered"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:QtyOnOrder"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:ItemNextAvail"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:ItemDisc"></xsl:value-of>                    </bfa:col>                    <bfa:col>                        <xsl:value-of select="jdbc:ItemName"></xsl:value-of>                    </bfa:col>                </bfa:row>            </xsl:for-each>        </bfa:io>    </xsl:template>

You can see my delimiter set at the top.  Is there somewhere else I need to set the delimiter?

 

I can't see much documentation in the B1i help about the bfa structure.

 

Thanks for your help!

 

Mike


Re: No Scenario Step (vBIU) Assigned for Step for Sender System (SysId)

$
0
0

Hi Yash,

Thank you very much for your help. It is my fault when I forgot to setup IC scenario.

After Setup it, the Intercompany work well (Then I also checked as your suggestion, and the system id is correct)

But my concern now is when I check the status of some Steps for IC, they are inconsistent with the following message: “Scenarios Step warning, inbound channel: defined object identifier not list in repository.

My understand is I have to configure them in Scenario-> Step design, but there are some questions:

-          Do I have to configure all step in case of Intercompany Scenarios?

-          I also found out some documents relate to Step Design information like bellow. So for the inconsistent Steps, can I follow the information here?

document.png

Sorry for my lack of knowledges, because I am pretty new with B1i.

Thank you again for your help.

Regards,

Sy Hung

Re: No Scenario Step (vBIU) Assigned for Step for Sender System (SysId)

$
0
0

Hi Hung,

 

There is no need to do any modification in any scenario step, you may simply start the execution of your business scenarios e.g. Business Partner master data, Item master data creation followed by Document Exchange Cycle and other features of Intercompany Solution.

 

For more information, you may refer to Admin and User Guides of Intercompany Solution.

 

Regards,

Yash

Re: Define Delimiter for FTP Upload in CSV

$
0
0

Hi Mike,

 

FTP Out  atom does not support an attribute for delimiter at the moment (framework version 1.22.5).

Therefore it's not documented, there is no way to set a delimiter using the FTP atom at the moment.

 

Please use a workaround and generate your file with delimiters using the storefile atom and upload it via a ftp tool.

 

best regards

Bastian

 

P.S.: SAP is planning to introduce the attribute for delimiter in FTP out atom in in of the following patches.

SAP B1 mobile Error

$
0
0

Hi,

 

 

I am getting this error,when i try to login to SAP business one system using the Android App.

 

 

Please help.

 

check the attached Image.

 

 

 

Regards

 

Mafoko Leshaba

ResultSet rowCount = 0 in Branch Path

$
0
0

Can someone give me the correct Branch Path condition xPath for the following:

 

I need the xpath condition for when the ResultSet rowCount="0".

 

<Payload Role="C" id="atom4" system="0010000101" mode="single" method="Automatic detection by key word(Automatic detection by key word)" plr="4" dbtype="HANA" blockExecution="false" compatibilityMode="true" delimiter=";" sql="select &quot;CardCode&quot;&#xA;&#x9;&#x9;&#x9;from &quot;OCRD&quot; &#xA;&#x9;&#x9;&#x9;where &quot;U_MCID&quot; = N'19226'" disable-output-escaping="false">

  <ResultSet xmlns="urn:com.sap.b1i.adapter:jdbcadapter" rowCount="0"/>

  </Payload>

  </Body>

</Msg>


I have tried the following but the syntax is not correct.


/*[/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom4']/jdbc:ResultSet[./@rowCount=‘0’]]


Regards,


Tom

Branch not replicating ICO data to head office

$
0
0

Hello SCN,

 

I have an issue from Intercompany 2.0 in which if one branch cannot replicate any data to head office. But if from head office to branch, it is replicating without issue.

 

The setup is the Conso and Head Office DBs are in one server, and the branch DB is in another server. I have configured the ICO properly to the best of my knowledge.

 

Running SAP B1 HANA 9.1 PL 11, ICO 2.0.17, also I use the same Company Template across all companies in the landscape.

 

What have I missed here? Hope to hear from you soon. Thanks!

 

ALAIN

Re: ResultSet rowCount = 0 in Branch Path

$
0
0

Hi,Thomas.

I think the correct xpth is like this:

/*[/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom4']/jdbc:ResultSet/@rowCount='0']

With best regards



Re: B1iSN9.0_Connect to HTTA failed: HTTP-Code: 401;message:Unauthorized

$
0
0

finally it worked after I set the authentication to "basic" and specified the user and password separately from the "query".

 

originally I put the user and password directly in the "query". it works in the old B1iSN 8.8. but it doesn't work in the new B1iSN9.0

 

Thank you for your information!

Why B1iSN9.0 requires a separate dedicated machine?

$
0
0

Hi,

 

According to the Administrator_Guide of B1iSN9.0, I can see that below,

 

"Install SAP Business One integration for SAP NetWeaver on a separate dedicated machine. Do not install it on a machine where you already run a SAP Business One system or the integration framework of SAP Business One. If you install SAP Business One integration for SAP NetWeaver on a machine where you already run the integration framework, you can lose data."


My question is that, Can I uninstall the B1iSN8.8 tomcat service and manually remove the database from the server and reinstall a new version of B1iSN9.0 on the same server where the original old one is installed ?

Re: Branch not replicating ICO data to head office

$
0
0

Hi Alain,

 

Please check event sender filter setting for branch companies.

If issue still persists raise the ticket on Global SAP GSC for the same.

 

Regards,

Yash Rastogi 

Re: Branch not replicating ICO data to head office

$
0
0

Hello Yash,

 

Don't know how to check event sender filter settings.

Can you tell me what the steps for this?

 

Thanks!

 

ALAIN

Re: ResultSet rowCount = 0 in Branch Path

Viewing all 973 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>