How to clear uncommitted transaction? (TSQL 2000)

Hi all,
I was testing a web application and it failed after executing a query but before committing / rolling back. 
IE...
BEGIN TRANSACTION
SET IMPLICIT_TRANSACTIONS ON;
UPDATE tbl...etc etc
And it was due to run... 
ROLLBACK TRANSACTION
GO
But for some unknown (.NET error, not SQL) reason didn't.
Now that table cannot be viewed or edited, just times out.
I've tried re-running the rollback but its on a different connection so just says no matching begin transaction.
Any ideas what I can do please?

I can't use 'KILL' as I don't have permission and getting hold of our DB admin will be very very difficult.
If .net application is killed then ideally it should rollback the transaction. Have you tried recycling application services?
Balmukund Lakhani
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog |
Team Blog | @Twitter
| Facebook
Author: SQL Server 2012 AlwaysOn -
Paperback, Kindle

Similar Messages

  • How to query uncommited transactions

    Hi Does anyone know how to query Oracle database from SQL*Plus to view uncommitted transactions?
    Thanks

    I noticed after I posted that I had used a package I found on the web called list that includes several useful functions. So in case someone wants it, here are the package and body:
    ***PACKAGE***
    CREATE OR REPLACE PACKAGE list AUTHID CURRENT_USER IS
    -- All of these functions and procedures have the following parameters:
    -- list_in - A delimited list to be parsed.
    -- delimiter - The delimiter to be used for parsing the list. Defaults
    -- to a comma.
    -- null_item - What to do with null items in the list. A null item is created
    -- by consecutive occurances of the delimiter. Valid values are
    -- 'KEEP' to allow items in the list to be null, or 'SKIP' to ignore
    -- null items, ie. treat consecutive occurances of delimiters as a
    -- single delimiter. The default is 'KEEP'.
    -- delimiter_use - How the delimiter is to be interpreted. Valid values are
    -- 'ANY' to treat the entire delimiter string as a single occurance
    -- of a delimiter which must be matched exactly, or 'ANY' to treat
    -- the delimiter string as a set of single character delimiters, any
    -- of which is a delimiter. The default is 'ANY'.
    -- Return the first item in a list.
    FUNCTION head(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2;
    PRAGMA RESTRICT_REFERENCES (head,WNDS,WNPS);
    -- Return the remainder of a list after the first item and its delimiter.
    FUNCTION tail(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2;
    PRAGMA RESTRICT_REFERENCES (tail,WNDS,WNPS);
    -- Return the nth item in a list.
    -- The parameter, item_num, denotes which item to return.
    FUNCTION item(
    list_in IN VARCHAR2,
    item_num IN INTEGER DEFAULT 1,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2;
    PRAGMA RESTRICT_REFERENCES (item,WNDS);
    -- Append an item to a list and return the new list.
    -- The parameter, item_in, contains the new item to append.
    FUNCTION append_item(
    list_in IN VARCHAR2,
    item_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',') RETURN VARCHAR2;
    PRAGMA RESTRICT_REFERENCES (append_item,WNDS);
    -- Return the number of items in a list.
    FUNCTION num_items(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN INTEGER;
    PRAGMA RESTRICT_REFERENCES (num_items,WNDS);
    -- Search a list for an item, and give its location in the list,
    -- or zero IF not found.
    -- The parameter, item_in, gives the item to be found in the list.
    FUNCTION in_list(
    list_in IN VARCHAR2,
    item_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN INTEGER;
    PRAGMA RESTRICT_REFERENCES (in_list,WNDS);
    -- Convert an array to a delimited list.
    -- The array to be input is a DBMS_UTILITY.uncl_array so that
    -- the LIST package is compatible with the comma_to_table and
    -- table_to_comma built ins.
    -- In this function, delimiter is always treated as a single
    -- string.
    FUNCTION array_to_list(
    array_in IN DBMS_UTILITY.UNCL_ARRAY,
    arrlen_in IN INTEGER,
    delimiter IN VARCHAR2 DEFAULT ',') RETURN VARCHAR2;
    PRAGMA RESTRICT_REFERENCES (array_to_list,WNDS,WNPS);
    -- Print a list using DBMS_OUTPUT.
    PROCEDURE print_list(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY');
    -- Convert a list to an array and return the array and its size.
    -- This is a procedure because it returns more than one value.
    -- The array to be returned is a DBMS_UTILITY.uncl_array so that
    -- the LIST package is compatible with the comma_to_table and
    -- table_to_comma built ins.
    PROCEDURE list_to_array(
    list_in IN VARCHAR2,
    arrlen OUT BINARY_INTEGER,
    array_out OUT DBMS_UTILITY.uncl_array,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY');
    -- Sort a list
    -- Null items are always skipped when sorting lists, since they would sort
    -- to the end of the list anyway. CMPFNC is the name of a function to compare
    -- two items. The default of '>' sorts in ascending order, '<' in descending order.
    -- If you write your own function to be used for sorting, it must:
    -- 1. Take two parameters of type VARCHAR2
    -- 2. Return an INTEGER
    -- 3. Return a negative number if the first item is to sort lower than
    -- the second, a zero if they are to sort as if equal, or a positive
    -- number if the first item is to sort higher than the second.
    -- 4. Be executable by the user running the sort. Normal naming rules apply.
    FUNCTION sort_list(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    cmpfnc IN VARCHAR2 DEFAULT '>',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2;
    PRAGMA RESTRICT_REFERENCES (sort_list,WNDS);
    end;
    ***END PACKAGE SPEC***
    ***BEGIN BODY***
    CREATE OR REPLACE PACKAGE BODY list IS
    current_list VARCHAR2(32760) DEFAULT '';
    current_delim VARCHAR2(30) DEFAULT ',';
    TYPE list_array IS TABLE OF VARCHAR2(2000)
    INDEX BY BINARY_INTEGER;
    current_array list_array;
    current_arrlen BINARY_INTEGER DEFAULT 0;
    current_null_item VARCHAR2(4) DEFAULT '';
    current_delimiter_use VARCHAR2(3) DEFAULT '';
    -- Find the first delimiter.
    FUNCTION find_delimiter(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN BINARY_INTEGER IS
    delimiter_loc BINARY_INTEGER;
    BEGIN
    IF upper(delimiter_use) = 'ALL' THEN
    delimiter_loc := INSTR(list_in,delimiter);
    ELSIF upper(delimiter_use) = 'ANY' THEN
    delimiter_loc := INSTR(TRANSLATE(list_in,delimiter,ltrim(RPAD(' ',LENGTH(delimiter)+1,CHR(31)))),CHR(31));
    END IF;
    RETURN delimiter_loc;
    END find_delimiter;
    -- Return the first item in a list.
    FUNCTION head(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2 IS
    delimiter_loc BINARY_INTEGER;
    BEGIN
    delimiter_loc := find_delimiter(list_in,delimiter,null_item,delimiter_use);
    IF delimiter_loc > 1 THEN
    RETURN SUBSTR(list_in,1,delimiter_loc-1);
    ELSIF delimiter_loc = 1 THEN
    RETURN NULL;
    ELSE
    RETURN list_in;
    END IF;
    END head;
    -- Return the remainder of a list after the first item and its delimiter.
    FUNCTION tail(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2 IS
    start_ch BINARY_INTEGER;
    BEGIN
    start_ch := find_delimiter(list_in,delimiter,null_item,delimiter_use);
    IF start_ch = 0 THEN
    RETURN NULL;
    ELSE
    IF upper(delimiter_use) = 'ALL' THEN
    start_ch := start_ch + LENGTH(delimiter);
    ELSE
    start_ch := start_ch + 1;
    END IF;
    IF start_ch > LENGTH(list_in) THEN
    RETURN NULL;
    ELSE
    RETURN SUBSTR(list_in,start_ch);
    END IF;
    END IF;
    END tail;
    -- Convert a list to an array.
    PROCEDURE parse_list(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') IS
    list_to_parse VARCHAR2(32760);
    BEGIN
    IF list_in = current_list AND
    delimiter = current_delim AND
    null_item = current_null_item AND
    delimiter_use = current_delimiter_use THEN
    NULL;
    ELSE
    current_list := list_in;
    current_delim := delimiter;
    current_null_item := upper(null_item);
    current_delimiter_use := upper(delimiter_use);
    list_to_parse := list_in;
    current_arrlen := 0;
    WHILE list_to_parse IS NOT NULL LOOP
    IF current_null_item <> 'SKIP' OR
    head(list_to_parse,delimiter,null_item,delimiter_use) IS NOT NULL THEN
    current_arrlen := current_arrlen + 1;
    current_array(current_arrlen) := SUBSTR(head(list_to_parse,delimiter,null_item,delimiter_use),1,2000);
    END IF;
    list_to_parse := tail(list_to_parse, delimiter,null_item,delimiter_use);
    END LOOP;
    END IF;
    END parse_list;
    -- Convert a list to an array and return the array and its size.
    PROCEDURE list_to_array(
    list_in IN VARCHAR2,
    arrlen OUT BINARY_INTEGER,
    array_out OUT DBMS_UTILITY.uncl_array,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') IS
    BEGIN
    parse_list(list_in,delimiter,null_item,delimiter_use);
    arrlen := current_arrlen;
    FOR i IN 1..arrlen LOOP
    array_out(i) := SUBSTR(current_array(i),1,240);
    END LOOP;
    END list_to_array;
    -- Print a list using DBMS_OUTPUT.
    PROCEDURE print_list(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') IS
    BEGIN
    DBMS_OUTPUT.ENABLE(100000);
    parse_list(list_in,delimiter,null_item,delimiter_use);
    FOR i IN 1..current_arrlen LOOP
    dbms_output.put_line(SUBSTR(current_array(i),1,240));
    END LOOP;
    END print_list;
    -- Return the number of items in a list.
    FUNCTION num_items(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN INTEGER is
    BEGIN
    parse_list(list_in,delimiter,null_item,delimiter_use);
    RETURN current_arrlen;
    END num_items;
    -- Return the nth item in a list.
    FUNCTION item(
    list_in IN VARCHAR2,
    item_num IN INTEGER DEFAULT 1,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2 is
    BEGIN
    parse_list(list_in,delimiter,null_item,delimiter_use);
    IF item_num NOT BETWEEN 1 AND current_arrlen THEN
    RETURN NULL;
    ELSE
    RETURN current_array(item_num);
    END IF;
    END item;
    -- Append an item to a list and return the new list.
    -- The parameter, item_in, contains the new item to append.
    FUNCTION append_item(
    list_in IN VARCHAR2,
    item_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',') RETURN VARCHAR2 IS
    BEGIN
    IF list_in IS NULL THEN
    RETURN item_in;
    ELSE
    RETURN list_in || delimiter || item_in;
    END IF;
    END append_item;
    -- Search a list for an item, and give its location in the list,
    -- or zero IF not found.
    FUNCTION in_list(
    list_in IN VARCHAR2,
    item_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    null_item IN VARCHAR2 DEFAULT 'KEEP',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN INTEGER is
    BEGIN
    parse_list(list_in,delimiter,null_item,delimiter_use);
    FOR item_num IN 1..current_arrlen LOOP
    IF current_array(item_num) = item_in THEN
    RETURN item_num;
    END IF;
    END LOOP;
    RETURN 0;
    END in_list;
    -- Convert an array to a delimited list.
    FUNCTION array_to_list(
    array_in IN DBMS_UTILITY.UNCL_ARRAY,
    arrlen_in IN INTEGER,
    delimiter IN VARCHAR2 DEFAULT ',') RETURN VARCHAR2 IS
    list_out VARCHAR2(32760):= '';
    BEGIN
    FOR item_num IN 1 .. arrlen_in LOOP
    EXIT WHEN LENGTH(list_out) +
    LENGTH(array_in(item_num)) > 32760;
    list_out := list_out||array_in(item_num);
    IF item_num < arrlen_in THEN
    list_out := list_out||delimiter;
    END IF;
    END LOOP;
    RETURN list_out;
    END array_to_list;
    -- Sort a list
    FUNCTION sort_list(
    list_in IN VARCHAR2,
    delimiter IN VARCHAR2 DEFAULT ',',
    cmpFnc IN VARCHAR2 DEFAULT '>',
    delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2 IS
    temp_array list_array;
    temp_len PLS_INTEGER := 0;
    temp_item VARCHAR2(2000);
    list_out VARCHAR2(32760);
    PROCEDURE swap (
    first_item IN OUT VARCHAR2,
    second_item IN OUT VARCHAR2) IS
    temp_item VARCHAR2(2000);
    BEGIN
    temp_item := first_item;
    first_item := second_item;
    second_item := temp_item;
    END swap;
    FUNCTION cmp (
    first_item IN VARCHAR2,
    second_item IN VARCHAR2,
    cmpfnc IN VARCHAR2 DEFAULT '=') RETURN INTEGER IS
    return_value INTEGER;
    BEGIN
    IF cmpfnc = '>' THEN
    IF first_item < second_item THEN
    return_value := -1;
    ELSIF first_item = second_item THEN
    return_value := 0;
    ELSIF first_item > second_item THEN
    return_value := 1;
    END IF;
    ELSIF cmpfnc = '<' THEN
    IF first_item > second_item THEN
    return_value := -1;
    ELSIF first_item = second_item THEN
    return_value := 0;
    ELSIF first_item < second_item THEN
    return_value := 1;
    END IF;
    ELSE
    EXECUTE IMMEDIATE 'BEGIN :I := '||cmpfnc||'(:A,:B); END;'
    USING OUT return_value, IN first_item, IN second_item;
    END IF;
    RETURN return_value;
    END cmp;
    BEGIN
    parse_list(list_in,delimiter,'SKIP',delimiter_use);
    FOR item_num IN 1..current_arrlen LOOP
    temp_item := current_array(item_num);
    FOR i IN 1..temp_len LOOP
    IF cmp(temp_array(i),temp_item,cmpfnc) > 0 THEN
    swap(temp_array(i),temp_item);
    END IF;
    END LOOP;
    temp_len := temp_len + 1;
    temp_array(temp_len) := temp_item;
    END LOOP;
    FOR item_num IN 1..temp_len LOOP
    EXIT WHEN LENGTH(list_out) +
    LENGTH(temp_array(item_num)) > 32760;
    list_out := list_out||temp_array(item_num);
    IF item_num < temp_len THEN
    list_out := list_out||delimiter;
    END IF;
    END LOOP;
    RETURN list_out;
    END sort_list;
    END;
    *** END BODY***
    Carl

  • How to clear local currency balance in foreign currency account

    hi,
    i have a bank account in EUR but local currency is USD.
    in the account balance, it has 0 in EUR but has balance in USD.  i need to clear the amount in USD.
    i tried f-02 to post EUR 0 and balance which in USD i enter in amount in local currency field but when simulate, the system converts the USD amount for EUR and EUR with an amount.
    may i know how to clear local currency balance for a foreign currency bank account which has ZERO balance.
    thanks

    Dear ,
    can u give me the details
    what is the invoice transaction (Entry
    how u clear that transaction (entry)
    what is the difference values.
    Regards
    radha

  • How to clear vendor open items with customer open items in APP?

    Hi Experts,
    Our vendor is our customer - in this scenario how to clear vedor open items against customer open items. I have defined vedor is customer means I have given customer number in vendor master record, selected chek box 'clear with customer'.  Still problem is not solved, hence I am requesting you to help me in this regard.
    Thank you very much,
    Regards,
    Ganesh.

    Hi
    In FBCJ after payment you have clear manually vendor balance in F-44.
    If you want SPL GL in FBCJ then write a Substitution .
    1. step 001 - Special G/L Substitution
    2. Prerequisite - Transaction code = 'FBCJ'
    3. Substitution posting key -- Exit (need help from abap) exit name
                                              G/L Exit (need help from abap) exit name
                                              Special G/L Ind Exit (need help from abap) exit name
    you can't do this without ABAP help
    Best Of Luck
    Tanmoy

  • How to clear the open documents in case if document currency and local curr

    Hi,
        Can anyboday advise how to clear the open document of a particular vendor for a particular company code. Here the issue is that balace is netted to Zero in the document currency but not in the local currency. The document was posted in Currency CAD and the local currency is GBP.
    When i check the FBL1N, there is it showing net balance is ZERO, but document is still in open
    status. I tried using Transaction code F-44, but it is not allowing me.
    Can anyboday advise how to perform this. Points will be awarded.
    Regards,
    Sree.

    Hi,
    In the Company code global parameters(OBY6),select the check box "NO FOREX RATE DIFF.WHEN CLEARING IN LC"
    and try clearing again.(You can have a F1 help on the check box to see what exactly it is).
    Hope this will resolve
    Assign points if useful
    Thanks
    Aravind
    Edited by: Aravind Aitipamula on May 22, 2008 1:36 AM

  • How to clear vendor open documents

    How to clear vendor open documents, I had previously tried to clear the documents in PRD with transaction F-44 and I get the following message.
    X. Ex.rate diff.accts are incomplete for account 00015080 currency CAD

    You can clear using the t code F-44 which is manual or by using F.13 which is automatic.
    The error you are getting is with refernce to a transaction between your Local currency and Currency "CAD"
    Maintain a transalation ratio and the exchange rate. Here the system also looks for a exchange loss or gain on such conversion also. Map those accounts and you will be clearing the transaction.
    If you are using automacti clearing you need to decide on the link(Common feild)  between the DR open item and CR open item and these open items after having this as a refernce can be cleared automatcially in F.13.
    Hope you understood.
    Reward points if useful.
    sarma

  • How to clear UWL items ?

    Hi,
    We are having so many entries or pending tasks in UWL of each user .
    How to clear them ? And I did not find any delete or remove button by selecting any entry .
    How to delete those entries one by one and all entries at once ?
    Thanks,
    Surya

    Hi,
    I hope you should clear them in workflow of backend .
    consult workflow forum
    Remove from transaction SWIA, choose logically delete on the highest
    level
    Koti Reddy

  • How to clear the line items...

    hello friends,
    I am not able to clear line items with F.13 transaction for special G/L Account..i am inputing the values with the Transactions F-48 and F-43(In each transaction v have assigned the same assignment (BSIK-ZUONR)) line items has to be cleared based on Assignment....we can view the details in Tr.code-FBL1N.
    Can any one help me...plzzz
    vamshi

    Hi PK,
    1. Should we maintain OIM for all Excise G/Ls (BED, ECess, SHECess)?
    - Please DO NOT maintain OIM on BED, ECESS and HECESS, only to be maintained for Cenvat Clearing Account. Also note that clearing of Cenvat Clearing is not easy, as in standard SAP, the assignment field is not updated with the same information for the Dr. and cr. line items of Cenvat Clearing Account. You need to use an exit in Substitution for it to populate the P.O. no. and line item at the time of MIRO.
    2. How to clear the BED Excise GLs which is with OIM in our system, it is thru F.13 only?
    You can use F.13 only if the entries are matching not otherwise, else clear all of them manually if you have good control of your account balances.
    3. Can we activate or deactivate OIM any point of time, I mean can it be activated in case the G/L balance amount is not ZERO?
    OIM activation for a GL - Refer Note No.1356457.
    OIM Deactivation :  You can deactivate OIM after making the balance Zero on that Account and by changing the Message No. FH 190 to warning in OBA5.
    4. What is the use of T Code J2IUN, I have gone thru the SDN links, but I am not able to execute the screen. What parameter should we select while executing J2IUN, when we use Pay cenvat from ser tax cr and Pay ser tax from cenvat cr.
    J2IUN is to utllize Excise Duty. The liability of Excise duty is utilized from Excise balances of BED, PLA , Service tax etc.. as per business requirements.
    Hope this helps you.
    Regards,
    SAPFICO

  • How to clear the line items once posted...

    hello experts,
    i m workiing on Enhancements in fi/co...i m not able to get the actual exit..
    How to clear the line items once postings has been done...i.e. once v do postings in f-48 v assign an assignment with special GL a/c as 'A'(one line item generates)....and in Tr.code f-43 once the due as been settled i.e the payment as been done and same assignment has to be given(2nd line item generates) it has to clear with the transaction f.13.but it is not..there is a report program to check fbl1n(tr.code)...once it is cleared it is shown in cleared items else it is shown in open items.....can any one help me out...
    i m providing the tech names of the fields...
    same program for both the transactions-- sapmf05a screen no for f-48--304 and
    f-43 ---110....
    Assignment --- BSEG-ZUONR....AMOUNT ---(cluster table) BSEG-WRBTR....
    SPECIAL GL A/C RF05A-UMSKZ(structure)
    thanks n regards,
    vamshi

    The prerequisites are:
    1) In the customer master sales area data, shipping tab, there is a field called Order combination. u must tick that.
    2) for the two orders, the sold to party & ship to party must be same
    3) both orders must have created from same plant & shipping points
    4) the line items must have same loading grp.
    5) the both orders sheduline line date must be same.
    transaction code for the same is VL04.
    enter the required data and select the order nos to be processed.
    Do reward points if it is useful

  • How to clear Noted Items appearing in FBL5N

    HI All,
    I have an issue as below. One of our customer posted one noted item, later he created a down payment transaction.
    While doing this down payment, he cleared the noted item.
    Now the noted item appears as cleared item  and down payment made is appearing as open item in transaction FBL5N.
    Here  I would like to suggest the customer to revese the down payment transaction and post a customer Invoice and clear that customer invoice by down payment transaction.
    But here my question is if we do reverse the down payment transaction posted initially, then noted item will appear as open item.
    Now, How to clear the open item.
    Awaiting for your responses.
    Thanks
    Prasad

    Dear prasad naga,
    I want to clarify your question and i will give you my answer depending on your question understanding.
    Firstly you want to clear the noted item (down payment request) with the in voice or to be cleared anyway.
    So when you create the down payment you select the noted item to create new down payment while the noted item has no financial effect, secondly when yu create the invoice and clear down payment with it it will clear down payment (noted item was cleared depending on creating the down payment on it). So where is the problem??
    I hope it helps you
    Best Regards
    Hussein

  • How to clear Vendor Debit item Through F110

    Hi All,
    I have a new requirement,
    I have a vendor for which transactions are posted in multiple currecies, like USD & EUR.
    I have 2 invoices for this vendor, one is in EUR, and other one is in USD, along with this i have a dabit balance for this vendor which generated through a credit note.
    now when iam trying to make the payament for this Vendor thrugh F110, and try to clear the debit amount also, the system is throwing one error message saying that "Enter incoming payment method for the debit amount "(whici is in USD)
    Please let me know how to solve this issue
    Thanks in advance

    Hi Robert,
    This is the content of SAP Note 164835 as follows:
    SAP Note 164835 - F110: Clearing credit memos and
    invoices
    Note Language: English Version: 14 Validity: Valid Since 29.05.2008
    Summary
    Symptom
    When you execute a payment run, you select credit memos and invoices for a
    customer or a vendor, but the system does not clear them together. In the
    payment (default) log, the system may generate the error message FZ
    347:"...none of the payment methods defined can be used for these items".
    Other terms
    F110, SAPF110S, clearing, FZ 347
    Reason and Prerequisites
    The items to be cleared do not match in particular fields (see below).
    Therefore, they are not paid together.
    You can set a payment method only for either outgoing or incoming payments.
    This explains the error message FZ 347.
    Example
    - Payment run is executed with payment method U for outgoing
    payment.
    - Credit memo is not cleared against invoice.
    - Invoice is paid with U.
    - Error message FZ 347 is generated for the credit memo.
    Solution
    The following explains in general how to clear, and describes some options
    for eliminating errors. The logic of the grouping in the payment program is
    independent of the type of the documents (for example, invoice, credit
    memo, down payment, cross-company code posting).
    General information
    o You can pay open items together using the automatic payment
    transactions, but only if certain fields are identical. The
    structure ZHLG1 specifies these fields. Important fields are:
    - Currency
    - Receiver
    - Payment method in the item
    - Bank details in the item
    o Whenever invoices and credit memos are in different payment groups,
    you cannot clear them together, even if the credit memo contains an
    invoice reference. If you set a payment group for a business
    27.12.2010 Page 2 of 4
    SAP Note 164835 - F110: Clearing credit memos and
    invoices
    partner (grouping key in the master record), then this is saved in
    structure ZHLG1 (field PAYGR). This way the invoice reference in
    the credit memo is overridden if they do not belong to the same
    payment group.
    o Invoice and credit memo must be due at the date of clearing. The
    due date of a credit memo without invoice reference (BSEG-REBZG) is
    the baseline date for payment (BSEG-ZFBDT), and for a credit memo
    with a fixed value date (BSEG-REBZG = 'V'), the due date is
    calculated in the same way as for an invoice. For credit memos with
    invoice reference, the due date of the invoice applies.
    o You cannot clear credit memos and invoices if the payment is
    supposed to be made using a payment method set for the POR
    procedure.
    Invoices are grouped with a POR number with the document number as
    an additional part of the grouping key so as to save the individual
    payment required for POR payment methods. Invoice-related credit
    memos for invoices with POR numbers receive the same grouping key
    as the related invoice. This ensures that the clearing is
    performed. However, you can no longer make payments using the POR
    payment method because this payment method allows only one item to
    be paid. However, you can make the payment using a different
    payment method.
    The POR procedure is only relevant for payment transactions with
    the Swiss Postal Service. Consequently, the relevant fields in the
    document and in the business partner master record are only of
    importance in Switzerland.
    What can you do?
    o Check the payment methods in the line items (field BSEG-ZLSCH). For
    clearing, these must be filled with the same value.
    o If you have entered a specific payment method for the items, then
    check Customizing for this payment method (transaction FBZP). The
    indicator "Single payment for marked item" should not be set there.
    o Check the field "Grouping key" in the master record of the business
    partner for payment transactions in the company code. If, for
    example, there is a grouping set according to assignment number,
    then the invoice and credit memo must have the same assignment
    number in the business partner line for clearing. Using transaction
    OBAP, you can define which fields of the key you want the system to
    use for grouping.
    o Check the indicator "Pay all items separately" (LFB1- or
    KNB1-XPORE) in the master record of the business partner for
    payment transactions in the company code. If this field is set,
    each open item for this business partner is paid separately.
    o If you have set the indicator "Separate payment for each Business
    Area" (T042-XGBTR) for the payment program (all company codes) in
    Customizing, check the business area in the items. They must match
    in this case.
    o Check the house bank in the line items (field BSEG-HBKID). The
    27.12.2010 Page 3 of 4
    SAP Note 164835 - F110: Clearing credit memos and
    invoices
    values must also match for clearing. A document without house bank
    can only be cleared with a document with house bank if this house
    bank is defined in the master record of the business partner
    (LFB1-HBKID or KNB1-HBKID).
    Make sure that the house bank from the payment program is filled
    for any reset clearing documents (see Note 159607).
    o Check the partner bank type in the line items (> Other data > field
    BSEG-BVTYP). These values must also match for clearing. You can
    specify the partner bank type in the master record of the business
    partner for general payment transactions.
    o For postings to one-time accounts, the address data is encoded and
    saved in field BSEC-EMPFG. The coding routine has been changed in
    Release 3.0E. Therefore, if you want to offset documents from an
    earlier release against documents from a later release (for
    example, after an upgrade) you need to check the contents of this
    field. These values must match for clearing. If this is not the
    case, the documents from the earlier release need to be reversed
    and be posted again. If reversal is not possible, contact SAP
    Support.
    o If you do not clear using a payment method set with POR procedure
    (with or without invoice reference in the credit memo), then check
    the contents of the fields BSEG-ESRNR, BSEG-ESRRE and BSEG-ESRPZ.
    They must not be filled if you do not enter a payment method in the
    item.
    o If you set a separate payment for each payment reference (for
    example separated by a CID number in Norway or reference number in
    Finland) (FBZP > Paying Company Codes > field T042B-XKIDS), then
    the items for a clearing in field BSEG-KIDNO must be the same. Note
    that the Customizing setting (T042B-XKIDS) is effective only if
    vendors are involved in the payments. When you separate the
    payments by payment reference, also take into account that no
    outgoing payment can be generated for a payment reference for which
    only credit memos exist.
    o Check the structure ZHLG1 in your system. If you have inserted
    additional fields there, the line items must also match in these
    fields. Contact your consultant.
    Header Data
    Release Status: Released for Customer
    Released on: 30.05.2008 10:55:56
    Master Language: German
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: FI-AP-AP-B Payment Progam / Payment transfer
    (DE, JP, US)
    Secondary Components:
    27.12.2010 Page 4 of 4
    SAP Note 164835 - F110: Clearing credit memos and
    invoices
    RE-RT Rental
    The Note is release-independent
    Related Notes
    Number Short Text
    1084325 FSCM-BD: Payment method for invoice-related credit memo II
    305414 F110: Unintelligible grouping of documents
    197626 Partner bank category in RAs and payment program
    159607 F110: Reset clearing is not offset against
    143311 F110:Incorr.due date for cred.memo w/ fix.val.date
    109233 F110: message FZ347 or several payment documents
    86578 Guidelines for F110 Payment Program (W/Check mgmt)
    33288 Payment methods for rental agreement
    22856 Customer credit memos are not paid
    20484 Payment program does not clear due items
    4904 Credit memo clearing or down pmnt clearing for POR

  • How to clear Purchage return (T.code. F-41)

    Hi
    My dear friends...
    when i post purchase return document using F-41,  always showing pending traction means it showing open item.. how to clear that purchage return..
    when i post purchage invoice, outgoing payment  also it showing open item.. how to clear that open itemm..
    i will give full points..
    Thanks for your information..
    Ashok kumar

    Hi,
    Good morning and greetings,
    As per standard SAP process, the purchase return is normally accounted through transaction code MBRL and at that same time the system clears the open items as well, provided the purchases are accounted through Purchase order.
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • How to clear documents in SAP-CM/CD

    Hi all,
    We need to add a new payment item to a claim that can be reassigned to another claim number.
    We followed the outlined steps.
    1.  Create new claim - ICLCDC01
    2.  Add claim item(s)
    3.  Pay out on claimed item(s)
    4.  Save claim and exit
    5.  Do payment run in CD - -FPY1.
    But the document is still open. Can anyone throw some light on as to how to clear the document.
    Thanks in advance,
    Cherian

    Hi Godhuli,
    You can call transaction <b>RSRCACHE</b> and you can delete all; In OSS Note 456068, you can find all the issues related to this kind of problem
    You can also refer oss notes 679609,779015 for OLAP cache invalidation.
    Awarding points is the way of saying thanks in SDN!!!
    Regards,
    Balaji

  • How to use multiple transactions

    hi experts,
    1.how to handle multiple transactions in call transaction and session method.
    2.is it possible to handle multiple transactions in call transaction method.
    3.can plz send how handle multiple transactions in session method.
    thanks in addvance

    hi,
    Go through this program.
    REPORT zra_gl_cr NO STANDARD PAGE HEADING LINE-SIZE 255.
    TYPE-POOLS: truxs.
    DATA: it_raw TYPE truxs_t_text_data.
    DATA:messtab1 LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    DATA:messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF i_mess OCCURS 0,
    l_mstring(480),
    msgnr(5),
    msgv1(15),
    END OF i_mess.
    DATA:i_mess1 LIKE i_mess OCCURS 0 WITH HEADER LINE.
    DATA: l_mstring(480),l_mstring1(480).
    DATA: BEGIN OF it_itab OCCURS 0,
    saknr(10), "G/L a/c number.
    bukrs(4), "Company Code.
    ktoks(4), "G/L a/c group.
    xplacct(1), "P&L statement account.
    xbilk(1), "Balance sheet account.
    txt20_ml(20), "G/L a/c short text.
    txt50_ml(50), "G/L a/c long text.
    waers(5), "Account currency.
    MWSKZ(2),
    mitkz(1), "Reconciliation a/c for a/c type.
    xopvw(1), "Open item management
    xkres(1), "Line item display.
    zuawa(3), "Sort Key.
    fstag(4), "Field status group.
    xintb(1), "Post automatically only.
    hbkid(5), "House bank.
    hktid(5), "Account id.
    vzskz(2), "Interest indicator
    END OF it_itab.
    DATA: hdate LIKE sy-datum.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(15) text-103. " FOR FIELD P_FILE1.
    SELECTION-SCREEN POSITION 25.
    PARAMETERS : p_file1 LIKE rlgrap-filename.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
    Perform file_selection will help to select the location of the file
    PERFORM file_selection.
    START-OF-SELECTION.
    Perform data_upload will help to upload the data from the flat file
    to the internal table.
    PERFORM data_upload.
    PERFORM open_group.
    Peform bdc_upload will help to upload the data from the internal
    table into its respective fields.
    PERFORM bdc_fspo.
    PERFORM bdc_upload.
    PERFORM exp_log.
    PERFORM close_group.
    Perform display_log will prepare a log for the data that has been
    uploaded
    PERFORM display_log.
    END-OF-SELECTION.
    FORM file_selection .
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_filename = ' '
    def_path = 'C:\'
    mask = ',.txt,.xls.'
    mode = 'O'
    title = 'Open a excel file'
    IMPORTING
    filename = p_file1
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    ENDFORM. " file_selection
    FORM data_upload .
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    i_line_header = 'X'
    i_tab_raw_data = it_raw
    i_filename = p_file1
    TABLES
    i_tab_converted_data = it_itab
    EXCEPTIONS
    conversion_failed = 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.
    ENDFORM. " data_upload
    FORM bdc_upload .
    LOOP AT it_itab.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=ACC_CRE'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_KEY-SAKNR'.
    perform bdc_field using 'GLACCOUNT_SCREEN_KEY-SAKNR'
    it_itab-SAKNR.
    perform bdc_field using 'GLACCOUNT_SCREEN_KEY-BUKRS'
    it_itab-BUKRS.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=2102_GROUP'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-XPLACCT.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=2102_BS_PL'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-XBILK'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-XPLACCT.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-XBILK.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTER'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-XBILK.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-TXT20_ML'
    it_itab-TXT20_ML.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-TXT50_ML'
    it_itab-TXT50_ML.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-BILKT'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-BILKT'
    it_itab-saknr.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=TAB02'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-ktoks.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-TXT20_ML'
    it_itab-txt20_ml.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-TXT50_ML'
    it_itab-txt50_ml.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-BILKT'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-BILKT'
    it_itab-saknr.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=TAB02'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-KTOKS.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-XBILK.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-TXT20_ML'
    it_itab-TXT20_ML.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-TXT50_ML'
    it_itab-TXT50_ML.
    perform bdc_field using 'GLACCOUNT_SCREEN_COA-BILKT'
    it_itab-saknr.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTER'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-WAERS'
    it_itab-waers.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-MWSKZ'
    it_itab-MWSKZ.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-MITKZ'
    it_itab-mitkz.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-XOPVW'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-XOPVW'
    it_itab-XOPVW.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-XKRES'
    it_itab-XKRES.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
    it_itab-ZUAWA.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-xplacct.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-xbilk.
    IF it_itab-xbilk = 'X'.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=TAB03'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-WAERS'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-WAERS'
    it_itab-waers.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-XOPVW'
    it_itab-xopvw.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-MITKZ'
    it_itab-mitkz.
    ENDIF.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-XKRES'
    it_itab-xkres.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
    it_itab-zuawa.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SAVE'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-FSTAG'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-FSTAG'
    it_itab-fstag.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-XINTB'
    it_itab-xintb.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-HBKID'
    it_itab-hbkid.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-HKTID'
    it_itab-hktid.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_CCODE-VZSKZ'
    it_itab-vzskz.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=TAB03'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-WAERS'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-WAERS'
    it_itab-WAERS.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-MWSKZ'
    it_itab-MWSKZ.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-MITKZ'
    it_itab-MITKZ.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
    it_itab-ZUAWA.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTER'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-FSTAG'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-FSTAG'
    it_itab-FSTAG.
    perform bdc_dynpro using 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    perform bdc_field using 'BDC_OKCODE'
    '=SAVE'.
    perform bdc_field using 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_CCODE-FSTAG'.
    perform bdc_field using 'GLACCOUNT_SCREEN_CCODE-FSTAG'
    it_itab-FSTAG.
    PERFORM bdc_transaction USING 'FS00'.
    CALL TRANSACTION 'FS00' USING bdcdata MODE 'A'
    UPDATE 'S'
    MESSAGES INTO messtab1.
    PERFORM mess1.
    REFRESH bdcdata[].
    ENDLOOP.
    ENDFORM. " bdc_upload
    FORM bdc_fspo .
    LOOP AT it_itab.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ACC_CRE'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_KEY-SAKNR'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_KEY-SAKNR'
    it_itab-saknr.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_KEY-KTOPL'
    '1000'.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=2102_GROUP'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-KTOKS'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-ktoks.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-xplacct.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XBILK'
    it_itab-xbilk.
    PERFORM bdc_dynpro USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SAVE'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-KTOKS'
    it_itab-ktoks.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
    it_itab-xplacct.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'GLACCOUNT_SCREEN_COA-TXT50_ML'.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-TXT20_ML'
    it_itab-txt20_ml.
    PERFORM bdc_field USING 'GLACCOUNT_SCREEN_COA-TXT50_ML'
    it_itab-txt50_ml.
    *perform bdc_transaction using 'FSP0'.
    CALL TRANSACTION 'FSP0' USING bdcdata MODE 'A'
    UPDATE 'S'
    MESSAGES INTO messtab.
    PERFORM mess.
    REFRESH bdcdata[].
    ENDLOOP.
    ENDFORM. " bdc_fspo
    FORM mess . "fsp0
    LOOP AT messtab.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    id = messtab-msgid
    lang = messtab-msgspra
    no = messtab-msgnr
    v1 = messtab-msgv1
    v2 = messtab-msgv2
    v3 = messtab-msgv3
    v4 = messtab-msgv4
    IMPORTING
    msg = l_mstring
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    CONDENSE l_mstring.
    i_mess1-l_mstring = l_mstring(250).
    i_mess1-msgnr = messtab1-msgnr.
    i_mess1-msgv1 = messtab1-msgv1.
    APPEND i_mess1.
    ENDLOOP.
    ENDFORM. " mess
    FORM mess1 . "fs00
    LOOP AT messtab1.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    id = messtab1-msgid
    lang = messtab1-msgspra
    no = messtab1-msgnr
    v1 = messtab1-msgv1
    v2 = messtab1-msgv2
    v3 = messtab1-msgv3
    v4 = messtab1-msgv4
    IMPORTING
    msg = l_mstring1
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    CONDENSE l_mstring1.
    i_mess-l_mstring = l_mstring1(250).
    i_mess-msgnr = messtab1-msgnr.
    i_mess-msgv1 = messtab1-msgv1.
    APPEND i_mess.
    ENDLOOP.
    ENDFORM. " mess1
    FORM exp_log .
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filename = 'c:\temp\error_fsp0.txt'
    filetype = 'DAT'
    TABLES
    data_tab = i_mess1.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filename = 'c:\temp\error_fs00.txt'
    filetype = 'DAT'
    TABLES
    data_tab = i_mess.
    ENDFORM. " exp_log
    FORM bdc_dynpro USING program dynpro.
    CLEAR bdcdata.
    bdcdata-program = program.
    bdcdata-dynpro = dynpro.
    bdcdata-dynbegin = 'X'.
    APPEND bdcdata.
    ENDFORM. "BDC_DYNPRO
    FORM bdc_field USING fnam fval.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
    ENDFORM. "BDC_Field
    Rewards points.
    Rgds,
    P.Nag

  • How to clear GL in FBL3N

    Hi,
    How to clear a GL account which shows open in FBL3N. Which T Code to use ???
    Regards,
    Moderator: Please, avoid asking basic questions and use available SAP sources before posting new thread

    Dear,
    To clear GL exclusively, use transaction F-03...
    Regards,
    Chintan Joshi

Maybe you are looking for

  • Single MDB on a clustered JMS queues(2)

    I have 2 JMS servers in a cluster and each server has a JMS queue, which forms the distributed destination. Now I need a MDB to listen on both these queues. Is it possible? Thanks -Ankur

  • Convert PLSQL to T-SQL

    Hi! Does anyone know a good conversion tool to convert PLSQL to T-SQL? I am working with Oracle 11gR1 and MS SQL Server 2005. I would like to convert the existing procedures, functions, packages etc. to T-SQL. Thanks in advance for your help!

  • Intensity Pro not recognized within CS5.0.3

    Had to format the drive. Adobe CS 5 Production Premium Windows 7 64bit Quad-core 12gb ram 2 raid 0 + system drive All adobe software is up to date. All physical connections checked and re-checked. Using composite from a VCR. Installed software for In

  • Spotlight messed up - weird behaviour

    I was working on someone elses macbook pro today - leopard, not sure which version- sorry.(can you say iteration in the context of 10.5.6 to 10.5.7, incidentaly?) Anyway the search facility was really messed up. We had a folder of over a hundred file

  • HT201407 unable to activate after restore and update

    I decided to update the iOS on my wife's 3GS phone but was unable to activate the phone again afterward. This phone was originally locked to a French provider FSR and the phone still thinks it is associated with that provider somehow. Contacted Apple