Problems for creating a header text in a Purchase Requisition by IDOC

Hello,
I´m creating Purchase Requisition by IDOC. I use PREQCR02  like basic type (   Message type PREQCR-Create purchase requisition )
I don´t have any proble for creating item text, but I can´t create a header one.
Any Idea?
thanks for all.

What is "it" that you cannot do (+ hate)???
What is "status"? LineStatus???
What is your problem when you try to skip an item?
PS: You should always use enums instead of hard-coded values e.g.: Use the BoAPARDocumentTypes Enumeration for delivery.Lines.BaseType

Similar Messages

  • Create a Header Text ID in Purchase Requisition

    Hi All,
    I have a requirement of creating a Header Text ID in Purchase Requisition.
    I tried to create it using SPRO but it only creates Texts for Item level.
    I think we can do it using copy control. Please share your input.
    Regards,
    Amit

    Hi Amit ...
    i dont think we can maintain Header Texts at PR header ( also check in MM forums )....
    what you can do is , maintain same text for Vendor(LFM1-Object) ..then it wll automatically can copy to following documents ..ie. PO.
    regards
    Prabhu

  • Header text mandatory in Purchase requisition

    Hello,
    Ho do i make the header text mandatory in my Purchase Requisition ?
    Regards
    Kasi

    Not Possible in Standard SAP. You Cannot Set the Header text field Mandatory for PR.
    Use Enhancement on Purchase Requisition MEREQ001
    You Can check Enhancements in SMOD by Packages

  • How to create column header text while downloading file

    How can we create column header text while downloading file using function GUI_DOWNLOAD(in SAP Release 4.6c) because there is no FIELDNAMES parameter in
    4.6c version.

    Hii,
      Check this sample code. I have called GUI_DOWNLOAD twice. Onetime to download header of table and next time data of table
    REPORT  z_file_download.
    DATA: w_name(90) TYPE c.
    DATA:
      BEGIN OF fs_flight,
        carrid   LIKE sflight-carrid,
        connid   LIKE sflight-connid,
        fldate   LIKE sflight-fldate,
        price    LIKE sflight-price,
        currency LIKE sflight-currency,
      END OF fs_flight.
    DATA:
      BEGIN OF fs_head,
        carrid(10) TYPE c,
        connid(10) TYPE c,
        fldate(10) TYPE c,
        price(10) TYPE c,
        curr(10) TYPE c,
      END OF fs_head.
    DATA:
      t_head LIKE
       TABLE OF
             fs_head.
    DATA:
      t_flight LIKE
         TABLE OF
               fs_flight.
    fs_head-carrid = 'CARRID'.
    fs_head-connid = 'CONNID'.
    fs_head-fldate = 'FLDATE'.
    fs_head-price  = 'PRICE'.
    fs_head-curr   = 'CURRENCY'.
    APPEND fs_head TO t_head.
    SELECT-OPTIONS:
      s_carrid FOR fs_flight-carrid.
    START-OF-SELECTION.
      SELECT carrid
             connid
             fldate
             price
             currency
        FROM sflight
        INTO TABLE t_flight
       WHERE carrid IN s_carrid.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                  =
        filename                      = 'D:\flight.xls'
       FILETYPE                      = 'ASC'
    *   APPEND                        = ' '
        WRITE_FIELD_SEPARATOR         = 'X'
    *   HEADER                        = '00'
    *   TRUNC_TRAILING_BLANKS         = ' '
    *   WRITE_LF                      = 'X'
    *   COL_SELECT                    = ' '
    *   COL_SELECT_MASK               = ' '
    *   DAT_MODE                      = ' '
    *   CONFIRM_OVERWRITE             = ' '
    *   NO_AUTH_CHECK                 = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   WRITE_BOM                     = ' '
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      = t_head
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF sy-subrc NE 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'D:\flight.xls'
          filetype                = 'ASC'
          append                  = 'X'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_flight
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc EQ 0.
        MESSAGE 'Download successful' TYPE 'I'.
      ENDIF.
      IF sy-subrc NE 0.
    *  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Abhijeet

  • Create PR header text via BAPI

    Dear all,
    Is there any BAPI which enable us to create the header text for the purchase requisition?
    I have tried out BAPI BAPI_REQUISITION_CREATE but the text creation is at item level.
    Please advise.
    Thank you in advance.

    Hi,
    Since the text could be read using FM 'READ_TEXT', then it should be able to save it using FM 'SAVE_TEXT'.
    Or you could use LSMW with direct input method with object 0001 method 0001 and program name /SAPDMC/SAP_LSMW_IMPORT_TEXTS.
    Another method is by using BDC after BAPI_REQUISITION_CREATE.
    Please note that above method only applicable if the PR is successfully created.
    Regards,
    Teddy Kurniawan

  • Dump after creating new header text on sales order and invoice.

    Hello,
    We have created one header text on sales order and the same text for invoices, on VOTXN customizing.
    Testing the new text, system let us save the text fine, but later, if we display the text, system give us dump error.
    My question is, after transport the customizing to the next environment, is necessary run a standard program. Since VOTXN, we have generated the new access created, but dump appear displaying text header tab.
    Any help on this?
    Thanks in advance

    Hello Customer master table man
    1) Did you review the dump analysis- ST22?  Do that because the dump amy or may not be related to the Text config changes.
    2) You are also mentioning about transporting?  Did you already transport and are facing this issue in the target client or is it happening in the source client and you want to avoid it in the target? OSS note 1117467 throws light on transporting issues.
    Review the following OSS notes:
    548615 - FAQ: Text determination in SD II
    548517 - FAQ: Text determination in SD I
    1117467 - Text Customizing change not transferred in target system II
    970153 - Change to Customizing text not transferred to target system
    Hope this helps.

  • Configuration path for Inbound delivery header text".

    Hi,
    I want separate text type for Inbound delivery, in transaction code VL31N.
    Can any body suggest on "Configuration path for Inbound delivery header text".
    Thanks & Regards
    Sudhansu

    Hi,
    Use Transaction VOTXN.
    *Select the radio button next to Delivery. and select Text types.
    *Go to new entries and create your own text ID after creating text ID go back to the previous screen and select change button.
    Create access sequence.
    select the access sequence you have created and double click ACCESS SEQUENCE FOR TEXT ID folder and Enter sequence number, Text object  and teh text ID you have created.
    Double click text procedure
    Select the text procedure which you are using for teh Delivery document type and double click TEXT ID IN TEXT PROCEDURE Folder.
    Assign the sequenec number TEXT ID and teh ACCESS sequence.
    Afer all teh above configuration steps the you can see the text ID in header text of billing document.
    To retrive teh contents of teh TEXT ID use Fuction module READ_TEXT with TEXT ID, LANG, NAME and TEXT OBJECT as input parameters.
    Note: The contents of the text ID will be in multiple lines of 70 characters each.
    Regards,
    Arun.S

  • Table Name for Sales Order Header Text.

    Hi.
    Whats the Table name for Sales Order Header Text???
    Reg,
    Amol

    Hi Amol,
    please Try to check the below link
    http://scn.sap.com/thread/1361272
    http://scn.sap.com/thread/416757
    https://scn.sap.com/thread/1909247
    https://scn.sap.com/thread/811915
    Regards,
    Gurunath

  • The Critical Problems for Creating Standby Database

    The Critical Problems for Creating Standby Database:(I want to create a physical standby database on the same system of the primary database)
    1. Should I copy all the backup datafiles, standby controlfile and password file to a same directory before the first time to mount the standby database?
    2. Before mounting the standby database, Should I change the datafile's name to a new one in the standby controlfile? How to change them?
    3. When issuing the command to mount the standby database, should I specify the controlfile's name.(using which controlfile to mount)
    These problems are not clearly secified in Oracle documentations.

    Can you point us to the Windows specific documentation you refer to?
    The parameter DB_FILE_NAME_CONVERT should take care of the new mapping for your datafiles (and LOG_FILE_NAME_CONVERT for logs), so you should be able to put them where you want and use the parameter to point Oracle to the correct location. You should not need to change the name in the controlfile.
    Place your standby controlfiles where you have the control files defined in your parameter file and Oracle should recofgnise that it is a standby db. You should not need to specify which controlfiles to use (if this is even possible), your CONTROL_FILES init parameter points to them.
    Not sure about the password file....my instances are on separate boxes and the password file has the same name on both primary and standby.

  • Table for Sales Order Header Text

    Hi,
    I want Table Name for Sales Data -> Header Text.
    Path--
    When we open the Sales order, Click on Display Document Header Details --> Here select the Text tab. Here, see the written text in Form Header (1st option).
    I want that table Name which contain the Header Text. Because If header text is more than 1 line, where it stores??
    Plz. help

    Hi,
    Text data are stored in tables STXH (Header) and STXL(Item).
    But you can't find the exact text in these tables as the text are stored in binary form.
    You need to use function module READ_TEXT to read any document texts.
    Check the link [Use FM READ_TEXT to Read the Various Text|http://www.sap-img.com/abap/use-fm--read-text-to-read-the-various-text.htm] which explains how to use this module to read the text.
    Regards,

  • "Creating many PO's using same Purchasing Requisition"

    Hi Gurus,
    How do one configure the system that when once a Purchase Requistion has been used to create a PO, u dont use it anymore, unless u delete the order i know it will be opened for use again, i know when i was still working at Transnet they had it that way. Now here you can create 2PO using one Purchase Requisition.
    Secondly, how do you configure the system that it gives you an Error message if you want to create a Standard PO using a Purchase Requisition of Document Type PA(Pojects). Currently it just gives a warning and some people just bypass that warning and eventually we have a wrong PO  Number.
    I put all my TRUST to The Forum for this Problems.
    Regards
    Charles

    Hi RiTiG,
    Thank you for the kind words, they are always welcome especially from other people that I respect such as yourself.
    Thank you for buying a copy of my book, I have heard that it is not easy to get hold of books such as this where you are (I have never found out why though?)
    As for my other book, it is called "SAP - A Map of the minefield" and if you liked the Invoice Veriifcation book then I beleive that you will enjoy this one even more. It has no screen shots, but it does cover a broad range of information about getting the most out of SAP and it has many sections (most in fact) that are some of the tricky parts of MM in full detail.
    I am not a great person (but thank you for that), I am just a person who has had chance to dig deep into the SAP functionality and see how great the system can be if used correctly, and I enjoy helping others to find out just how good the system can be also.
    Once again thank you for making my day with your comments, I wish you good luck, good health and a happy life.
    Steve B

  • How to configure Sales order item text copy to Purchase requisition item

    Hi,
    How to configure sales order item text copy to Purchase requisition text then copy to PO item text.
    Regards
    Jack

    Hi Rajesha,
    Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
    is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
    if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
    but this will be a bulky development, please let me know if we can shorten the development.
    Thanks again
    Anand

  • Create PR header text for local PR only

    Dear all,
    I want to create a new PR header text which is used for local PR ONLY.
    I used tran. code SE75 to craeted a new text ID for PR. After created, the new header text item appeared in all PR types. May I ask how to do if I wan this PR header text appeared in local PR only.
    Many thanks foe all of your ideas.
    Thanks
    Sunny

    Hi,
       As of my knowledge, the PO / PR texts CANT be created for a particular document type - It will be applicable for all document types in standard SAP. If you want the text to be visible for particular document type only, then you have to go for development.
    Regards,
    AKPT

  • PROBLEM IN CREATING BOM ITEM TEXT FROM TEXT FILE

    Hi All,
    I am developing interface program for creating BOM based on data it text file. in my text file contain three column(material, qty and longtext). These text i need to upload to BOM TCODE CS01). Using SAVE_TEXT I have generated text object. it don't says any error. But while viewing text in CS03, text is not visible. Give me suggestion or give me any other method for updating item text from textfile.
    Thanks in advance.
    Regards.
    Peranandam.

    Hi Carl,
    Actually problem is SAVE_TEXT updates text but I cant able to view in CSO3 transaction. because while creating BOM I forget for updating language key for long text. After updating language key I can able to view text in CS03.
    Now I am facing another problem. If I am executing program directly without going to debug mode, It is not updates text. Logic everything is correct. Give me some suggestions for solving this issue. I am also tried with commit work, Commit_text and wait up n seconds statement.
    Regards,
    Peranandam

  • Problems for create PO from SRM to ECC BADI BBP_ECS_PO_OUT_BADI

    Hello Experts
    I require your help in the following topic:
    I have created an extension to BBP_ECS_PO_OUT_BADI BADI, you can make an extension to data conditions of my code-PO annexe, however I get the following situation:
    When I have the active code, ie the lines are commented and gender programming the PO from the PO SRM creates no problems, but when I remove the comments, the PO is not created.
    I did a "debug" from SRM to see what was going on with my extension, so use the FM "BBP_PD_PO_TRANSFER_EXEC" and place corresponding to the creation of the PO in ECC breakpoint, verify that the data I am sending ECC arrived properly and when the BAPI "BAPI_PO_CREATE1" run will carry the data from SRM am expanding what I'm sending values ​​are within the BAPI tables:
               "lt_pocondheader"
               "lt_pocond"
    The BAPI_RETURN table returns the following messages:
    "1 E BAPI 1 No instance of object type PurchaseOrder has-been created External reference:. 0 PurchaseOrder POHEADER 1"
    My questions are:
    Why when I have commented lines of code if I create the PO from SRM?
    Why if I take the notes to the lines sends me the error message?
    As I researched the "http://scn.sap.com/thread/449080" mentioned that should not be used to create the PO. But to change it later.
    Indeed, when there is PO if I allowed to create the conditions, hence is derived my new question
    What is the BADI that I must use so that when the PO is generated, take I require the data to be saved to the same PO?
    On the other hand, in the same extension of BADI mentioned, I'm doing the addition of a "Partner", but when it comes to ECC not placed in the tab "Partners" and when I check the messages you send me the BAPI as All that tells me is:
    You could not make changes to the "Partners".
    The lines of code that joined the expansion are:
    CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
             EXPORTING
               i_guid is_header-guid =
             IMPORTING
               e_header = lw_header_po
             TABLES
               e_item = lt_item_po
               e_partner = lt_partner
               e_pridoc = lt_cond.
    IF lw_header_po-process_type EQ ZIPO 'OR lw_header_po-process_type EQ ZICP'.
    DATA: vl_type (2) TYPE c VALUE 'ZI'
    vl_num (2) TYPE c,
    vl_reg (2) TYPE n,
    vl_typef (4) TYPE c.
    DO 25 TIMES.
    vl_reg vl_reg = + 1.
    vl_num = vl_reg.
    Vl_type vl_num vl_typef CONCATENATE INTO.
               lw_cond_b-cond_st_no = '33'.
               lw_cond_b-cond_count = vl_num. "
               lw_cond_b-cond_type = vl_typef.
               lw_cond_b-cond_value = "0".
               lw_cond_b-is_header-currency = currency.
               lw_cond_b-applicatio = 'M'.
               lw_cond_b-STAT_CON = 'X'.
               lw_cond_b-change_id = 'I'.
               APPEND TO lw_cond_b ct_bapi_pocond.
               MOVE-CORRESPONDING TO lw_cond_b lw_condh.
               APPEND TO lw_condh ct_bapi_pocondheader.
             ENDDO.
             lw_poeikp-transport_mode = is_header-zexpvz.
             MOVE TO lw_poeikp cs_poexpimpheader.
           Lt_partner LOOP AT INTO WHERE lw_partner partner_fct EQ '00000711'.
             lw_p711-buspartno = lw_partner-partner_id.
             lw_p711-langu = 'E'.
             lw_p711-partnerdesc = 'TZ'.
             APPEND TO lw_p711 ct_bapi_popartner.
    endloop.
    endif. "
    I hope your answer, thanks.

    Do the config in SRM under Text Mapping > Text Mapping for Inbound and Outbound Texts.
    Hope this helps.
    -Bakulesh

Maybe you are looking for

  • Macbook Pro retina display gray screen on start up

    New Macbook pro 1 week old gets a grey screen on startup Tried to do a safeboot but it stops after 5 lines. any ideas???

  • HELP! How do I un-install and then RE-install Camera Raw 5.7 on my Mac?

    My CS4 would no longer open my RAW files (Canon 5D Mark II) and I was told (on this forum) that I needed to update my camera raw to 5.7. So I downloaded 5.7 but could not figure out HOW to get it installed in the proper place. After trying but not su

  • AP 11i : Is it possible to setup a workflow for price or qty holds

    Hello, I would like to know if someone has already setup a workflow in order to manage in the workflow the qty / price hold ? For invoices manually entered. My scenario would be the following : - Match an invoice to a PO, with differences on price or

  • How to do an interactive form with tables

    I've been asked to recreate an interactive form that was created using several tables. The tables are made up of cells that contain labels of what information is required, followed by blank cells where the user can put the information (text fields).

  • XI - Mail adapter scenario

    I am working on a scenario where XI will send the xml to the receiver via e-mail. I am not getting any e-mail from the XI system. Can I specify gmail or yahoo account ids along with the property settings? Do I have to do anything on the SCOT transact