Nowhere can input reason code in function BAPI_ACC_DOCUMENT_POST

Hi.....
Field Reason code is a required field for a G/L account,But it seems that nowhere can input it in function BAPI_ACC_DOCUMENT_POST's table parameter ACCOUNTGL.Thus I can use this function to create Accounting Document .....How can I solve it ? 
Thanks

Why do you put something in the 'extension1' segment ?
What sort of doc do u post ?
Message was edited by: Erwan LE BRUN

Similar Messages

  • Validation at line item level for F-32 to input Reason code

    Hi Gurus,
    I would like to write a validation / substitution for F-32 transaction code where in the Reason code field need to be mandatory field (With out input in to this field value the user should not come out of the transaction)
    Please guide me how to write validation with out user exit
    Thanks

    Hi Suresh,
    I guess the idea of MEENAKSH is good, perhaps you have an error in the Tcode, because in table BKPF the Tcode stored is FB1D and not F-32  :
    So put the following in GGB0 and check again :
    Prerequisite :
    BKPF-TCODE = FB1D
    Check :
    BSEG-RSTGR <> '  '
    Message :
    Error : Reason code required
    in the other hand, you can active a trace in GGB0 (Menu > Extras > Activate trace) to see what's the exactly the error
    So it's not a question of screen.
    Regards.

  • HT4623 Hi, my ipad 2 wont charge or start up. The scree goes like this, i plug it in, the low bttery/charging logo appears, then the apple logo appears, then my home screen appears asking for my passcode but before i can input my code the screen goes blac

    i have tried to restore it to factory settings by holding both buttons down together and connectiing to itues but the ipad is not recognised.
    thanks for any help in advance.

    try restoring see guide
    http://www.ipadforums.net/ipad-help/2987-how-put-your-ipad-into-recovery-mode.ht ml

  • Lock box  reason codes

    Dear gurus
    please advise as how we can uses reason codes with lock box file processing.
    We want to write off each individual invoice on customer open item if it is paid +/-60$.
    Can we use reason codes with lock box automatic processing, so that these +/-60$ writeoff's go to a particulat GL acct.
    Many thanks in advance.
    MSJ

    Yes you can.
    Customer and User tolerance limits, payment advice tolerance limits and reason codes
    When an incoming cash payment does not exactly pay the referenced open item(s), then the system will not be able to perform clearing without creating residual items back on the account - except when you establish tolerance limits to allow posting with a write-off of acceptable payment difference amounts.
    Reason code settings are used for description and reporting purposes, generation of specific customer correspondence letters (automatic system generation whenever this reason code is assigned to a document), and difference item write-off/dispute status assignment.

  • CUIC Agent Real-time reporting reason code

    Hi,
    In CUIC agent real time report reason code for not ready it shows 50002 or integer we have configured in ICM.
    How we can display reason code as name which we have configured in icm like tea, coffee , meeting.
    CUIC version we are using 8.5.
    Regards,
    Dinesh Joshi

    The way I got round this was creating thresholds - eg 1 = Lunch 2 = meeting etc.
    this does work, however you can't then Threshold the time on those particular texts, but at least you can see what 'state' they are in.
    let me know if it works..
    Thanks Sarah

  • Restricting Reason Codes

    Hi,
    Is there any way you can restrict reason codes for use only by supervisors in UCCX8?,
    ie they do not appear on the global reason code list for the agents, yet the supervisor can select a particular code (not visible to the agents in CAD) when required?
    Many Thanks,

    You could set up a seperate workflow for the Supervisors and put the reason codes in it the "workflow group list" leaving them out of the global list. I believe that would be the simplest way to accomplish this.

  • BAPI_ACC_DOCUMENT_POST Update reason code on BSEG

    Is the only way to update the reason code (BSEG-RSTGR) using the above bapi is by using the extension1 .
    Tnks

    I spent the last two days getting this working. It is really difficult but I got there in the end.
    In the function module BAPI_ACC_DOCUMENT_POST in routine INIT_GLOBALS the program searches for an implementation of ACC_DOCUMENT. The filter is the document type which for this BAPI is BKPFF (two letter F's).
    Later in routine CALL_BADI the methdo CHANGE is called of the implementation.
    I copied the sample code from CL_EXM_IM_ACC+DOCUMENT into my Z BADI which I wittily called ZCL_IM_ACC_DOCUMENT. As I am changing the value of a field already in ACCIT I can leave the code exactly as is.
    I then created my own structure (has to be all character fields regardless of the target field type in ACCIT), and filled up the extension table as follows just before calling the BAPI.
    DATA: lt_extension2     TYPE STANDARD TABLE OF bapiparex
                                       WITH HEADER LINE,
              ls_extension2     TYPE zzbank_bapi_structure.
    CLEAR ls_extension2.
            ls_extension2-posnr = 2.                  "Second Item
            ls_extension2-rebzg = gt_details-vbeln_vf."Invoice
            ls_extension2-rebzt = 'Z'.                "It's an invoice
            ls_extension2-rebzz = 1.                  "Item
            SELECT SINGLE gjahr FROM bkpf
              INTO ls_extension2-rebzj
              WHERE bukrs = gt_header-bukrs
              AND   belnr = gt_details-vbeln_vf.
    The BAPI chooses ir's own posting keys, which we do not like
            IF gt_details-shkzg = 'S'."Normal
              ls_extension2-bschl = '15'."Incoming Customer Payment
            ELSE.
              ls_extension2-bschl = '05'."Outgoing Customer Payment
            ENDIF.
            lt_extension2-structure = 'ZZBANK_BAPI_STRUCTURE'.
            lt_extension2-valuepart1 = ls_extension2.
            APPEND lt_extension2.
    The trick with BADIS is not just to activate the class but also the implemenation. I forget the second part every time.
    Hope this helps.
    Cheersy Cheers
    Paul

  • Reason Code Functionality

    Dear All,
    Experts.
    I want to know about Reason Code. What is practical functionality of reason code ?
    Here is my understanding as follows :-
    Suppose I am posting one bill of Rs. 12,000/- against that I am receiving Rs. 14,000/-.
    So if I use reason code,  will my entry & effect like this ?
    Bank A/c Dr 14,000
    customer A/c Cr 12,000
    Exchange Gain A/c Cr 2,000
    ( Being exchange gain of Rs 2,000/- )
    For this functionality Reason code is used ?
    1 ) In addition to this will Rs 2,000 generate one more residual line item in customer account ? 2 ) or account will be clear?
    3 ) Where I can link the reason codes ? 4 ) It is at customer master level or document level  5 ) Reason code is Manual assignment or Automatic assignment ?
    Experts your help on this will be great.
    Regards,
    Sharvari Joshi.

    Dear,
    Chintan.
    Thank you again for focusing on my questions. Can I link the reason code to customer while taking the payment from F-28 ? 
    Or at any other T.code I need to use for using Reason Code ?
    1) Define reasons Codes
    2) Define accounts for payment differences
    3) Define std reason code for clearing w/payment advice notes.
    4) Define Reason code for conversion version
    5) Define conversion of payment differences reason code.
    are the only steps to configure reason codes ?
    Your help on this will be great.
    Regards,
    Sharvari Joshi.

  • Hello, all of a sudden without apparent reason I can't get "MAIL" to function. It starts up but I get the color wheel turning like crazy and never ends. I've tried restarting and I still can't get it to work. PLEASE HEEELP!?

    hello, all of a sudden without apparent reason I can't get "MAIL" to function. It starts up but I get the color wheel turning like crazy and never ends. I've tried restarting and I still can't get it to work. PLEASE HEEELP!?

    In the Desktop Manager > Sync > Configuration, make sure the calendar options are set to override Outlook.
    Set it also to notify you of the changes, so you will have to approve any changes.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    read this
    https://discussions.apple.com/message/20429789#20429789

  • Reason code auto input after auto payment transaction (t-code:F110)

    Hi Experts,
    For line item of G/L account 190810, reason code(001) will be auto input during auto payment transaction.
    But for GL account 190841, reason code is not auto input.
    The posting process are all the same.
    Please help to advise how should we do the configuration setting for the GL a/c 190841
    waiting for your reply,
    Regards

    solved by own

  • Function Db6pmcf which cannot be accessed.Reason code:5 error in DB6COCKPIT

    Hi,
    We have 4.6C systems running on AIX 5.3 and DB2. recently I updated the kernel from patch level 2225 to 2307. (Both OS and DB are 64 bit) The DEV and QAS systems were running successfully but I got a problem in PRd systems. I am having error in DB6COCKPIT. I am pasting the exact error here.
    -f 14 -p  0 -c U
    External program terminated with errors
    CLI error
    ERRORMESSAGE: Error -444 in dmdb6rd5.c(752):
    DB6CliFetch(): [IBM][CLI Driver][DB2/AIX64] SQL0444N  Routine
    "DB6PMCF" (specific name "SQL070920161003900") is implemented with
    code in library or path "/usr/sap/PRD/SYS/exe/run/db6pmudf", function
    "Db6pmcf" which cannot be accessed.  Reason code: "5".
    SQLSTATE=42724
    External program terminated with exit code 31
    -f 17 -p  0 -c U -o env
    External program terminated with errors
    CLI error
    ERRORMESSAGE: Error -444 in dmdb6rd5.c(438):
    DB6CliFetch(): [IBM][CLI Driver][DB2/AIX64] SQL0444N  Routine
    "DB6PM_LST" (specific name "SQL070920161002400") is implemented with
    code in library or path "...p/PRD/SYS/exe/run/db6pmudf", function
    "Db6pm_lst" which cannot be accessed.  Reason code: "5".
    SQLSTATE=42724
    External program terminated with exit code 31
    Please reply me back ASAP. This is very urgent.

    This issue was solved.

  • Reason Code Functionality in document level

    Dear Sir,
    How to bring Reason codes functionality at document level while posting Debit Note or Credit Note in MIRO. 
    Syam

    Hello Syam,
    What Reason code are you referring to  ? Due you mean to say blocking reason ?
    regards
    pbb

  • How can I pass Recordsets as input parameter to a Function ?

    Hi Gurus,
    I want to create a function that receive recordsets as input parameter also returns recordsets as output.
    I have a requirement to do stock taking for all order items of one Order number in one single query execution (to avoid row by row basis).
    From the post in the forum I know that a function can return recordsets / query result using REF CURSOR or pipelined table function.
    My question is : how to pass the recordsets as input parameter to that function ?
    (because I could have 75 rows item in one order number)
    Below is the DDL and the query :
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    insert into stocks values('P001', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P001', 'WH002', '01-dec-2006', 50)
    insert into stocks values('P001', 'WH002', '01-jan-2007', 50 )
    insert into stocks values('P001', 'WH001', '01-Mar-2007', 150)
    insert into stocks values('P002', 'WH003', '01-dec-2006', 25)
    insert into stocks values('P002', 'WH003', '15-Jan-2007', 50)
    insert into stocks values('P002', 'WH003', '01-Mar-2007', 75)
    insert into stocks values('P003', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P003', 'WH002', '15-Jan-2007', 40)
    insert into stocks values('P003', 'WH003', '01-Mar-2007', 50)
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    The query for stock taking :
    select product,warehouse,expireddate, least(qty_available-(sm - qty_ord),qty_available) qty
    from ( select product,warehouse,expireddate,qty_available,qty_ord, sum(qty_available) over(partition by product order by s.product,expireddate,decode(warehouse,priority_wh,0,1),warehouse ) sm
    from stocks s,order_detail o
    where s.product = o.product_ord order by s.product,expireddate,decode(warehouse,priority_wh,0,1) )
    where (sm - qty_ord) < qty_available

    Hi,
    This my requirement :
    I have (simplified)Order_Detail as below :
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    Then I want to do stock taking from my STOCK table (described on my first post on this thread)
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    The rule is : The stok taking is on First In First Out basis, on expireddate.
    And I want to do it in single query.
    I want to make this a Function / Stored Procedure so that other transaction can also make use of this query.
    That is why I need to pass the 3 rows oy mr Order_Detail above, do the query, and return the result.
    Then INSERT the result into ORDER_DETAIL_PER_EXPIRED_DATE table.
    I hope this clear my requirement, is this possible ?
    Thank you,
    xtanto

  • Can you turn off Reason Code requirement in FF5.2?

    Is it possible to turn off the functionality that requires reason codes to be entered in FF 5.2?  We would rather make the text field below the reason code a requirement but for free text, rather than trying to define strict Reason Codes.
    Thanks,
    Sandy

    Thank you for your response.  I haven't been able to find a way to turn it off yet, but thought someone else might have found a way.

Maybe you are looking for

  • Printer no longer works in the re-install of Leopard....

    ....here are some screenshots of the problem I suddenly ran into after a re-install of Leopard: http://www.PictureTrail.com/gid22335136 I've tried everything that I can think of and still not able to print anything. The printer was operating fine pri

  • Objects preivew fine but print incorrectly--same problem when exporting

    I had a PDF that was created in AutoCAD that I then took into Illustrator. I made all of my changes, went to print, and noticed that for some reason random lines would drop off of my printout, even though they appeared fine in the preview menu! And t

  • Old PPC games on macbook?

    I want to play monkey island so bad and found that it is offered as freeware. Actually the original as well as the second one. I want to play them. Bad. However, the binary whatever is in PPC. It won't load and says this application isn't supported f

  • BackGround Job's Spool Request is having "Waiting" "Frontend unavailable"

    Hello Friends, I am facing one problem related to Spool Request, which is generated through Scheduled Background Jobs (scheduled by funcional people). The Background Job is having status "completed" when analyzing it. But, its associated Spool Reques

  • Question about CO and CA operator

    Hi, I have a field for which I want to detect a case where if it is null or contains any alphabhet from a to z. For this I have defined a constant:   CONSTANTS: c_valid(26) TYPE c VALUE   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'. But I get confused in using CO a