About F-28 transaction
Hi all,
I want to send e-mail once accounting document get posted through F-28 transaction. Can anybody tells me hows it possible? if you know user-exit for that then please tell me
Thanks,
Siddharth
Beside the creation of workflow events from standard SAP transactions, SAP has introduced the business transaction event, the so called BTE. For instance, during the posting of accounting documents bte 00001030 is triggered. But how will you find out which bte is triggered and when ?
In transaction FIBF you can customize these bte's and link function modules (for instance a copy of SAMPLE_INTERFACE_00001030) to the bte. During the SAP transaction, the program has to check which functions need to be called for that bte. This is done by function module BF_FUNCTIONS_FIND.
The next step is to add a breakpoint in the source code of this function module.
Then you go start your SAP transaction (let's say FB01) or bapi (for instance BAPI_ACC_INVOICE_RECEIPT_POST). The program stops in function module BF_FUNCTIONS_FIND. The value of the bte can be found in variable I_EVENT.
With this knowledge you can go start customize the BTE mechanisme for the found bte by using transaction FIBF.
Regards,
Raj
Similar Messages
-
How to setup the timeout time about container mangement transaction?
hi
i want to modify the time-out time about cantainer management transaction.
but i don't know where and how to setup it....
please tell me how to do it, thanks a lot.
JoeWe haven't been using the session pool, just the direct Jolt classes, but
the only way we've found to set the timeout is via a transaction time, it
seems to be the only one that has any effect.
hth
Mike -
An information about follow up transaction document
Hi all,
How can i retrieve information about follow up transaction document. I need to know which table or anything else that can give me information about follow up document.
For example if i have this business scenario :
from contract --> follow up to order
and i need to know how many contract that being follow up to order and how many didn't.
So which table that have information about this in crm?
Thanx.
Regards
Indah PuspitaHi @all,
the question is quite old, but not yet solved. As I had a similar task to do, i found something in the database that solved my task and probably yours as well.
There is a DB table called "CRMD_BRELVONAE" that contains relationships between all the different CRM Objects.
field "OBJGUID_A_SEL" contains the GUID of the parent object (equals CRMD_ORDERADM_H-GUID) and "OBJGUID_B_SEL" contains the GUID of the child object (Follow-up, equals CRMD_ORDERADM_H-GUID) .
If you are only interested in a specific type of relationships, there are also fields "OBJTYPE_A_SEL" for the object type of the parent object and "OBJTYPE_B_SEL" for the object type of the child object.
I hope, this is for you helpful
Regards
Ralf -
please help .. when entering billing information its saying i need to contact itunes support about payment review transaction . where can i do this . much appreciated
Contact iTunes using the link provided. Or, use the contact information found on the Contact Us page, the link to which is at the bottom right of every page.
-
Please let me about the SAP transaction code(s)
Please let me about the SAP transaction code(s) from which I will get monthly data of the folowing:
Material or product wise listing of raw materials used in WIP & converted to Finished goods remaining as closing stockDear parameswar
The simple work is go to MM60, give material type ROH (for raw material) and execute. You will get list of all raw materials. Make a note of it and now go to MB51, give those material codes and give movement type 261 for issue from stores and execute. You will get raw materialwise details of how much quantity has been issued to WIP. The same exercise you have to do for FERT.
thanks
G. Lakshmipathi -
Please let me about the SAP transaction code(s) from which I will get month
Please let me about the SAP transaction code(s) from which I will get monthly
Material or product wise listing of cost of finished goods sold & lying as stockDear parameswar
Go to SE16, give the table MBEW and select the following fields:-
VERPR - If you want to see the moving average price of that particular material
STPRS - If you want to see the Standard price of that particular material
SALK3 - If you want to see the total valuated stock of that particular material
To see how much stock is available, run MMBE and execute. You can also check in MC.9 (mcdot9)
thanks
G. Lakshmipathi -
About Container-managed Transactions and Bean-managed Transactions
as the document of weblogic7.0 describe the differents of Container-managed
Transactions and Bean-managed Transactions,and in the document,It tell us
details of using Bean-managed Transactions,such as \:
import javax.naming.*;import javax.transaction.UserTransaction;.....
import java.sql.*;import java.util.*;
UserTransaction tx = (UserTransaction)
ctx.lookup("javax.transaction.UserTransaction");tx.begin();
tx.commit() //or tx.rollback
but how to use Container-managed Transactions?
what is EJB's deployment descriptor? can someone tell me?
i wonder someone will show me an example of how to use Container-managed
Transactions.
thanks
fish
Many if not all of the WLS EJB examples use container-managed
transactions. That's a good place to start.
I'd also recommend that you pick up a decent EJB book. There's several
on the market right now.
-- Rob
fish wrote:
> <ejb-jar>
> <enterprise-beans>
> <session>
> <ejb-name>testbean</ejb-name>
> <home>test.test.TestHome</home>
> <remote>test.test.Test</remote>
> <ejb-class>test.test.TestBean</ejb-class>
> <session-type>Stateful</session-type>
> <transaction-type>Container</transaction-type>
> </session>
> </enterprise-beans>
>
> <assembly-descriptor>
> <container-transaction>
> <method>
> <ejb-name>EmployeeRecord</ejb-name>
> <method-name>*</method-name>
> </method>
> <trans-attribute>Required</trans-attribute>
> </container-transaction>
> </assembly-descriptor>
> </ejb-jar>
> ----------------------------------------------
> seems i have to write ejb-jar.xml like this,am i right?
> what about <ejb-client-jar>? is it needed in this xml file?
>
> thanks
>
> fish
>
>
-
Hello everyone:
I am a newcomer to web service, but now I have to simulate ws-businessactivity protocol. I don't have any idea about it and where to begin with. I made an survey about JTA and JTS, but it seems this api only supports ws-atomic transaction. And in WSIT tutorial, there is only one example. Besides, someone suggests to use web service callback (asynchronous) technology. I so hope somebody could give me advices about the way how to do this. Thank you very much.I haven't found any official info on it, but my simple testing (mainly via ST05) indicates that you should be able to call multiple web services within a single LUW - there seems to be no implicit "commit work" issued by the framework (unlike remote RFC calls).
Jonathan -
Problem about creating asset transaction type
I created an asset transaction type with AO76 to deal with the apportionment of asset expenses which was created in the year before yesteryear.But the user demands an account assigned to the transaction type .Then I checked the configuration.It seems t-code AO85 can only realize the relationship between asset classes and accounts.
So what should I do to realize this? Thanks!or if you still want to achieve it. Go for substitution. make the Gl account the substitutable field and then define a rule saying that, if the transaction type is ' ', then the gl account is ' '
Regards
anantha -
Problem in SHD0 about creation of Transaction Variant for VA02
Hi All,
My goal is to create a Transaction Variant for VA02 Variant that doesn't display the "Object Status" button under the page "Status" in the Header of Sales Orders.
To do so, I created a Transaction Variant in SHD0 (named ZTEST_VA02), the creation process creates the Screen Variants too, and i named them ZTEST_VA02_<dynpro_number>.
The Dynpro where I can found the button to hide is the SAPMV45A / 4305, so the Screen Variant Name is ZTEST_VA02_4305.
My problem is that If I test the single Screen Variant (ZTEST_VA02_4305) using the button in SHD0, I can see the whole transaction with my modify (the "Object Status" button is hidden), but testing the entire Transaction Variant ZTEST_VA02 I cannot see the modify and the Button is pretty visible.
I even tried to create a Transaction with Variant, in SE93, that launches the transaction VA02 with the variant ZTEST_VA02, and I tried to assign the Transaction Variant I created as a Standard Variant, in both cases the problem is that the modify doesn't appear to be applied.
For me this is a real mistery because If the Screen Variant is right (It works) I would expect to see that even the Transaction Variant is correct.
Does Anyone have (or have ever had) this problem?
Thank You very much for your attention.
Regards,
Claudio
PS: I forgot to mention that I'm working on SAP ECC 6.0
Edited by: Claudio Distrutti on Apr 4, 2008 11:47 AMI too facing the similar problem when assigning the screen variant to transaction variant.
screen number where the 'Obj.Status' button is ' 4456
if executing the screen variant alone , it works perfectly,
once i assing to the transaction variant and test, the 'Obj.Status' button is visible.
does anyone got the solution?
Edited by: Thomas Paul jr on Oct 21, 2010 1:59 PM -
What can I do about screwed up transaction?
I was talking for a lengthy amount of time with a floor cashier about the Transformer Prime and it's compatible docking station/keyboard. She retrieved both the tablet and the docking station and I purchased both. I took them both out of the bag and opened them and proceeded to try and connect them, but found that I was unable to. I looked at the box again and saw that the cashier had grabbed and sold me the wrong tablet (regular Trasformer). I know Best Buy isn't just going to hand over a new tablet that costs at least $100 more in exchange for the one that was mistakenly sold me, so do I just need to return everything or what?
just pay the hundred dollars more and get the transformer prime, return the old transformer and explain your situation.
-
Questions about automatic payment transaction
Hi experts,
Pls help to advise. Thx.
Q1: If automatic payment transaction is set, what's the outcome? Illustration is appreciated.
Q2: For customer is vendor scenario, what's the process in the system if automatic payment transaction is set? Just use Tcode F110 to clear?Hello
In this process, you will complete a payment transaction automatically.
You should first enter some vendor invoices so that there are enough due payables available in the system. In order to reduce the work you need to do, we have created a CATT (Computer Aided Test Tool) that generates invoices automatically when activated.
Secondly, you will create a payment program and enter the parameters necessary for selecting the items to be paid.
Next, you will execute a payment proposal list and check its log. You will find that some items are blocked for payment. You will need to update the list in order to remove the block.
Later, you will start an actual run. Then you will set the print program so that the payment forms and accompanying payment advice notes and payment summaries are correctly assigned to the payment run. Finally, you will print the payment forms. If you are using North American data, you will then need to analyze the check register.
Check the link for detailed procedures
Reg
Suresh -
About Post Processing transaction FLB1- lockbox details
Hi ALL,
we are doing an upgradation from 4.6 to ECC 6.0 so we have a TST system which is upgraded for unit testing purpose..
now the scenario is....
we have been loading the raw data into idoc files into SAP thru an interface called GXS, so when they are loaded, now in PRD after they see the idocs had been loaded good in we02, they are able to look the lockbox data in FLB1 (as unprocessed) even before processing the import lockbox processing transaction.
but we are not able to see the same lockbox data in FLB1 even when we can see that the idocs are loaded good in the TST system, when we go into the FLB1 transaction it says...
"You have selected either no or several items.
To select, double-click on an item
at the top (list) or on the left (tree display)
of the screen".
i was wondering if we are able to see the lockbox data in PRD (4.6) system, then why are we not able to look into the data (lockbox details) in TST (6.0)
but when i ran the import program FLBP in TST and then when i check the FLB1 transaction it shows the details now ..i.e., on account , unprocessed n so on..
but the user wants to see the lockbox data in FLB1 as unprocessed even before running FLBP
i am not able to understand what could be the issue with this...please advice me ....thanks in advanceHi,
If you are looking to view the specific fields on the screen without scrolling then , you can set up a line layout in configuration and attach it to transaction code FB05 for Customers.
The transaction codes for defining line layout and attaching the line layout to Transaction code are as O7Z4S and O7V3.
Thanks
Murali. -
About bdc call transaction and session method
hi,
can i know whether we could proceed with the bdc techniques without even copying and pasting in our program the perform statements from the recording process that we do for the particular transaction in TC SHDB.
if we can pls send me a code for example.
thanks in advancehi,
check this example.
For doing BDc Manually we have to analyse the transaction i.e. ex-XK01 we have to know the Screen numbers and screen fileds.
first analyse the transaction and then write performs for bdc_filed and bdc_dynpro.
REPORT ZSR_BDC_CT_ERROR.
DATA: BEGIN OF ITAB OCCURS 0,
LIFNR LIKE RF02K-LIFNR,
KTOKK LIKE RF02K-KTOKK,
NAME1 LIKE LFA1-NAME1,
SORTL LIKE LFA1-SORTL,
LAND1 LIKE LFA1-LAND1,
SPRAS LIKE LFA1-SPRAS,
END OF ITAB.
DATA : BDCTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
it_error like itab occurs 0 with header line,
BDCMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'z:\ct.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ITAB.
REFRESH BDCTAB.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0100'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'RF02K-LIFNR'
ITAB-LIFNR.
PERFORM BDC_FIELD USING 'RF02K-KTOKK'
ITAB-KTOKK.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0110'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFA1-SPRAS'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'LFA1-NAME1'
ITAB-NAME1.
PERFORM BDC_FIELD USING 'LFA1-SORTL'
ITAB-SORTL.
PERFORM BDC_FIELD USING 'LFA1-LAND1'
ITAB-LAND1.
PERFORM BDC_FIELD USING 'LFA1-SPRAS'
ITAB-SPRAS.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0120'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFA1-KUNNR'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0130'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ENTR'.
PERFORM BDC_DYNPRO USING 'SAPLSPO1' '0300'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=YES'.
CALL TRANSACTION 'XK01' USING BDCTAB MODE 'A' UPDATE 'A' MESSAGES INTO BDCMSG.
*LOOP AT BDCMSG.
if sy-subrc <> 0.
move-corresponding itab to it_error.
endif.
READ TABLE BDCMSG WITH KEY MSGTYP = 'E'.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = BDCMSG-MSGID
LANG = 'EN'
NO = BDCMSG-MSGNR
V1 = BDCMSG-MSGV1
V2 = BDCMSG-MSGV2
V3 = BDCMSG-MSGV3
V4 = BDCMSG-MSGV4
IMPORTING
MSG = BDCMSG-MSGV1
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE :/ BDCMSG-MSGNR,BDCMSG-MSGV1.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = BIN_FILESIZE
filename = 'z:\cerror.txt'
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH = FILELENGTH
TABLES
data_tab = it_error
FIELDNAMES = FIELDNAMES
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form dynpro
FORM BDC_DYNPRO USING P_P1
P_P2.
CLEAR BDCTAB.
BDCTAB-PROGRAM = P_P1.
BDCTAB-DYNPRO = P_P2.
BDCTAB-DYNBEGIN = 'X'.
APPEND BDCTAB.
ENDFORM. " dynpro
*& Form bdc_field
text
-->P_P3 text
-->P_P4 text
FORM BDC_FIELD USING P_P3
P_P4.
CLEAR BDCTAB.
BDCTAB-FNAM = P_P3.
BDCTAB-FVAL = P_P4.
APPEND BDCTAB.
ENDFORM. " bdc_field
Session:
REPORT ZSR_BDC_SESSION.
DATA: BEGIN OF ITAB OCCURS 0,
LIFNR LIKE RF02K-LIFNR,
KTOKK LIKE RF02K-KTOKK,
NAME1 LIKE LFA1-NAME1,
SORTL LIKE LFA1-SORTL,
LAND1 LIKE LFA1-LAND1,
SPRAS LIKE LFA1-SPRAS,
END OF ITAB.
DATA : BDCTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
BDCMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
*include bdcrecx1.
START-OF-SELECTION.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'z:\flatfiles\sr1.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*perform open_group.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
DEST = FILLER8
GROUP = 'SR'
HOLDDATE = FILLER8
KEEP = 'X'
USER = SY-UNAME
RECORD = FILLER1
PROG = SY-CPROG
IMPORTING
QID =
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ITAB.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0100'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'RF02K-LIFNR'
ITAB-LIFNR.
PERFORM BDC_FIELD USING 'RF02K-KTOKK'
ITAB-KTOKK.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0110'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFA1-SPRAS'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'LFA1-NAME1'
ITAB-NAME1.
PERFORM BDC_FIELD USING 'LFA1-SORTL'
ITAB-SORTL.
PERFORM BDC_FIELD USING 'LFA1-LAND1'
ITAB-LAND1.
PERFORM BDC_FIELD USING 'LFA1-SPRAS'
ITAB-SPRAS.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0120'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFA1-KUNNR'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_DYNPRO USING 'SAPMF02K' '0130'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ENTR'.
PERFORM BDC_DYNPRO USING 'SAPLSPO1' '0300'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=YES'.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'XK01'
POST_LOCAL = NOVBLOCAL
PRINTING = NOPRINT
SIMUBATCH = ' '
CTUPARAMS = ' '
TABLES
DYNPROTAB = BDCTAB
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
*perform bdc_transaction using 'XK01'.
CALL FUNCTION 'BDC_CLOSE_GROUP'.
*perform close_group.
FORM BDC_DYNPRO USING VALUE(P_0069)
VALUE(P_0070).
CLEAR BDCTAB.
BDCTAB-PROGRAM = P_0069.
BDCTAB-DYNPRO = P_0070.
BDCTAB-DYNBEGIN = 'X'.
APPEND BDCTAB.
ENDFORM. " bdc_dynpro
*& Form bdc_field
FORM BDC_FIELD USING VALUE(P_0074)
VALUE(P_0075).
IF P_0075 IS NOT INITIAL.
CLEAR BDCTAB.
BDCTAB-FNAM = P_0074.
BDCTAB-FVAL = P_0075.
APPEND BDCTAB.
ENDIF.
ENDFORM. " bdc_field -
Question about implement the transaction in EJB
Dear Sir
I try to do some transaction work in EJB,I builded 6 bean blow
OrderMgr(session bean) control Order(CMP Entity Bean)
Istock(session bean) control Item(CMP Entity Bean)
DeliveryMgr(session bean) control delivery(CMP Entity Bean)
I try to implement the transaction in session bean OrderMgr Like
public void submitOrder(int id) {
Try
Istock.dosomething
Delivery.dosomething
Bookorder.dosomething
catch (Exception ex) {
sessionContext.setRollbackOnly();
But not Rollback not work
Then I change Session Bean OrderMgr to BMT,write the code blow, but rollback still not work
sessionContext getUserTransaction().beging();
Try{
Istock.dosomething
Delivery.dosomething
Bookorder.dosomething
sessionContext.getUserTransaction().commit();
catch (Exception ex) {
sessionContext. rollback();
Could anyone tellme what's wrong with me code?
  If you want to rollback work done by these methods, than you have to make sure that they don't start a new transaction. i.e. they should use tx attribute "required" or "mandatory".
Istock.dosomething
Delivery.dosomething
Bookorder.dosomething
Maybe you are looking for
-
Authenticating a user through Windows NT Domain.
Hi there, Could anybody please help me out with this issue. Can a user, who logs into the web application, be authenticated from the Windows NT Domain. I'am only using JSP's and Servlets in my web application on a web server. Basically all my user's
-
How to increase size of check box in sap script
Hi All, I need to include check box in sap script. I included check box using insert>character->sap symbols. I cant able to view check box in print preview but i can able to get check box in print out.Size of check box printed in the paper is not hav
-
I get a white screen when trying to reinstall snow leopard
I am trying to install snow leopard over os x mavericks when i put the disc in it tells me to restart the computer, when it boots up the screen goes white and stays that way the only way I can get out of this is to push and hold the power button and
-
No authorization error in Bex report
Hi When i open an workbook i get the selection screen and when i select values and execute i get an message" warning you dont have sufficient authorization" When i click close button on the message the work book opens up but with out output (val
-
How to access access ViewRowSetImpl in executeQueryForCollection
Hi, I have lets call it a Bill of Matierial (BOM) VO that is backed by the database partially. I show this BOM in a treetable. Now for some line items in this BOMVO I want to get dynamically BomLineItems that donot exist in my DB but are in external