Any Function Module or Report to execute DTP ?

Hello Folks,
Is there any Function Module or Report to execute DTP, the idea is to automate the loading of 1 infoprovider using ABAP code ?
Please give your valuable inputs....
Thanks
Sonal Patel.

Every dtp has an own generated program : GP******.
execute the DTP and you can find back the program in SM37.
M.

Similar Messages

  • Batch determination process in SD- Delivery: any Function module?

    Hi All,
    I want to use the logic used in SD-Delivery for batch determination in Batch Search Strategy report.
    Is there any function module avaialable for batch determination process done in SD so that I can make use of it?
    Thanks in advance,
    Rgds,
    MAdhuri

    Hi Madhuri,
    My requirement is to select that batches that were picked up by the delivery (i.e. those that passed the search strategy) using the Material and Plant combination, Customer as an optional parameter.
    Could you please provide the function modules that are required to make use of the function module "VB_BATCH_DETERMINATION"? Also, could you please let me know if we need to take into consideration any other factors when using the function module VB_BATCH_DETERMINATION
    Thanks in advance!
    Thanks,
    Manohar. Dubbaka.

  • Is there any function module to convert the date format

    Dear ABAPers,
    Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.
           I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.
    Thanks & Regards,
    Ashok.

    hi,
    create custom function module or copy the below code in the report ..and use it
    the out put for below is :----Convert a DATE field into a full format date eg. March 23, 2000
    FUNCTION Z_CONVERT_DATE_INTO_FULL_DATE.
    ""Local interface:
    *"       IMPORTING
    *"             VALUE(DATE) LIKE  SY-DATUM
    *"       EXPORTING
    *"             VALUE(FORMATTED_DATE)
    *"       EXCEPTIONS
    *"              INVALID_DATE
    TABLES: TTDTG.
    DATA: BEGIN OF T_DATE,
            YYYY(4) TYPE C,
            MM(2) TYPE C,
            DD(2) TYPE C,
          END OF T_DATE.
    DATA: DAY(3) TYPE N.
    DATA: VARNAME LIKE TTDTG-VARNAME.
    IF DATE IS INITIAL.
      CLEAR FORMATTED_DATE.
      EXIT.
    ENDIF.
    check document date format
    CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
      EXPORTING
        DATE = DATE
      EXCEPTIONS
        PLAUSIBILITY_CHECK_FAILED = 1.
    IF SY-SUBRC NE 0.
      RAISE INVALID_DATE.
    ENDIF.
    MOVE DATE TO T_DATE.
    CONCATENATE '%%SAPSCRIPT_MMM_' T_DATE-MM INTO VARNAME.
    SELECT SINGLE * FROM TTDTG WHERE SPRAS = 'EN' AND VARNAME = VARNAME.
    WRITE T_DATE-DD TO DAY.
    CONCATENATE DAY ',' INTO DAY.
    CONCATENATE TTDTG-VARVALUE DAY T_DATE-YYYY INTO FORMATTED_DATE
      SEPARATED BY SPACE.
    ENDFUNCTION.
    the output is :--Convert a DATE field into a full format date eg. March 23, 2000
    Regards,
    Prabhudas

  • Any function module to get Stock and value of material on a given date?

    Hi Friends
    Is there any function module available to get Stock/and  value of material on a given date?
    Thanks
    Harish

    Sorry I didn't elaborate the requirement.
    I am asked to develop a custom report for inventory management. For range of materials it is required to display stock and value on particular date and GRs GIs for the range.
    I need function module to use in Zreport.
    Thanks
    Harish

  • Any function module available for...

    hi all,
    i need a function module to do a goods receipt for the PO using
    movement type 161,
    movement ind B,
    goodsmvt code '01'.
    i couldnt able to post using BAPI_GOODSMVT_CREATE as iam getting
    'NO GOODS RECEIPT POSSIBLE FOR PO XXXXXXXX XXXXX'.
    So is there any function module other than bapi to do a goodsmvt with my requirements.
    Thanks in advance,
    Prem.

    hi,
    the code i use is,
    loop at gt_final into gs_wa_final.
            gt_item-move_type     = '161'.
            gt_item-entry_uom     = gs_wa_final-meins.
            gt_item-stge_loc        = gs_wa_final-lgort.
            gt_item-entry_qnt      = gs_wa_final-menge.
            gt_item-entry_uom_iso = gs_wa_final-meins.
            gt_header-ref_doc_no                   = gs_wa_final-submi.
            gt_item-base_uom = gs_wa_final-meins.
            gt_header-doc_date                      = gv_last_date.
            gt_header-pstng_date                   = sy-datum.       
            gt_item-ind_propose_quanx           = 'X'.
            gt_item-serialno_auto_numberassignment = 'X'.
            gt_item-material                           = gs_wa_final-matnr.
            gt_item-plant                               = gs_wa_final-werks.
            gt_item-po_number                      = gs_wa_final-ebeln.
            gt_item-po_item                          = gs_wa_final-ebelp.
            gt_item-mvt_ind                          = 'B'.
          append gt_item.
          clear gt_item.
    *call bapi goodsmvt create to do the gr
        set update task local.
        call function 'BAPI_GOODSMVT_CREATE'
          exporting
            goodsmvt_header       = gt_header
            goodsmvt_code         = gt_bapigm_code
          importing
            goodsmvt_headret      = gs_headret
          tables
            goodsmvt_item         = gt_item
            goodsmvt_serialnumber = gt_serialno
            return                = gt_return.
    call bapi_transaction_commit to commit if success
        if gt_return-type <> 'E'.
          call function 'BAPI_TRANSACTION_COMMIT'
            exporting
              wait = 'X'.
        else.
          call function 'BAPI_TRANSACTION_ROLLBACK'.
        endif.
    After executing iam getting an error mess in gt_return[]
    'NO GOODS RECEIPT POSSIBLE FOR PO XXXXXXXXXX XXXXX'
    i cant understand y the function module is returning this error message,
    can any one help me in this issue,
    Thanks in adavance,
    Prem.

  • Is there any function module or BAPI to create maintenance item.(Urgent)

    Hi Experts,
                       I want to create an RFC which creates the maintenance item in the sap. The RFC is going to receive data from XI. So is there any function module or BAPI to create maintenance item? so that i can call that FM in my RFC.
    Thanks,
    Prasanna
    Helpful answers will be rewarded.

    Check and implement your program accordingly:
    *& Report  ZMRS_BAPI_DEMO_ORDERS
    REPORT  ZMRS_BAPI_DEMO_ORDERS.
    DATA: gs_method     TYPE bapi_alm_order_method,
          gs_header   TYPE bapi_alm_order_headers_i,
          gs_header_up  TYPE bapi_alm_order_headers_up,
          gs_return     TYPE bapiret2,
          gs_numbers    TYPE bapi_alm_numbers,
          gs_return_commit TYPE bapiret2,
          gs_demo_order TYPE objidext,
          gt_demo_order LIKE TABLE OF gs_demo_order,
          gt_method     LIKE TABLE OF gs_method,
          gt_header     LIKE TABLE OF gs_header,
          gt_header_up  LIKE TABLE OF gs_header_up,
          gt_return     LIKE TABLE OF gs_return,
          gt_numbers    LIKE TABLE OF gs_numbers,
          gt_return_commit LIKE TABLE OF gs_return_commit.
    DATA lv_not_successful TYPE c.
    DATA lv_ref_cnt TYPE i.
    IMPORT gt_method FROM MEMORY ID 'MET'.
    IMPORT gt_header FROM MEMORY ID 'HED'.
    IMPORT gt_header_up FROM MEMORY ID 'HUP'.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
      TABLES
        it_methods   = gt_method
        it_header    = gt_header
        it_header_up = gt_header_up
        return       = gt_return
        et_numbers   = gt_numbers.
    CLEAR lv_not_successful.
    LOOP AT gt_return INTO gs_return.
      IF gs_return-type = 'E'.
        lv_not_successful = 'X'.
      ELSEIF gs_return-type = 'W'.
       lv_not_successful = 'X'.
      ELSE.
      do nothing
      ENDIF.
    ENDLOOP.
    IF lv_not_successful <> 'X'.
    commit changes
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait   = 'X'
        IMPORTING
          return = gs_return_commit.
    ELSE.
    rollback changes
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
        IMPORTING
          return = gs_return_commit.
    ENDIF.
    EXPORT gt_return TO MEMORY ID 'RET'.
    EXPORT gs_return_commit TO MEMORY ID 'COM_RET'.

  • System table that stores info about any function module

    Hi All,
    I know that table TFDIR stores primary information about any function module.
    Could anyone tell me where the code of that function module gets stored in?
    Also.. If I want to write an ABAP code to read the function module code then what is the best possible solution?
    I want to read a function module code if that contains specific string.
    Can anyone help me  with that?
    Thanks in advace and any answer will be appreciated.
    Regards
    Jignesh
    Edited by: Jignesh Patel on Jun 12, 2008 12:22 PM

    Hi Jignseh,
    The codes are not stored in any table, they are stored as cluster.
    To read the code, you can use READ REPORT.
    But there you must provide the Include Name
    For Example , If you want to read the code of READ_TEXT,
    READ REPORT 'LSTXDU01'.
    You can get this include name inside include LSTXDUXX
    Use "GET_INCLUDES" to get all include names
    Edited by: Swastik Bharati on Jun 12, 2008 12:28 PM

  • Hi is there any function module for radix conversion

    Hi,
    I need to convert number of base 36 to decimal number. Is there any function module for that.
    i.e) z to 35
         10 to 36
         11 t0 37

    Hai,
    This program perfectly converts a number from one number system to another number system.
    REPORT  Z_RADIX_CONVERSION.
    PARAMETERS:
      P_S_RAD(2) TYPE N,                   " Source Radix
      P_D_RAD(2) TYPE N,                   " Destination Radix
      P_S_NUM(5) TYPE C.                   " Source Number
    *" Data declarations...................................................
    Work variables                                                      *
    DATA:
      W_LEN         TYPE I,
      W_FACT        TYPE I,
      W_D_NUM(5)    TYPE N,
      W_T_LEN       TYPE I,
      W_NUM         TYPE C,
      W_NUM1        TYPE I,
      W_REM         TYPE I,
      W_INDEX       TYPE I VALUE 20,
      W_T_NUM(30)   TYPE C,
      W_T_NUMBER(5) TYPE N.
    IF P_S_RAD GE 1  AND
       P_S_RAD LE 16 AND
       P_D_RAD GE 1  AND
       P_D_RAD LE 16.
      IF P_S_RAD EQ 01 AND P_S_NUM CO '0 ' OR
         P_S_RAD EQ 02 AND P_S_NUM CO '01 ' OR
         P_S_RAD EQ 03 AND P_S_NUM CO '012 ' OR
         P_S_RAD EQ 04 AND P_S_NUM CO '0123 ' OR
         P_S_RAD EQ 05 AND P_S_NUM CO '01234 ' OR
         P_S_RAD EQ 06 AND P_S_NUM CO '012345 ' OR
         P_S_RAD EQ 07 AND P_S_NUM CO '0123456 ' OR
         P_S_RAD EQ 08 AND P_S_NUM CO '01234567 ' OR
         P_S_RAD EQ 09 AND P_S_NUM CO '012345678 ' OR
         P_S_RAD EQ 10 AND P_S_NUM CO '0123456789 ' OR
         P_S_RAD EQ 11 AND P_S_NUM CO '0123456789A ' OR
         P_S_RAD EQ 12 AND P_S_NUM CO '0123456789AB ' OR
         P_S_RAD EQ 13 AND P_S_NUM CO '0123456789ABC ' OR
         P_S_RAD EQ 14 AND P_S_NUM CO '0123456789ABCD ' OR
         P_S_RAD EQ 15 AND P_S_NUM CO '0123456789ABCDE ' OR
         P_S_RAD EQ 16 AND P_S_NUM CO '00123456789ABCDEF ' .
        W_LEN = STRLEN( P_S_NUM ).
        W_T_LEN = W_LEN - 1.
        DO W_LEN TIMES.
          W_NUM = P_S_NUM+W_T_LEN(1).
          CASE W_NUM.
            WHEN 'A'.
              W_NUM1 = 10.
            WHEN 'B'.
              W_NUM1 = 11.
            WHEN 'C'.
              W_NUM1 = 12.
            WHEN 'D'.
              W_NUM1 = 13.
            WHEN 'E'.
              W_NUM1 = 14.
            WHEN 'F'.
              W_NUM1 = 15.
            WHEN OTHERS.
              W_NUM1 = W_NUM.
          ENDCASE.
          W_D_NUM = W_D_NUM + W_NUM1 * ( P_S_RAD ** W_FACT ).
          ADD 1 TO W_FACT.
          SUBTRACT 1 FROM W_T_LEN.
        ENDDO.
      ELSE.
        WRITE'Invalid Number'(003).
      ENDIF.
    ELSE.
      WRITE'Enter radix between 1 and 16 '(002).
    ENDIF.
    W_T_NUMBER = W_D_NUM.
    IF P_D_RAD = 1.
      DO W_D_NUM TIMES.
        WRITE'O'.
      ENDDO.
    ELSE.
      WHILE W_T_NUMBER NE 0.
        W_REM = W_T_NUMBER MOD P_D_RAD.
        CASE W_REM.
          WHEN  10.
            W_T_NUM+W_INDEX(1) = 'A'.
          WHEN  11.
            W_T_NUM+W_INDEX(1) = 'B'.
          WHEN  12.
            W_T_NUM+W_INDEX(1) = 'C'.
          WHEN  13.
            W_T_NUM+W_INDEX(1) = 'D'.
          WHEN  14.
            W_T_NUM+W_INDEX(1) = 'E'.
          WHEN  15.
            W_T_NUM+W_INDEX(1) = 'F'.
          WHEN OTHERS.
            W_T_NUM+W_INDEX(1) = W_REM.
        ENDCASE.                           " CASE W_REM.
        SUBTRACT 1 FROM W_INDEX.
        W_T_NUMBER = W_T_NUMBER DIV P_D_RAD.
      ENDWHILE.
    ENDIF.
    WRITE:
      /10 'The Equivallent number in Base'(001),
           P_D_RAD,
           'is',
           W_T_NUM.
    <b>Reward points if helpful .</b>
    regards,
    rama pammi

  • Is there any function module to download abap data to a word document?

    Hi all,
    I know that the downloading to word can be done by ole automation...But is there any function module in sap which can do the same....?? please let me know your expert comments.......

    Hello Rich,
    I have tried the function module word_ole_formletter ..but i am facing a problem...once i execute the program i can see that the data is coming to word document but it is coming in read only mode and again reverting back to a blank document as was befor the data is coming to word document..Can you suggest where i am going wrong...Also I tried to debug the function module but the break point is not coming to the function module ....

  • Is there any Function module available for GR IR for purchase order

    Hi
    Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
    One way to create a custom fuction to fetch the details from MSEG and BKPF.
    Can somebody suggest a better solution.
    Thanks in advance.
    Ruhi Hira

    Which table in BAPI_PO_GETDETAILS exactly has these information ?
    PO_HEADER_TEXTS
    PO_ITEMS
    PO_ITEM_ACCOUNT_ASSIGNMENT
    PO_ITEM_SCHEDULES
    PO_ITEM_CONFIRMATIONS
    PO_ITEM_TEXTS
    PO_ITEM_HISTORY
    PO_ITEM_HISTORY_TOTALS
    PO_ITEM_LIMITS
    PO_ITEM_CONTRACT_LIMITS
    PO_ITEM_SERVICES
    PO_ITEM_SRV_ACCASS_VALUES
    RETURN
    PO_SERVICES_TEXTS
    EXTENSIONOUT
    NFMETALLITMS
    Regards
    Ruhi Hira

  • Any Function module or BAPIs are available to get scheme name for the inter

    I have internal order no value in table  AUFK-AUFNR ,  and the internal order corresponding Scheme value is available in IMPR-PRNAM . Now I want to inner join both the tables to extract the data , but there is no common field . Is there any Function module or BAPIs are available to get scheme name for the internal orders?

    look at DB-VIEW  "V_IVP_OR".
    Regards,
    Laurent

  • Is there any function modules or BAPI's

    Is there any function modules or BAPI's that would delete the original partner and then add a new partner.Iam using BAP
    bapi_alm_notif_data_modify
    But iam not able to change partner in notification header
    Please give your input for sovling it

    Dear Rama,
                           In the bapi_alm_notif_data_modify, there are 2 structure
    NOTIFPARTNR STRUCTURE  BAPI2080_NOTPARTNRI OPTIONAL
    NOTIFPARTNR_X STRUCTURE  BAPI2080_NOTPARTNRI_X OPTIONAL
    Pass yr partner value in NOTIFPARTNR, and against the value make it "X" in the NOTIFPARTNR_X  , then u can change the partner value.
    Give point if helpfull
    Thanks

  • How to create Inbound Idocs in a ABAP program? Any function Module?

    Hello Experts,
    My requirement is : I have sales order data which I extracted from third party system in my internal tables. In the same box I need to create inbound Idocs and then consequently create sales orders.
    I have used the function module IDOC_INBOUND_WRITE_TO_DB to create inbound Idocs from Sales Orders data in internal tables. I have populated all the data records with correct PSGNUM and HLEVEL values. My plan is to create inbound idocs with this function module and send those to IDOC_INPUT_ORDERS function module which creates Sales Orders.
    If a sales order in the internal table in ABAP program contains only one item, then I am getting correct idocs. But if more than one item exists for a sales order then the line item segments which got repeated in Idoc are having PSGNUM and HLEVEL values as zero when I checked in WE02. As a result the hierarchy from the second item segment is getting disturbed and getting the status 60.
    I populated T_EDIDD with data records from  IDOC_INBOUND_WRITE_TO_DB.
    To the function module IDOC_INPUT_ORDERS,  T_EDIDC and T_EDIDD are the input. I observed that in T_EDIDD also the PSGNUM and HLEVEL values are blank.
    I am getting Status 60 with message 'EDI: Syntax error in IDoc (segment cannot be identified)' for idocs which have more than one item.
    I need to extract sales data from third party and create inbound idocs and create sales orders in one ABAP program only. I need to display corresponding Idoc numbers for the corresponding third party sales order number in a listoutput.
    Can anybody please provide inputs?
    Regards.

    Hi Anjali,
    Thanks for the response.
    I have passed the PSGNUM and HLEVEL values while populating the data records. Then I sent the data records and control record information to the function module IDOC_INBOUND_WRITE_TO_DB. Inside this function module there is code to clear the PSGNUM values and HLEVEL values.
    for compatibility: clear administration data of data records
               perform data_records_wipe
                                      tables
                                          t_data_records.
    FORM DATA_RECORDS_WIPE
                      TABLES
                          T_DATA_RECORDS_IN  STRUCTURE EDIDD.
      LOOP AT  T_DATA_RECORDS_IN.
        CLEAR: T_DATA_RECORDS_IN-MANDT,
               T_DATA_RECORDS_IN-DOCNUM,
               T_DATA_RECORDS_IN-SEGNUM,
               T_DATA_RECORDS_IN-PSGNUM,
               T_DATA_RECORDS_IN-HLEVEL.
        modify t_data_records_in.
      ENDLOOP.
    ENDFORM.                               " DATA_RECORDS_WIPE
    This is the code which is clearing all the PSGNUM and HLEVEL values. After coming out of this function module we are getting the error idocs created with disturbed hierarchy.
    I need to create INBOUND Idocs with the data in ABAP program.
    Please let me know if any inputs? Is there any function module existing to create Inbound Idocs inside an ABAP program?
    Regards

  • Any function module to read all the values in Tcode-PPQD?

    Hi all
    Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
    and any idea what tables are involved to get these values like parent and child relationship?
    Thanks in advance.
    Murali.

    Murali,
    you can use the following..
    data: w_sobid type sobid, "Qualification ID
          w_objid type objid. "Qualification Catalog
    select objid  into w_objid
                  up to 1 rows
                  from HRP1001
                 where otype = 'QK'
                   and plvar = '01'
                   and istat = 1
                   and risgn = 'B'
                   and relat = '030'
                   and endda ge sy-datum
                   and begda le sy-datum
                   and sclas = 'Q'
                   and sobid = w_sobid.
    endselect.
    if sy-subrc eq 0.
    write: / w_objid,w_sobid.
    endif.
    Regards,
    Suresh Datti

  • Is there any function module for getting distribution list name

    Hi all,
    Is there any function module for getting distribution list name when there is same description for two distribution list name.
    or
    help me how to fetch the correct distribution name when there is same description.
    In order to send mails.
    Tell me ASAP.
    thanks
    sagar.

    http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
    list of Fms

