Checking Posting Date in ABAP Program

Dear All,
I am given a requirement to develop a program to create PO  without using Tcode ME21N.
I find trouble in validating posting date.
How to check that the entered date is the valid posting date or in which table i can get the values to check.
I tried the following FMs, but couldn't find the solution.
ACEPS_OPEN_PERIOD_DETERMINE
FC_CHECK_PERIOD_OPEN
G_PERIOD_ALLOWED_CHECK 
FI_PERIOD_CHECK
DETERMINE_PERIOD
Could anybody help me in this regard.
Best Regards,
S.Sridhar

Hi,
Use the following FM :
FM_INPUT_CHECK_POSTING_DATE
FCJ_CHECK_POSTING_DATE
Regards,
Mansi.

Similar Messages

  • Error in Posting Data Using ABAP Program.

    I am Using Scenario SAP(RFC) to Webservice through XI
    I called My RFC into ABAP Program  and given RFC Destination
    and executing it goes into Short DUMP.
    I gives an Error message as
    " alternativeServiceIdentifier:party/service from channel configuration are not"
    Wat should i Do for this Error.
    regards,
    Jayasimha Jangam

    Hi
    Please look into these threads
    alternativeServiceIdentifier: party/service from channel configuration are.
    Rfc sender problem(sap r/3 -se37) 'alternativeServiceIdentifier: party/serv
    Also this Blog will help you,
    /people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place
    Reward points if found usefull............

  • Read EDI-856 interface data in ABAP program

    HI Experts,
    I have a requirement to read the incomming EDI-856 interface data from ABAP program and generate an IDOC.  I have gone through few EDI-856 documents and theformat in which to read the data .
    Request you to let me know the code logic , function module to use or if  you have any document which can help me in the development.
    Thanks in advance
    Regards
    Santosh

    Please help regarding
    First could you please help me regarding the SCN search option?
    please always try to attempt from your side if not able to solve than search in SDN finally you may land on SDN with thread.

  • Passing data from abap-program to mssql database table thro native sql

    Hi,
    To pass the data from abap-program to mssql server,i have created database connection through dbco t.code.
    now i am trying to get connection thro native sql but am not able to get it .Am working in ECC 5.0.
    Could anyone help me on this.Did i miss anything?
    i have tried Native-sql like this.
    DATA: CON_NAME LIKE DBCON-CON_NAME VALUE 'BIW'.
    EXEC SQL.
      CONNECT TO :con_name AS 'C1'
    ENDEXEC.
    Thanks in advance.

    Hi,
    Trying to do the same here, only using Oracle DB.
    DATA:     dbc TYPE DBCON_NAME VALUE 'BI'
    TRY.
      EXEC SQL.
        CONNECT TO :dbc
      ENDEXEC.
      IF sy-subrc NE 0.
        RAISE EXCEPTION TYPE cx_sy_native_sql_error.
      ENDIF.
    CATCH cx_sy_native_sql_error INTO oref_native_sql_error.
      sql_emsg = oref_native_sql_error->get_text( ).
      MESSAGE sql_emsg TYPE 'I'.
    ENDTRY.
    I keep getting the message 'Native SQL exception has occured' (because of the RAISE statement, I wonder how we can get a meaningfull error description).
    Of course this can be a result of a number of network issues, so I'm trying to resolve this together with my BC admin.
    I suggest the same to you..
    In the meantime, if anyone can help out, it will be appreciated.
    Regards,
    SD

  • Reading XML Data from ABAP Program?

    Hi,
    How do I read XML Data from an ABAP Program? For example if I have the below basic XML Code-
    <xml>
    <Name> Thiru </Name>
    <Age> 24 </Age>
    <City> chennai </Chennai>
    </xml>
    How do i read the data within the Name,Age, and City tags into variables in the ABAP Program?
    Regards,
    Thiru

    if you decide to do in XSLT, I have a sample list here:
    XML file like this:
    <?xml version="1.0" encoding="UTF-16"?>
    <F>
    <P1>
    <t_1>value1</t_1>
    <t_2>testvalue</t_2>
    </P1>
    <P2>
    </P2>
    </F>
    XSLT file like this:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sapxsl="http://www.sap.com/sapxsl" version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:template match="F">
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    <asx:values>
    <<b>DOCUMENT</b>>
    <xsl:apply-templates/>
    </<b>DOCUMENT</b>>
    </asx:values>
    </asx:abap>
    </xsl:template>
    <xsl:template match="P1">
    <ENTRY>
    <<b>T_1</b>><xsl:value-of select="t_1"/></T_1>
    <<b>T_2</b>><xsl:value-of select="t_2"/></T_2>
    </ENTRY>
    </xsl:template>
    </xsl:transform>
    ABAP program like this:
    DATA: BEGIN OF wa_upload,
    text(255) TYPE c,
    END OF wa_upload,
    itab_upload LIKE TABLE OF wa_upload,
    BEGIN OF wa_document,
    t_1 TYPE string,
    t_2 TYPE string,
    END OF wa_document,
    itab_document LIKE TABLE OF wa_document.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = 'XXXXX'
    filetype = 'ASC'
    TABLES
    data_tab = itab_upload.
    CALL TRANSFORMATION zrappel_xml_test
    SOURCE XML itab_upload
    RESULT <b>document</b> = itab_document.
    You should pay attention to the bold words.
    hope it will be helpful
    thanks

  • How to get data in ABAP program from multicube in external BW system

    Hi friends,
         I want to get data from one multicube which resides in an external BW system, in my ABAP program internal table. Is there any SAP standard RFC / BAPI for this or is there any other way around or I have to design my own program to get the data ?
        To make my requirement clearer, my ABAP program is in one BW box and the above mentioned multicube in another BW box. I want to get data from the multicube into my program.
        Any help is appreciated with points.

    Look at the following FM; you may find the FM RSDRI_INFOPROV_READ_RFC useful.
    Call the FM in your program and read data and update.
    RSAD_INFOCUBE_READ_REMOTE_DATA
    RSDRI_INFOPROV_READ_RFC
    Ravi Thothadri

  • How to read Production Order Long Text data in ABAP program

    Hi friends,
      I have the issue in reading the ' Long Text '  tab view data of production order
    in CO03 transaction.Please can some body help me out to get this in ABAP program.
    Regards,
    Rajesh Akarte

    ok goto the long text, double click it, or use the small pencil, so that you proceed to the text editor.
    Once you are there, use the menu: goto->head
    a small popup will come up, stating the information you need.
    what you need is OBJECT, ID, Language and NAME.
    with those information you can feed the FM READ_TEXT.
    and woooohooo there you go

  • Function Module to check posting date

    Hi,
    Is there any function module avilable to check whether the posting date is open or not.
    Regards
    Suresh.

    check G_POSTING_DATE_OF_PERIOD_GET
    Reward points if useful, get back in case of query...
    Cheers!!!

  • Full Load and delta loads of HR Data using ABAP Program

    Hi All,
    I need to write an ABAP program that will pull some HR data from some of the infotypes.When i run it for the first time it should pull all the data for all the employees but in the subsequent runs it should run only the delta changes
    for example
    inital run is on 04/30 it should pull all the data for all the employees
    next run 05/02 then it should pull onlly the infotypes for which there is a change between 04/30 and 05/02
    Please let me know the solution
    Thanks
    Bala Duvvuri

    Rob,
    I understand that I need to AEDTM field but the problem is
    during the initial load i will not have any control date stored in the z table so i will fetch all the records using the select queries on various infotypesin the if condition but the problem is i need to repeat the same queries by adding the AEDTM condition in the else condition where control date is not initial(not an initial load) so it will be a duplicacy of all the select queries.
    is it a good programming style?please let me know your thoughts on this
    if p_ctrl is initial " Initial load
    select queries
    else " subsequent runs
    same select queires with AEDTM condition
    endif.
    Thanks
    Bala Duvvuri

  • To check posting date lies in closed period

    Hi all ,
      I have to check whether posting date lies in closing period.
    Please let me know any FM FOR same.
    Thanks in advance
    Rahul

    First call FM FI_PERIOD_DETERMINE and pass company code and posting date into it  and get
    IMPORTING
         e_gjahr              = v_l_gjahr
         e_monat              = v_l_monat
         e_poper              = v_l_poper
    Then call FI_PERIOD_CHECK and pass v_l_poper to i_monat.
    Please let me know if still it doesnt work

  • Updating Q and P table of master data using ABAP program

    Hi All
    I have a requirement to update Q and P table(non key and non date fields) of master data using an ABAP program.
    Is this something recommended?
    Will there be any issues if I do that?
    Thanks
    Deepak

    Thanks Vikram. Ok. My look up is on some other master data Q table and that is the reason why I asked about ABAP custom program.
    Look like I will have to do the following approach.
    Load the required supporting master data to BW.
    Execute Attribute change run process for those master data objects.
    Load the actual master data and look up on supporting master data.
    Execute attribute change run process.
    This process takes me long time and I am trying to reduce the overall execution time. let me know if you have some good suggestions.
    Thanks
    Deepak

  • Import data from ABAP program to Excell template file

    Hello everyone
    I have  a such task: In abap program I have fields(screen fields), which I want to import into excell file. I don't want to export into empty file but into ready template .xls. Is there any possibility to match corresponding fields?
    I really need to know, I will be gratefully for any suggestions.
    Greetings

    Hi Katarzyna ,
    something like
    DATA: EXCEL TYPE OLE2_OBJECT.
    DATA: BOOKS TYPE OLE2_OBJECT.
    DATA: BOOK  TYPE OLE2_OBJECT.
    DATA: CELL  TYPE OLE2_OBJECT.
    DATA: FONT  TYPE OLE2_OBJECT.
    DATA: FILE  TYPE OLE2_OBJECT.
      CREATE OBJECT EXCEL 'EXCEL.APPLICATION'.
      CALL METHOD OF EXCEL 'WORKBOOKS' = FILE.
      CALL METHOD OF  FILE 'OPEN' EXPORTING #1 = P_FILE
                                            #2 = 1.  
      CALL METHOD OF EXCEL 'CELLS' = CELL EXPORTING #1 = P_LINE
                                                    #2 = P_COLUMN.
      SET PROPERTY OF CELL 'VALUE' = P_VALUE.
      CALL METHOD OF EXCEL 'QUIT'.
    This is just a compilation from a complex program. Do some modularization (i.e. create FORM fill_cell using P_line P_column P_value...)
    Hope I did not forget anything. Meanwhile we have much more modern and advanced methods and classes - this one is of 2000 (Release 4.5?).
    Regards,
    Clemens

  • PASS DATA FROM ABAP PROGRAM TO WORKFLOW CONTAINER

    Hello Everybody,
    I am a workflow beginner and I want to pass a data from my ABAP code to a workflow container. This workflow container is used in the Send Mail step.
    The ABAP  Program is:
    REPORT  zdb_work_flow.
    tables : vbak.
    DATA : k TYPE sweinstcou-objkey,
                e TYPE swetypecou-event.
    DATA : st TYPE swcont,
                itab TYPE STANDARD TABLE OF swcont.
    PARAMETERS : vbeln TYPE vbak-vbeln.
    start-of-selection.
      st-element = 'VBELN'.   "This is my WORKFLOW CONTAINER
      st-tab_index = 1.
      st-elemlength = 10.
      st-type = 'C'.
      st-value = vbeln.
      append st to itab.
      k = vbeln.
      e = 'TRIGGER'               "This is an event in my BUS OBJ ZDB_WFLOW
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype                               = 'ZDB_WFLOW'   "My BUS OBJ
          objkey                                 = k
          event                                  = e    "Event TRIGGER in ZDB_WFLOW
        tables
          event_container               = itab
        exceptions
          objtype_not_found             = 1
          OTHERS                        = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.         .
      COMMIT WORK.
    Now I have created a workflow in SWDD as ZDB_WF_SW.
    In this WF I have created a container as VBELN.
    In the SEND MAIL I have given a header as "Worflow Triggered for &VBELN&"
    PROBLEM.
    The Workflow is getting triggered. I am also getting a mail "Workflow Triggered for" in my mailbox but the &VBELN& is missing from the header.
    I have set the IMPORT EXPORT flag of the WF CONTAINER "VBELN"
    Please Help.
    Edited by: Deepankar.B on Feb 22, 2011 4:08 PM
    Edited by: Deepankar.B on Feb 22, 2011 4:10 PM

    You wouldn't use a SMA as an assistance class - but refer to one within it.
    I would use Shared Memory Area classes - but I'd also build a SMA that could talk across multiple application servers.
    Thomas Jung proposed this in a forum reply some time ago.
    It shouldn't be too difficult to use RFC's to access the content of SMA's in multiple app servers - ensuring synchronisation across multi app servers. I've not yet had the need, so haven't attempted.
    The long polling in 7.02 apparently uses this approach, so in a 7.02 system there may even be standard components/ SMAs that you could use.
    I do not think global areas in FM's are available across sessions - I don't think you could use that as a data transport.

  • Posting date for payment program

    Hi,
    The payment program has a posting date in the header information. I want to be able to post with posting date equal to due date and in a payment proposal there will then be more than one due date.
    Does anyone have a solution to this???

    hi Marcus,
    I am afraid the only solution is to create a substitution.
    ec

  • I'm looking for a Funciont Module that check posting date (VBRK-FKDAT)

    Hi, All
    I'm looking for a Function Module that let me know whether or not a Date (importing paramerter) is allowed for posting in period. (MARV data (including XRUEM (Allow Posting to Previous Period) ))
    If you know that, please let me know.
    Best Regards.
    Rie.

    Hi,
    Check the following FM. :
    MARV_SINGLE_READ
    Thanks & Regards,
    Faheem.

Maybe you are looking for

  • How do I turn on the wi fi to share internet

    HI, I just installed Snowleopard wanted to share to the internet but is not working. Any suggestions?

  • VAT Configuration/ condition technique

    Hello Sapients We have a sales company in Europe, and we are selling goods in multiple european union countries. Now we have just started selling goods in couple of other EU Countries. I need to configure Tax (VAT) for those transactions. I have Tax

  • Raid 5 Card for Mac Pro

    Hello all! I am a video editor and am currently building my own system out.. I am on my last step of upgrades now and I need to build a RAID. At work we have the huge fiber channel RAID 5's, but this is for my personal use. So what I want to do is ge

  • Creative Surround Mixer won't o

    I have an older Gateway Essential machine with Pentium III processor and running Windows 98 2nd Edition. It came from Gateway with Sound Blaster LIve Value and has worked flawlessly for 6 years. I upgraded the speakers to Creative set 5 years ago. Wi

  • Loaded in os4 now ipod does not work

    loaded in os4 to my iphone 3gs and now the ipod function does not work.any suggestions?