cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Returning values in JCO commit

Former Member
0 Kudos
108

Hi friends,

I have a button in html page.By hiting that button it will trigger "Xacute query which in trun will call the BLT.In the BLT I created a trasaction property which is <b>procord</b> of type input. added one action block for starting the JCO session. and calling <b>JCO function</b> action block which is calling BAPI : BAPI_GOODSMVT_CREATE" to post GR in r/3.This standard BAPI will not commit the database. I have added a action block "<b>JCO Commit</b>" to commit it in r/3.and after this am ending the <b>JCO session</b> thru action block.finally i called sql query action block to update confimation number in XMII DB.This is how my BLT was built.

When am testing from Xacute query by passing the value for procord its GR posting is done in R/3 and getting updated in XMII DB also.

When am testing only the BLT by assigning value for procord even then also its working i.e., both GR posting in R/3 and updating in XMII DB is working .

My problem is when am testing from the html page .ie., when hitting the button its not getting updated in XMII DB but GR is posting in R/3.I.e material document is also created in r/3 for that process order number.This mat document is not returning back to XMII.

To trace out the error i just added one event logger after calling up JCO Function action block in the BLT where am displaying both procord (input) and confirmation (o/p) .When i was testing from the html page in the event logger confirmation does not contain any value.Its displaying the procord which is input.

Can anybody help me out where could be the problem.......

Thanks in advance.

Regards

Sireesha.

Accepted Solutions (0)

Answers (2)

Answers (2)

salvatore_castro
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sireesha,

There is a templated solution for this go to:

SDN downloads section click on Manufacturing

Download the MM Templates

You will see under SAP/ModuleLibraries/MM/GoodsMovementForNItems

This will have all of the functionality you are looking for.

Regards,

Salvatore Castro

xMII Consulting & Field Enablement

Former Member
0 Kudos

Hi Sireesha,

In your transaction create a transaction output variable as xml type and send the total JCO block output to that variable and chekc the output by running the query temaplate. One more this i wanted to ask is your insert query is in transaction or it is in html page.Please give me that details.

Thanks,

Rajesh