BAPI_PRODORDCONF_CREATE_TT error in documents generated

Hi all,
While doing CO11N for a production order and doing goods movement I am
able to confirm operations and goods movements occur sucessfully.In Doc
info of material document I can see the T code which created the
material document is CO11N.
But when I use BAPI: BAPI_PRODORDCONF_CREATE_TT to do confirmation and
goods movement, material document which gets created have T code as
COGI in Doc info.
Material documents generated through BAPI should have T code as CO11N
in Doc. info.
Moreover, table AFWI is getting updated for eg. with MBLNR=0000000536
and MJAHR=000 and sometimes as MBLNR=4900011573 and MJAHR= 2011!!
Why MBLNR=0000000536 and MJAHR=000? Is BAPI taking some time lag in
updating this table??
Kindly help.
Regards

Hi,
goods movements in BAPI are always posted in update mode, explained in note 208477. Due to technical reasons alll goods movements posted in update mode, get tcode COGI. See FAQ note 540392 see the answer of question 10 and 13.
For separated goods movements, that is, goods movements that are
posted in the update program or via requests, only one transaction
code can be specified due to technical reasons. This is always COGI.
Therefore, this user must also have an authorization for COGI;
otherwise the goods movements are processed incorrectly.
Since the original transaction code (COHV, CO12, and so on) is no
longer available when you post the separated goods movements
(posting in the update program in a separate process) due to
technical reasons, the system uses transaction code COGI instead by
default.  Therefore, it is necessary that you also set up
BR Sabine

