For Purchase order,  is any Smartform available

Hi,
for Purhcase order Medruck Script is available but I want a smart form for purchase
is there smart form available for purchase order if exists plz. give me the name.
it is very urgent.
Ganesh

Hi Ganesh,
There is standard smartform for PO (pre-configured forms) but you have to import package :/SMB40
PO Form: /SMB40/MMPO_L
Print Program: /SMB40/FM06P
See the note 595812: it explain how to download the preconfigured smartforms.
Anyway this is an extract of that note:
Detailed information can be accessed at the site:
http://service.sap.com/preconfiguredforms OR
http://service.sap.com/smb/development/preconfiguredforms.
To download preconfigured smartform package, please:
1. Go to http://service.sap.com/installations, select tab "download".
2. On the right hand side screen, locate navigation tree node
SAP Software Distribution Center->Download->Installations and Upgrades->
Entry by Application Group.
3. In the main window (right hand side), follow the path
SAP Best Practices->Best Practices for mySAP All-in-One-> PRECONFIGURED
SMART FORMS, you can find available preconfigured smartform versions.
Here you can also download the PO smartform.
Hope this will help.
Regards,
Ferry Lianto

Similar Messages

  • Determine classname & classtype for Purchase Order?

    Hi All
    I'm completely new to SAP, apologies in advance.
    So I'm trying to create a external document url against a purchase order via a BAPI.
    Looking at this thread [FM to create external document(URL)|FM to create external document(URL)]  BDS_BUSINESSDOCUMENT_CRE_O_URL is the one to use.
    First question: is that correct?
    The BAPI takes as inputs CLASSNAME and CLASSTYPE which Im assuming are used to identify that this is being attached to, in this case, a PO.
    Second question: Is that correct and if so how do I find out what these values are for a Purcahse Order and other objects in SAP?
    thanks

    Hi Jonnoking,
    1) Function module u201CBDS_BUSINESSDOCUMENT_CRE_O_URLu201D is correct to u201CCreate External Document (URL)u201D
    2) To find u201CCLASS NAMEu201D & u201CCLASS TYPEu201D values for Purchase Order or any other objects below are the transaction codes where it is maintained:
    a) Transaction Code : SBDSV1 - Maintenance View for BDS_LOCL Transparent Table
    b) Transaction Code : SBDSV2 - Maintenance View for BDS_CL_DOC Transparent Table (Here you can search the CLASS NAME & CLASS TYPE with the help of DOC_TYPE like u201CMEOORDERu201D for purchase order & other needful objects like INVOICES)
    c) Transaction Code : SBDSV3 - Maintenance transaction for V_BDS_CL View (Itu2019s a view of tables - BDS_CLASS & BDS_CLASSL)
    3) Transparent Table References:
    a) BDS_LOCL  - BDS: Assignment of Application Classes to KPro Doc. Classes
    b) BDS_CL_DOC - BDS: Class Definition
    c) BDS_CLASS -  BDS: Class Definition
    d) BDS_CLASSL - BDS: Language Table for Class Definition
    Please find below link for your further reference :
    http://www.architectsap.com/blog/sap/sap-bds-business-document-service-for-storage-of-documents-and-attachments-in-sap-ecc/
    Best Regards.
    Sudhanshu Garg

  • Any standard SMARTFORMS available for purchase order, sales order, invoice

    Hi,
    Any standard SMARTFORMS available for purchase order, sales order, invoice ?
    RR.

    Hi Rama,
    Goto NACE tcode-> choose the application u want( like billing for invoice, PO)->output type->output type->processing routineon left side
    Here u will find the standard program name and smartform .
    Hope it helps.
    Regards,
    Sonika

  • Dump in smartform driver program for purchase order

    i created one smartform with driver program for purchase order.
    in smartfrom i gave
    form interface: p_ebeln as import,   
                        tables as it_ekpo like ekpo.
    global definitions are
    wa_ekko type ekko for printing the  ekko data in one window,
                                           wa_ekpo type ekpo .
    in main window i took  the  one table and loop the ekpo table for  printing the item details.
    no errors is there.but ; when i call this generated function module to my driver program it goes to dump.
    in driver program i declare structures,internal tables,work areas, and parameter as p_ebeln .
    and also select statements for my table all are good.but its not work.
    in function module i pass the details as export p_ebeln = p_ebeln and table it_ekpo  = it_ekpo.
    and also i done debugging in this data come to the internal table and work areas.
    but it goes to dump.
    if u dont mind plz solve my problem.
    Thanks
    Navya.
    Moderator message: empty lines removed, subject corrected, please use meaningful subject lines when posting!
    Edited by: Thomas Zloch on Mar 24, 2011 10:10 AM

    Hi Navya,
    Your smartform is correct. But, as per my understanding, the dump comes when you call the smartform from the driver program. If that is the case, please check the input parameters and all th parameters in the program should be same as used in samrtform. Any deviation would lead to a dump.
    Analyse and resolve!!!
    Regards
    Atul Sachdeva

  • DRiver program for Purchase order smartform

    Hi,
    I am trying to use "smartform" for purchase order printout.
    But not getting any driver program to attach in NACE for this output type(NEU). Is there at all any standard SAP delivered program for this purpose ?
    If Yes, then what is it ?
    Thanks for your response..
    TS

    HI,
    Try this ..  
    goto the program  RS_ABAP_SOURCE_SCAN
    in the selection screen  give the form name in the search string  it will display the all driver programs .
    let me know any help....

  • Standard smartform for Purchase Order

    What is the standard smartforms for purchase order?Where can i find this?Give me print program for the same.

    Hi
    Preconfigured smartforms are not available on ECC 6.0. You have to either download from service.sap.com or migrate existing script to smartforms.
    Regards,
    Vishwa.

  • Custom SmartForm for Purchase Order Printing

    Hi,
    I need a customized smartform for purchase order, which is called after the standard transaction ME9F.
    I adjusted "Conditions for Output Control" by using transaction NACE  ( Erased the name of the form MEDRUCK, Entered my customized smartform's name under smartform Form part and chose the type as smartform )
    However, I couldn't success to see my printview whereas I continued to see the printview of Medruck.
    I'd searched for the problem through here and the net,  I found some names of smartforms such as: /SMB40/MMPO_L  and /SMB40/MMPO_A and their driver programs like: /SMB40/FM06P . The package which consists of these elements was mentioned as " /SMB40/ "... but despite I downloaded it, my system still doesn't have the elements.
    So, how can I use my own purchase order smartform or if i need the forms mentioned,  in which best practice package i can find them?
    SAP ECC 6.0
    SAP_APPL 604
    SAP_BASIS 701
    Thanks in advance,

    Hi,
    If your SAP doesnt have a standard smartform for PO, it is quite complicated to use smarform rather than sapscript.
    I guess that you will need to modify the program SAPFM06P that calls the sapscript and make it call the smartform.
    I will take a few time to adapt the sapscript.
    Regards
    Miguel

  • Smartform for purchase order.

    Hello friends,
        I am creating the smartform for purchase order printing whih is attached to output type ZNEU and that output type is used in ME23N.
        But at the time of creating versions in PO in ME22N it is giving error messages of diffrant types like form routine not present.
      Now  I want your opinion in deciding whether to go for new smartform for PO printing or I shoud procede with script MEDRUCK. If anyone have developed smartform for PO which supports versions, please suggest the wayout.
    Rgds,
    Madan

    Hello,
    You have to write form routines in the Driver program to trigger the form.
    Please Reward if helpful.
    Srujan.

  • Is there any function module for purchase order change

    Hi Experts,
    Is there any function module for purchase order change or i need to do new recording in me22n.
    Thanks,
    Senthil

    Hi
    Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
    Regards,
    Viven

  • Standard smartforms for purchase orders in scm server

    hi
    what are standard smartforms for purchase orders in scm server(not on R/3 server)
    in R/3 i know
    /SMB40/MMPO_UK
    /SMB40/MMPO_L
    /SMB40/MMPO_A
    but i want to know in SCM(Supply Chain Management) server
    Thanks,
    Phani

    check below may be u r looking for the same
    /SCA/ORDER_DESCRIPTION_AUTO
    /SCA/ORDER_NUMBER_AUTO
    /SCA/ORDER_NUMBER2_AUTO
    ~~Guduri

  • Need the SMARTFORM name for Purchase Order in ECC 6.0

    Hi experts,
              I have been working on ECC 6.0 version and I need your help in finding out the name of the SMARTFORM for Purchase Order. Please let me know the SmartForm name if anybody knows. Waiting for your replies.
    Regards,
    Ravi

    HI,
    We have the Smartforms in the Service.sap.com, you need to download from this one. in our SAP we do not have these smartforms .
    smartform name is /smb40/mmpo_l. Look at the SAP Note 695891
    Look at the below link
    Re: PURCHASE ORDER SMARTFORM   IN ECC 6.0
    <i>Mark all the helpful answers</i>
    Regards
    Sudheer

  • Purchase Order History in smartform

    Hi gr8 minds
    I have developed smartform for purchase order .
    now i wanna develop amendment purchse order .
    any idea how to go for it .
    thanks & regards
    siddharth

    Hi Siddharth,
    As Samir has suggested you have to get this information from CDHRD and CDPOS. In one of the posts yesterday, Andreas and Rob have nicely mentioned how to fetch data from Change Document.
    Updated record should come in txt file
    CALL FUNCTION 'CHANGEDOCUMENT_READ'
      EXPORTING
    *   ARCHIVE_HANDLE                   = 0
    *   CHANGENUMBER                     = ' '
    *   DATE_OF_CHANGE                   = '00000000'
        objectclass                      = '<b>EINKBELEG</b>'
        OBJECTID                         = EKKO-EBELN "PO Number
    *   TABLEKEY                         = ' '
    *   TABLENAME                        = ' '
    *   TIME_OF_CHANGE                   = '000000'
    *   USERNAME                         = ' '
    *   LOCAL_TIME                       = ' '
    *   TABLEKEY254                      = ' '
    *   KEYGUID                          = ' '
    *   DATE_UNTIL                       = '99991231'
    *   TIME_UNTIL                       = '235959'
      tables
        editpos                          =  editpos
    EXCEPTIONS
       NO_POSITION_FOUND                = 1
       WRONG_ACCESS_TO_ARCHIVE          = 2
       TIME_ZONE_CONVERSION_ERROR       = 3
       OTHERS                           = 4
    IF sy-subrc <> 0.
    ENDIF.
    Regards,
    Subramanian V.

  • Purchase order layout using Smartform

    Hi All,
    Can anyone let me know how to create Purchase order layout using smartforms and assigning it to output type.
    Is there standard smartform for purchase order?

    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    http://www.sap-basis-abap.com/sapsf001.htm
    http://help.sap.com/printdocu/core/Print46c/de/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    http://www.esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartforms.doc
    http://www.esnips.com/doc/97acb00a-e513-4611-91f0-c626f460bfc5/Smart_Form_Overview.pdf
    http://www.esnips.com/doc/77a981b9-8fe3-4fbb-8101-67745c1fe60c/SMART-FORMS_shail.ppt
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Try this. A simple sample Smart Form.
    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).
    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    SMARTFORMS GENERATION: (calling internal table fields)
    &#61656; Open a smartform using the tcode ‘smartforms’.
    &#61656; Usually form attributes shows admn data.
    &#61656; In the form interface declare import/export parameters if any. Else declare the tables in tables tab button.
    &#61656; In the windows and pages expand and create a table. It automatically generates header, main area and footer for the table.
    &#61656; In data tab button in the table we usually declare a work area to bring the data from se38. Like: ktab into wa. ( The purpose of declaring the wa is , to get the data of the ktab in to header from the body area of the internal table).
    &#61656; And in the tablepainter pushbutton in table we can have any no of line types. Depending on the requirement. ( for ex: If we want to devide a row in to 4 columns, we can devide it as 4,4,4,4cm as line type 1, And usually for the footer we don’t need no of columns, So, we declare it as one column with 16cm measure with the name line type 2.). We can use these line types in the tables.
    &#61656; In the header right click>>create>>tableline. It asks for line type. Select one line type which is appropriate.
    &#61656; Like same create a row2 in main area using right click. If we select the line type 1, it automatically generates 4 cells. We can create text in each cell as per requirement.
    &#61656; We can generate general attributes using general attributes tab button in the text. Or in the other way. We can switch on the field list on/off button from the application tool bar. It displays all the attributes in the left down corner of the screen. We can drag and drop the required fields in the general attributes tab button of the text.
    &#61656; We continue the same procedure for all the texts. The texts should be displayed in the gray color. Then only it can collects the data from the abap editor fields.
    &#61656; If it wont turns gray, we can check the fields in the editor by changing it to the line editor. The best thing is to drag the fields from the list, rather than declaring like &wa-matnr&
    &#61656; In the footer also we create a line type and in that table line we create text.
    SE38 PROGRAM(method I):
    REPORT Z_CALLING_SMARTFORM2 .
    tables: mara.
    select-options: S_MATNR for MARA-MATNR.
    DATA: kTAB LIKE MARA OCCURS 1 WITH HEADER LINE.
    data: FM_NAME TYPE RS38L_FNAM.
    SELECT * FROM MARA INTO TABLE kTAB WHERE MATNR in
    S_MATNR.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'Z_MYFIRST_FORM2'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    ktab = ktab
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IN THE OTHER WAY(method II):
    REPORT Z_CALLING_SMARTFORM2 .
    tables: mara.
    select-options: S_MATNR for MARA-MATNR.
    DATA: kTAB LIKE MARA OCCURS 1 WITH HEADER LINE.
    SELECT * FROM MARA INTO TABLE kTAB WHERE MATNR in S_MATNR.
    CALL FUNCTION '/1BCDWB/SF00000199'
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    ktab = ktab
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    In the method I we are calling the amartform dynamically using the function module 'SSF_FUNCTION_MODULE_NAME'.
    Here we are exporting form name and importing fm_name.
    So we need to declare the variable fm_name as
    data: FM_NAME TYPE RS38L_FNAM.
    We can have the type of the fm_name in the function module 'SSF_FUNCTION_MODULE_NAME' (in the export tab button).
    Since we are passin the name of the Function module generated by the smart form in to the fm_name variable. We run the function module with the name fm_name, but not the FM generated by the smartform(like /1BCDWB/SF00000199)¬¬¬¬¬¬.
    In the method II we directly call the smartform generated function module (i.e, /1BCDWB/SF00000199).
    But the method I is recommended. In the method I, The fm_name is a variable we don’t put it in the quotes while calling.
    In the both methods we declare the internal table using the like option, but not begin of…. end of. And in select statement we select *, But not individual fields.
    EX2:
    SMART FORM NAME: ZGITI_FORM1.
    SE38:
    REPORT Z_CALL_GIRI_FORM1 .
    TABLES: VBRK.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE T1.
    SELECT-OPTIONS: S_VBELN FOR VBRK-VBELN.
    SELECTION-SCREEN END OF BLOCK B1.
    *INITIALIZATION.
    *T1 = 'SELECTION-CRIETERIA'.
    DATA: BEGIN OF I_INVOICE OCCURS 1.
    INCLUDE STRUCTURE ZSTR_INVOICE.
    DATA: END OF I_INVOICE.
    DATA: VAR1 LIKE VBRP-NETWR.
    DATA: BEGIN OF I_ADDRESS OCCURS 1.
    INCLUDE STRUCTURE ZSTR_ADDRESS.
    DATA: END OF I_ADDRESS.
    DATA: BEGIN OF I_ORDER OCCURS 1.
    INCLUDE STRUCTURE ZSTR_ORDER.
    DATA: END OF I_ORDER.
    DATA: BEGIN OF I_ITEM OCCURS 1.
    INCLUDE STRUCTURE ZSTR_ITEM.
    DATA: END OF I_ITEM.
    DATA: BEGIN OF I_VBFA OCCURS 1,
    VBELV LIKE VBFA-VBELV,
    VBELN LIKE VBFA-VBELN,
    END OF I_VBFA.
    SELECT KUNAG VBELN VKORG VTWEG SPART FROM VBRK INTO TABLE I_INVOICE
    WHERE VBELN IN S_VBELN.
    IF I_INVOICE[] IS NOT INITIAL.
    SELECT KUNNR LAND1 NAME1 NAME2 ORT01 PSTLZ REGIO FROM
    KNA1 INTO CORRESPONDING FIELDS OF TABLE I_ADDRESS FOR ALL ENTRIES IN
    I_INVOICE WHERE KUNNR = I_INVOICE-KUNAG.
    ENDIF.
    IF I_INVOICE[] IS NOT INITIAL.
    SELECT VBELV VBELN FROM VBFA INTO TABLE I_VBFA FOR ALL ENTRIES IN
    I_INVOICE WHERE VBELN = I_INVOICE-VBELN.
    ENDIF.
    IF I_VBFA[] IS NOT INITIAL.
    SELECT VBELN BSTNK FROM VBAK INTO CORRESPONDING FIELDS OF TABLE I_ORDER
    FOR ALL ENTRIES IN I_VBFA WHERE VBELN = I_VBFA-VBELV.
    ENDIF.
    IF I_INVOICE[] IS NOT INITIAL.
    SELECT POSNR MATNR ARKTX FKIMG NETWR FROM VBRP INTO TABLE I_ITEM FOR ALL
    ENTRIES IN I_INVOICE WHERE VBELN = I_INVOICE-VBELN.
    ENDIF.
    LOOP AT I_ITEM.
    AT LAST.
    SUM.
    VAR1 = I_ITEM-NETWR.
    ENDAT.
    ENDLOOP.
    CALL FUNCTION '/1BCDWB/SF00000223'
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    var = VAR1
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    tables
    i_vbrk = I_INVOICE
    i_vbak = I_ORDER
    i_vbrp = I_ITEM
    i_kna1 = I_ADDRESS
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • PS - Set Commitment only for Purchase order

    Hi experts,
    I would like to know if its possible set in the Customizing, the  Commitment just for Purchase Order.
    Because, currently we have fixed Purchase Requisition and Purchase Order.
    Thanks in advance.
    Nacho

    Hi,
    SAP Note:955107 addresses this problem. You may refer the note, but for easy reference, relevant portios of the note are quoted below:
    Quote begins:
    Symptom
    The purchase requisition commitment should not be taken into account in the availability control.
    How can this be achieved?
    Reason and Prerequisites
    This is a customer request.
    It should be possible to enter purchase requisitions with any amount and only the resulting purchase orders should be checked by an availability control.
    Solution
    For Releases 4.6C, 4.70, 5.00 and 6.00 first implement the corrections from Note 955106 if you have not already done this.
    Afterwards proceed as follows.
    1. Create a utility program ZBPFCI21 of the 'Subroutine Pool' type. For the source code of the program refer to the attached correction instruction 488705.
                  Caution: Do not use a different name than ZBPFCI21.
    2. Adjust the source code within the utility program ZBPFCI21 as follows:
                  When the residual order plan should not be included in the assigned value of the availability control, activate the line
                           CLEAR cd_flag_pr_commitment_avac.
                  (That is, delete the sign '*' in front of the line.)
    3. Save and activate the ZBPFCI21 utility program.
    4. Reconstruct the assigned values of the availability control (Transactions KO31 for orders or CJBN for projects).
    Quote ends.
    Kindly acknowledge, if it meets your requirement.
    Muraleedharan.R

  • Invoice Recipt document for Purchase order

    Dear Gurus,
    I have a requirement to extract Invoice Recipt Document number & Invoice date for every purchase order into BW.
    I know that For purchase order details we used 2 datasources 1. ) 2LIS_02_SCL & 2.) 2LIS_02_ITM. Both the datasource do not have Material document number (BELNR) field. But these datasource read data from EKKO, EKPO & EKBE table and material document number field is availble in EKBE.
    I also know that this field along with PO purchase order category (BEWTP)= 'Q' we can get the invoice document no. But I am not sure if we can enhance this 'Material document number' field to datsources 2LIS_02_SCL & 2LIS_02_ITM.
    If we can, should the field be apended to both the datasource or can this requirement be facilitated by appending to any one of the datasource. Not sure about this. Can somebody help me or guide with how to proceed with this requirement.
    Thanks in advance,
    Sandeep.

    Hi Sandeep,
    I have not worked on this datasource but yes technically you can do it.
    As I understand, 2LIS_02_SCL is for header details of PO and PO has one to one relationship with Material Doc number.
    Therefore, if you requirement is to only bring in the header details for this Material doc, only enhance this datasource.
    Append this field to the datasource, then write the customer exit for this datasource.
    In this customer exit, you can write your code for deriving the Material doc number from EKBE based on the details available in e_t_data (for this datasource).
    But, if your requirement is to fetch line item details as well, you need to append the other datasource as well. And by writing the exit you can again derive the details from the table.
    Please note that the appended fields cannot be used to trigger any deltas, so if your requirement includes to trigger the delta if your material document changes, it cannot be done.
    Hope this helps.

Maybe you are looking for

  • How can I get rid of the Unwanted ads that are appearing in my e-mail display

    What appears to be the first e-mail is actually an ad. If I click on it it takes me to a website that is trying to sell me something. I can't get rid of it.

  • ConcurrentModificationException in drawing code

    Hi all, I'm getting a ConcurrentModificationException and I'm having a bit of a hard time figuring out how to prevent it - I can't even really understand why it happens yet. I'm running a simulation of moving bodies in some world, and am using a Swin

  • FTP Socket Exception

    Hi Group, In one of my File to File Scenario I am using FTP to connect remote server,from input directory XI picks up the file and in the message log it is showing that connected to FTP server and keep the file successfully,after that it is showing t

  • 11g R2: not able to deploy any objects

    Hi, I've got a huge problem: Since today I am no longer able to deploy any objects to our integration server. Normally we deploy our objects from our design repository to our integration-db with help of an expert. First I thought it would be an error

  • Sending streaming recorded FLV to end and stop

    I'm having a surprisingly hard time doing this. I have a recorded FLV which multiple users are simultaneously pushed into starting via a NetStream, streamed off of FMS. What I would like to do is allow the presenter to at any time push everyone, no m