Maybe you are looking for

  • How many computers can you use one copy of Photoshop Elements 11 on please?

    I intend to purchase Adobe Photoshop Elements 11 for my two student children.  Could you tell me if they will both be able to install in on their respective computers?

  • Crystal Reports, SAP B1 - connect OINV, OPCH (A/R Invoice, A/P Invoice)

    What I need to do is to connect the two SAP B1 v9.0 tables listed above (A/P Invoice OINV, and A/R Invoice OPCH) in a Crystal report WITHOUT SQL.  How do you connect these tables?  Purpose of report is for sales commissions.  Existing customer report

  • The fixes dont work, can anybody help????

    I would be really grateful for someone's help. I have a Sony Vaio Media Center PC (XL301) and it came installed with Vista as the operating system. I am unable to play anything from sites that require the most up todate flash player; i.e. bbc iplayer

  • Performance issue in the table

    Hi All i have one table which is based on a VO. This VO has 150 attributes.I am facing performance issue. first Q is i need to display only 15 attributes in the table. but other attributes are also required . so i have two options . 1. make other as

  • Condition Type and Movement Type

    Dear all, Could anyone explain how the relationshipship between condition type and movement type are being maintain? Example : WE03 and Mvt 101,                 WA03 and Mvt 201. Is there any table or tcodes  to view these relationship? Thank you.