Similar Messages

  • Error : Document 6000019 saved (no accounting document generated)

    Hi Friends,
    While Iam Releasing Billing Document To Accounting It Is Throwing Error Message
    " Document 6000019 saved (no accounting document generated) " Where Is The Problem Please Let Me Know
    Regards
    Udaya Bhasker Bandi

    Check in VF03 -> Menu Option Edit -> Log.

  • Intercompany billing vf01 error no accounting document generated

    Hi,
    I face the problem while saving intercompany billing VF01 warning message no accounting document generated,
    when I manually realise biling VF02 it posted without giving any error message.
    I also check billing doc. type VOFA I doesnt check posting block field.
    Pls suggest what may be the reason.
    Thanks & Regards
    Ashish

    Dear Friend,
    To resolve the error, you can analyze Account determination in the billing document. Process:
    Goto T.Code: VF02 & Enter Invoice number
    Next (On the top most strip) goto Environment
    Next (Select Environment) go to Account determination
    Next (In Account Determination) select Revenue Account Determination (first option)
    This will list all the condition types in the Billing document & analyze each condition & check for which G/L accounts is not determined.
    Possible errors:
    1. VKOA not maintained for required combination
    Solution: Maintain the combination in VKOA.
    2. Account Assignment of Customer / material not maintained in Customer / Material Master (If maintained in combination in VKOA).
    Solution:
    Option 1 (Standard solution):
    step 1: Cancel Billing Document --> Reverse PGI --> cancel Delivery --> Cancel Sales Order
    step 2: Maintain Customer master / Material Master correctly.
    step 3: Recreate sales Order --> Delivery --> PGI --> Invoicing.
    Option 2:
    Force the Account Assignment Group of Customer / Material through Debug in change mode of Billing document, which will release Billing Document to Accounting.
    3. Account Key not maintained in Pricing Procedure:
    Impact: This may create accounting document, but if condition type, which are to be posted to account, but do not have account key maintained in pricing procedure, it will not be post the relevant condition type to G/L account.
    Regards
    AJIT K SINGH

  • Error in VF01 Document 8690000005 saved (no accounting document generated)

    Hi,
    I got the bellow error message when doing Billing (VF01) "Document 8690000005 saved (no accounting document generated)"
    Can any one tell me the reason.
    Thanks & Regards,
    Chandra

    vf02
    menu->billing doc->release to accounting.
    acounting doc will be generated , if not proving the error you are getting(exact error decrption with number)
    Ranjith

  • Jwsc Ant task generates [ERROR] - A document style operation must not have

    If the wsdlc Ant task is run on a WSDL file to generate the JWSC file and subsequently the jwsc task is run an error gets generated:
    [ERROR] - A document style operation must not have a non header INOUT or OUT Parameter.

    If the wsdlc Ant task is run on a WSDL file to generate the JWSC file and subsequently the jwsc task is run an error gets generated:
    [ERROR] - A document style operation must not have a non header INOUT or OUT Parameter.

  • Excise Invoice creation error -Billing document does not exists

    Dear Experts,
    I have created supplementary sales order, billing with refernece through sales order by VF01.
    Now I want to create Excise Invoice but system gives error Billing Document does not exists
    I have checked billing document in VBRK table & it is showing in table.
    My item categroy is L2N -and set it to C
    I have assigned Billing type under Outgoing excise invoice ->Assign billing type to delivery type still my excise invoice is not generating.
    Pl. guide me.
    Thanks
    Trupti

    Resolved my problem.
    Actually in Billing item categroy if you put SD Doc. Catg. as M you can do excise invoice even if you have not created the
    outbound delivery.
    So cycle will be Supplementary Sales Order->VF01 with ref. to SO->J1IIN -Excise invoice creation.
    Thanks to all.
    Trupti.

  • Error occurred while generating PDF. Reason: ERROR_PDF_CONVERSION

    I get an error generating my PDF whenever someone's name has a special character's in their name such as accents and diacritics.
    Is this a bug or how do I properly set the charset for the <cfhtmltopdf> tag. I didn't have this issue with Coldfusion 9 and cfdocument. Any help in this regard would be much appreciated.
    version: Coldfusion 11 Update 3 on Windows Server 2008 R2 on IIS 7.5
    SEE STACK TRACE BELOW
    coldfusion.document.webkit.PDFgErrorHandler$ServiceManagerConversionException: Error occurred while generating PDF. at coldfusion.document.webkit.PDFgErrorHandler.handleConversionError(PDFgErrorHandler.java:1 88) at coldfusion.document.webkit.HttpPDFRequestHandler.requestPDFGeneration(HttpPDFRequestHandl er.java:113) at coldfusion.tagext.lang.HtmlToPdfTag.processPDFgRequest(HtmlToPdfTag.java:1331) at coldfusion.tagext.lang.HtmlToPdfTag.handlePDFgConversionRequest(HtmlToPdfTag.java:1466) at coldfusion.tagext.lang.HtmlToPdfTag.convertToPDF(HtmlToPdfTag.java:1413) at coldfusion.tagext.lang.HtmlToPdfTag.doEndTag(HtmlToPdfTag.java:1551) at cfcfhtmltopdf_createPDF2ecfm2090701148.runPage(c:\inetpub\wwwroot\myapp.com\includes\docs \cfhtmltopdf_createPDF.cfm:25) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2986) at cfmethods2ecfm1148258034$funcSAVEPROXY.runFunction(c:\inetpub\wwwroot\myapp.com\cfc\docs\ methods.cfm:472) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2424) at cfmethods2ecfm1658643382$funcPROCESSSTEP.runFunction(c:\inetpub\wwwroot\myapp.com\cfc\mem berResults\methods.cfm:377) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:648) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:457) at coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:251) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:480) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:142) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:156) at coldfusion.xml.rpc.CFCServlet.doPost(CFCServlet.java:348) at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source)

    Does anyone have any suggestions?
    I've tried:
    adding charset meta tags to the top of my outputted HTML contents that comprise the PDF
    I've tried adding the <cfprocessingdirective pageencoding="utf-8" /> but doesn't seem to help.
    #encodeForHTML(pdfHTMLVariable)# and even just tried encoding the individual variables that contained the special characters but that didn't seem to help anything as encoding them still won't work I'm assuming if the Charset is mis-matched.
    Does the <cfprocessingdirective pageencoding="utf-8"> just have to be within the CFC method or does it need to be within the <cfhtmltopdf> tag?
    Any input or things to try would be much appreciated as this is a regression for our app.
    **As a side note: I would still just use CFDOCUMENT, but there was a different issue where the images were outputting a RED X where the image is supposed to be. Which from what I have been able to uncover has something to do with the server certificate not being trusted or something. However, our SSL provider is listed in the ROOT Certificate Authorities so not sure what's going on with that. Those images were being output with cfimage action of writeToBrowser .
    I'd really like to fix the encoding issue does this have anything to do with language packs or missing languages of that sort? My app displays the page just fine when the UTF-8 charset meta tag is set.

  • No Accounting Document generated

    Dear Experts,
    For some quality testings, i did not maintain Company Code / FI View of the newly created Customer, deliberately.
    I posted a Excise Invoice, during which i got a WARNING message "Document 9000185 saved (no accounting document generated)". The message ID displayed on my screen was VF050
    The above was a warning message, but i wish to change this from a WARNING Message to an ERROR Message. So that the Excise Invoice is not saved unless FI View is maintained for the Customer
    please help me in changing how do i find the origin path of this message & change from Warning to an Error.

    In fact, you should prevent this before saving the billing document itself which can be achieved either adding this logic in your existing routine or go for billing user exits like USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)  or  USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)
    On the other hand, if you are specific to excise invoice, you can try with any of the following excise exits.
    a)  J_1I7_USEREXIT_EXCISE_AFT_SAVE  or
    b)  J_1I7_USEREXIT_EXINV_ADDL_DATA
    thanks
    G. Lakshmipathi

  • No accounting document generated (foreign trade data incomplete)

    hello all,
    I meet a problem like this:
    Sales order: 1001
    delivery: 2001
    Invoice: 3001
    another invoice 9001 has created for cancel 3001.
    when we saveed 9001, no accounting document generated, but we were not cognizant of it. and we did VF09 reverse PGI, VL02 delete delivery 2001.
    now the problem is: when we try to release invoice 9001 to accounting, a message occurs "Document 9001 has been saved (foreign trade data incomplete)"
    it seems need data of delivery 2001, but it has been deleted.
    can anyone please give me suggestions? thanks!
    Document 9001 has been saved (foreign trade data incomplete)
        Message no. VF 072
    Diagnosis
        The billing document you have edited contains foreign trade data. These
        are however not complete.
        This means that the document cannot be transferred to accounting (FI).
    System Response
        The system issues a message.
    Procedure
        Maintain the incomplete foreign trade data. Then you can transfer the
        billing document to accounting (FI).

    Hai Laxmipathi,
    As the issue addressed by Mu_ying, exactly even I have encountered the same error. I am working on Export Scenario where in created a billing doc and saved (without foreign trade data) but later its cancelled and subsequent delivery doc is also cancelled but when i release the cancelled billing doc error pops up as "foreign data incomplete" but doc no. is saved, as mentioned by Mr. Mu_ying mail.
    However, in my case when i try change in VF02 item level for foreign trade/customs tab (change for the cancelled doc) the radio buttons for System is RED, and I am unable to enter the data as all the fields are greyed out, due to this reports figures are incorrect.  Hope u r able to get what i have mentioned.
    i/p's will be of great help.

  • No accounting document generated from SD

    Dear Friends,
    When I am creating Billing document from SD using VF01 tranacstion, I am getting error message that "Document 90000028 saved (no accounting document generated)", but I had activated all config between IS-U FI-CA and SD.
    I hope the billing document is getting generated, but it's not posting and creating the accounting document in FICA side.

    Hi ,
    There might be 2 reasons why the SD document doesnt post to FICA .
    1. Maintainence of relevant configuration under the node - SPRO - Financial accounting New - Contract accounting receivable and payable - Integration - Sales and distribution .
    Hope you have maintained all the relevant configs. under the node ( 3 in no's ) .
    2. Secondly if there is an error while determining the accounts for posting the billing documents , you can view the same through document details , where in you can view the documents that are being generated for the same .
    Kindly check the 2 areas and revert back if the problem still persists .
    Cheers ,
    Dewang

  • No accounting document generated for SD billing document

    Hello,
    We had a billing document with status "C Posting document has been created" but actually there was no accounting document generated.
    When we try to release the billing document again using VF02, the system displays the message "The document has already been passed on to accounting".
    What is the problem?
    Thanks in advance!

    longlost,
    Accouting documents not generated,
    1. VF02 Mode Click"Release o Acounting" the Accoutning documents not generated.
    2. If yes, then OK Else
    3. Check Whether you have assigned Accounting keys to the relevent condition types.
    4. Check Account assignment Procedure VKOA and check G/L account has been assigned.
    5. If error found correct it
    If you say "The document has already been passed on to accounting" then it is automatic
    Check with FI Consultant whether Accounting entries has been posted with reference to customer and Invoice.
    Fi consultant will run F-28 - Post incoming payments or F-26 Payment past entry after that it will come to cleared status.
    Regards
    Sathya

  • No accounting document generated during billing

    Hi,
    I am getting the error : No Accounting document generated during billing. When I went thru the steps from Envt ---> Acc.determ.analysis- -> Revenue accounts, I found that Acct Assignment group has 'Exclamation' mark.
    Suggest a way how to resolve it.
    Thanks in advance.
    regds,
    Umesh

    Hi,
    Good afternoon and greetings,
    Please check in the Tcode VKOA, the account assignment is complete for the ERL key...This can be dependant on the following 3 main combinations.
    1. customer group, material group and accountkey
    2. customer group and accountkey
    3. material group and accountkey
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • Please Help!! Error in document : BKPFF $ DEVCLNT

    Hi All Gurus,
    I am trying to use BAPI - BAPI_ACC_DOCUMENT_POST to post to FB50.
    I am using the below paramaters -
    DOCUMENTHEADER         
    TABLES
           ACCOUNTGL              
           CURRENCYAMOUNT
    RETURN.
    But I am getting the error -   Error in document : BKPFF $ DEVCLNT. Can someone please help me with this. I have been breaking my head over this. Dont know what is going wrong!                     .
    Thanks, Nina.

    Thanks for all your help, Aaron.
    *T Y P E S *
    TYPES: BEGIN OF t_indata,
                   t_ddate(8) TYPE c,
                   t_ref(17) TYPE c,
                   t_dbank(8) TYPE c,
                   t_disno(4) TYPE c,
                   t_glacnt(10) TYPE c,
                   t_descrip(50) TYPE c,
                   t_damt(13) TYPE c,
                   t_jobid(8) TYPE c,
                   t_rexpen(8) TYPE c,
                   t_tperiod(8) TYPE c,
                   t_tnumb(8) TYPE c,
                   t_ctrans(8) TYPE c,
                   t_ccenter(10) TYPE c,
           END OF t_indata.
    TYPES: BEGIN OF t_error,
                   t_ddate(8) TYPE c,
                   t_ref(17) TYPE c,
                   t_dbank(8) TYPE c,
                   t_disno(4) TYPE c,
                   t_glacnt(10) TYPE c,
                   t_descrip(50) TYPE c,
                   t_damt(13) TYPE c,
                   t_jobid(8) TYPE c,
                   t_rexpen(8) TYPE c,
                   t_tperiod(8) TYPE c,
                   t_tnumb(8) TYPE c,
                   t_ctrans(8) TYPE c,
                   t_ccenter(10) TYPE c,
                   message(100)     type c,  " Error message
          END OF t_error.
    *W O R K A R E A S *
    DATA: w_indata TYPE t_indata,
          w_error TYPE t_error.
    *I N T E R N A L T A B L E S *
    DATA: i_indata TYPE STANDARD TABLE OF t_indata WITH HEADER LINE,
          i_error TYPE STANDARD TABLE OF t_error WITH HEADER LINE.
    DATA: i_acgl LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
          i_currency LIKE BAPIACCR09 OCCURS 0 WITH HEADER LINE,
          i_return LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    *V A R I A B L E S *
    DATA: v_file       TYPE string,
          v_string(1022),                " To read data from file
          v_ddate(10)  TYPE c,
          v_pdate(10)  TYPE c,
          v_dcre       type wrbtr,            " Dollar Amount credit conv
          v_ddeb       TYPE wrbtr,           " Dollar Amount debit conv
          v_lines TYPE i,                   " used for format message
          v_msg(100),                        " used for Error message
          v_ind   TYPE i,
          v_index type i.
    DATA: V_DOCHEADER LIKE BAPIACHE09.
         V_OBJ_TYPE LIKE BAPIACHE09-OBJ_TYPE,
         V_OBJ_KEY LIKE BAPIACHE09-OBJ_KEY,
         V_OBJ_SYS LIKE BAPIACHE09-OBJ_SYS.
    *C O N S T A N T S *
    CONSTANTS: c_creacnt TYPE string VALUE '111444',  " Liability account
               c_del type x value '09',               " for hash delimited file
               c_fslash VALUE '\',                    " Used for Forward slash
               c_bslash VALUE '/'.                    " Used for backward slash
    *S E L E C T I O N S C R E E N
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF BLOCK first WITH FRAME TITLE text-001.
    PARAMETERS: p_fname LIKE rlgrap-filename OBLIGATORY DEFAULT 'C:\CorpCard.txt',  " File name
                rd_pserv RADIOBUTTON GROUP radi DEFAULT 'X',                    " Pres. Server
                rd_aserv RADIOBUTTON GROUP radi.                                " App.  Server
    Error file
    parameters: p_efile type rlgrap-filename default
    '/tmp/CorpCard_error'.
    SELECTION-SCREEN END OF BLOCK first.
    At selection-screen
    Check which file is selected
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
    Perform to get the current value of the selection screen
      PERFORM get_current_value.
      IF rd_aserv = 'X'.
        MESSAGE i398 WITH 'Can not browse unix directories'(030).
      ELSE.
      F4 help for presentation server file name
        PERFORM get_local_file_name USING 'P_FNAME' CHANGING p_fname.
      ENDIF.
    AT SELECTION-SCREEN.
    perform to validate input file
      PERFORM validate_filename USING p_fname.
    S T A R T O F S E L E C T I O N *
    START-OF-SELECTION.
    Presentation File upload
      if rd_pserv = 'X'.
        perform upload_pre_file.
      endif.
    Unix File Upload
      if rd_aserv = 'X'.
        perform upload_unix_file.
      endif.
    Perform to populate the internal table to the bapi.
    PERFORM populate_debit.
    Perform to populate the internal table to the bapi.
    PERFORM populate_credit.
    Perform to process the input data and post to FB50
      PERFORM post_data.
    E N D O F S E L E C T I O N *
    END-OF-SELECTION.
    *if not i_error[] is initial.
    perform to generate error file and send to application server
    perform generate_error_report.
    endif.
    *&      Form  get_current_value
    FORM get_current_value .
    Local internal table for screen fields
      DATA: BEGIN OF i_dynpfields OCCURS 0.
              INCLUDE STRUCTURE dynpread.
      DATA: END OF i_dynpfields.
      CLEAR   i_dynpfields.
      REFRESH i_dynpfields.
      i_dynpfields-fieldname = 'RD_ASERV'.
      APPEND i_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = sy-cprog
          dynumb               = sy-dynnr
        TABLES
          dynpfields           = i_dynpfields
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          OTHERS               = 10.
      IF sy-subrc <> 0.
        MESSAGE i398  WITH 'Unbale to read the selection screen values'(031)
      ELSE.
        READ TABLE i_dynpfields INDEX 1.
        IF sy-subrc = 0.
          MOVE i_dynpfields-fieldvalue TO rd_aserv.
        ENDIF.
      ENDIF.
    ENDFORM.                    " get_current_value
    *&      Form  get_local_file_name
    FORM get_local_file_name USING p_file
                          CHANGING p_cfile.
    Local variable
      DATA: l_fname LIKE ibipparms-path,   " File name
            v_repid LIKE sy-repid.
      l_fname = p_file.
      v_repid = sy-repid.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = v_repid
          dynpro_number = sy-dynnr
          field_name    = p_file
        IMPORTING
          file_name     = l_fname
        EXCEPTIONS
          OTHERS        = 1.
      IF sy-subrc = 0.
        p_cfile = l_fname.
      ENDIF.
    ENDFORM.                    " get_local_file_name
    *&      Form  validate_filename
    FORM validate_filename  USING p_fname TYPE any.
      IF rd_aserv = 'X'.
    Local variable for file length
        DATA : l_len TYPE i.
        l_len = STRLEN( p_fname ).
        IF p_fname CA space.
          IF sy-fdpos < l_len.
            MESSAGE e398 WITH 'File name should not contain spaces'(032).
          ENDIF.
        ENDIF.
        IF p_fname CA c_fslash.
          MESSAGE e398 WITH 'File name should not contain \'(033).
        ENDIF.
        IF p_fname NA c_bslash. " No directory path given
          MESSAGE w398 WITH 'File will be created in home directory'(034).
        ENDIF.
      ENDIF.
      IF p_fname0(1) = c_fslash AND p_fname1 = space.
        MESSAGE e398 WITH 'File name should not contain only /'(035).
      ENDIF.
    ENDFORM.                    " validate_filename
    *&      Form  upload_pre_file
    FORM upload_pre_file.
    v_file = p_fname.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = v_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
          dat_mode                = ' '
        TABLES
          data_tab                = i_indata
        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 e398 WITH 'Unable to upload the file'(002).
      ENDIF.
    ENDFORM.                    " upload_pre_file
    *&      Form  upload_unix_file
    FORM upload_unix_file .
      open dataset p_fname for input in text mode encoding default.
      if sy-subrc <> 0.
        message i398 with 'File open error(012)'(012) p_fname.
        stop.
      else.
        do.
          clear: v_string.
          read dataset p_fname into v_string.
          case sy-subrc.
            when 0.
              split v_string at c_del
                   into  i_indata-t_glacnt
                         i_indata-t_descrip
                         i_indata-t_damt
                         i_indata-t_ccenter.
                append i_indata.
              clear i_indata.
            when 4.
              exit.
            when 8.
              message i398 with 'Unable to Read the File'(008) p_fname.
              stop.
          endcase.
        enddo.
        close dataset p_fname.
      endif.
    ENDFORM.                    " upload_unix_file
    *&      Form  post_data
    FORM post_data .
    V_DOCHEADER-BUS_ACT = 'RFBU'.
    *V_DOCHEADER-OBJ_TYPE = 'BKPF'.
    *V_DOCHEADER-OBJ_KEY = '$'.
    V_DOCHEADER-USERNAME = 'VSAWANT'.
    V_DOCHEADER-COMP_CODE = 'BP01'.
    V_DOCHEADER-DOC_DATE = SY-DATUM.
    V_DOCHEADER-PSTNG_DATE = SY-DATUM.
    *V_DOCHEADER-FIC_PERIOD = '00'.
    V_DOCHEADER-HEADER_TXT = 'Amex Card Upload'.
    V_DOCHEADER-DOC_TYPE = 'SA'.
       CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
         EXPORTING
           DOCUMENTHEADER          = V_DOCHEADER
         CUSTOMERCPD             =
         CONTRACTHEADER          =
       IMPORTING
          OBJ_TYPE                = V_DOCHEADER-OBJ_TYPE
          OBJ_KEY                 = V_DOCHEADER-OBJ_KEY
          OBJ_SYS                 = V_DOCHEADER-OBJ_SYS
         TABLES
           ACCOUNTGL               = i_acgl
         ACCOUNTRECEIVABLE       =
         ACCOUNTPAYABLE          =
         ACCOUNTTAX              =
           CURRENCYAMOUNT          = i_currency
         CRITERIA                =
         VALUEFIELD              =
         EXTENSION1              =
           RETURN                  = i_return.
         PAYMENTCARD             =
         CONTRACTITEM            =
         EXTENSION2              =
         REALESTATE              =          .
    refresh i_acgl.
    refresh i_currency.
    clear i_acgl.
    clear i_currency.
    if V_DOCHEADER is initial.
      i_error[] =  i_indata[] .
        read table i_return index 1.
        i_error-message = i_return-message.
        append i_error.
        clear  i_error.
    else.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        wait up to 3 seconds.
    endif.
    ENDFORM.                    " post_data
    *&      Form  populate_debit
    FORM populate_debit .
    DATA: l_debamt(16) type c.
    clear: v_index,
           l_debamt.
    loop at i_indata from 2.
    v_ddeb = i_indata-t_damt.
      v_dcre = v_dcre + i_indata-t_damt.
      v_index = v_index + 1.
        i_acgl-ITEMNO_ACC = v_index.
        i_acgl-GL_ACCOUNT = i_indata-t_glacnt.
        i_acgl-ITEM_TEXT = i_indata-t_descrip.
        i_acgl-DOC_TYPE = 'SA'.
        i_acgl-COMP_CODE = 'BP01'.
        i_acgl-COSTCENTER = i_indata-t_ccenter.
        i_acgl-DE_CRE_IND = 'S'.
        append i_acgl.
        clear i_acgl.
       write v_ddeb to l_debamt currency 'USD'.
        i_currency-ITEMNO_ACC = v_index.
        i_currency-CURRENCY = 'USD'.
        i_currency-AMT_DOCCUR = i_indata-t_damt.
        append i_currency.
        clear i_currency.
       clear: v_ddeb.
    endloop.
    ENDFORM.                    " populate_debit
    *&      Form  populate_credit
    FORM populate_credit .
    DATA: l_creamt(16) type c.
    clear: l_creamt.
      v_index = v_index + 1.
        i_acgl-ITEMNO_ACC = v_index.
        i_acgl-GL_ACCOUNT = c_creacnt.
       i_acgl-ITEM_TEXT = .
        i_acgl-DOC_TYPE = 'SA'.
        i_acgl-COMP_CODE = 'BP01'.
        i_acgl-DE_CRE_IND = 'H'.
        append i_acgl.
        clear: i_acgl.
       write v_dcre to l_creamt currency 'USD'.
        i_currency-ITEMNO_ACC = v_index.
        i_currency-CURRENCY = 'USD'.
        i_currency-AMT_DOCCUR = v_dcre.
        append i_currency.
        clear: i_currency.
        clear: v_index.
    ENDFORM.                    " populate_credit
    *&      Form  generate_error_report
    FORM generate_error_report .
    data: credit(16) type c.
    WRITE :/1 'Title: Corporate Card Upload'(006),
             / 'Program:'(007), sy-repid,
             /  'Date:'(008), SY-DATUM.
      skip 1.
      uline:/(200).
      format color col_heading on.
      write:/(1) sy-vline,
             (8) 'Posting Date'(020),
             (1) sy-vline,
             (12) 'GL Account'(021),
             (1) sy-vline,
             (17) 'Description'(022),
             (1) sy-vline,
             (17) 'Dollar Amount'(023),
             (1) sy-vline,
             (17) 'Cost Center'(024),
             (1) sy-vline,
             (100) 'Error/Success Message'(028),
             (1) sy-vline.
      uline:/(200).
      format color off.
      write:/(1) sy-vline,
              (8) sy-datum,
              (1) sy-vline,
              (12) '113000',
              (1) sy-vline,
              (17) 'Clearing Account',
              (1) sy-vline,
              (17) v_dcre,
              (1) sy-vline,
              (100) i_error-message,
              (1) sy-vline.
      uline:/(200).
      loop at i_error from 2.
        write:/(1) sy-vline,
               (8) sy-datum,
               (1) sy-vline,
               (12) i_error-t_glacnt,
               (1) sy-vline,
               (17) i_error-t_descrip,
               (1) sy-vline,
               (17) i_error-t_damt,
               (1) sy-vline,
               (17) i_error-t_ccenter,
               (1) sy-vline,
               (100) i_error-message,
               (1) sy-vline.
      endloop.
      uline:/(200).
    clear: v_dcre.

  • VF11 reverse billing, but no FI document generated

    Our current posting period is 2008/03, the FI posting period 2008/02 has been closed.
    We create one billing document in period 02/2008, and now we'd like to reverse this billing document via t-code VF11. However, during reversal, a information message issued in the status bar: "VF050:Document & saved (no accounting document generated)".
    Then I checked all the related documents, the billing document has been reversed, but no FI document was generated. Is this normal? FI and SD now should be inconsistent.
    Has anyone got this problem before?
    Thanks a lot.

    Thanks all, but I'm still not sure whether the suggestion provided so far will help.
    More information about this issue:
    The billing document was created in last period, and corresponding FI document was generated in last period as well.
    - if the last period is NOT closed in FI, while VF11 to cancel the billing document, everything works fine: the billing document was cancelled AND the corresponding FI document was reversed.
    - if the last period is closed in FI, while VF11 to cancel the billing document, the problem happened: the billing document was cancelled, BUT the corresponding FI document did not reversed automatically. ( an information message VF050 is issued to indicate this)
    In VF11, if I input a billing date of today's date, the billing document will be canceled in current period, and the corresponding FI document is reversed in current period as well.
    My expection is: the corresponding FI document should be reversed at the same time while billing document is cancelled, otherwise FI and SD are not consistent. If the last period is closed, and "Billing Date" field is empty in VF11, should the system issue an error to provent the cancellation of the billing document?

  • Billing Saved But No Accounting Document Generated

    Hi,
    I was trying to create billing and got the message stating "Billing saved but no accounting document generated." Does anyone know why this would happen? And does anyone know what steps to take to ensure it does not occur?
    Thanks,
    Suneela.

    Hi,
    This error can be caused by many different things. You should check the following possible causes:
    - net value is zero
    - accounting assignment group does not match the GL account
    - error in payment term
    One more reason could be that the posting period is closed. In that case, you need to go to the header details of the billing and change the billing date to the current month's date if the earlier date is not of the current month.
    Reward points if found helpfull...
    Cheers,
    Siva.

Maybe you are looking for

  • Adobe Photoshop CS6: Photoshop.exe - System Error  The program can't start because ONCoreFoundation7

    I get this error after updating ONONE premium edition 8 to 8.1 been to their site no luck in resoving error. I click ok to error PS cs6 still launches, just annoying. ONCoreFoundation7.dll  is part of ONONE 7

  • 6 GB disk image on 2 DVDs?

    Can I burn a 6 GB disk image on 2 DVDs, as suggested by the OS? I.e., will I be able to open this image from the DVDs later? Thanks a lot Peter

  • Invoice query report

    Hi B1 Experts Kindly help me.... I need A/R invoice query report which will give me the Daily, monthly and yearly total invoicing as on date in a single screen also without using XL reporter. I am using SAP B1 version 2005B PL36. Thx in advance. Roza

  • Creating animated Banner to import into Dreamweaver. Help!

    Hello All, I am attempting to create a page banner that consists of 4 images which I would like to change every 250ms. I would also like to have 4 small slaces that when hovered the relevant image loads. I have set this up with behaviours on 4 states

  • How to compare two file differnces

    Hi All , I have two files on my presentation server one file will have some errors and another will conatine corrected , Now I have to compare those two files and display the differed recoreds as a list.Please provide me the required code. Thank you