Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 & Head-Text Elements

Hi all,
I hape that sb can help me with my problem.
I have created a ABAP-Program to create sales-orders with the function module:
BAPI_SALESORDER_CREATEFROMDAT2
Everythiunk works fine but I can not create text-elements (from the head) with this bapi.
I know that I have to use the table "ORDER_TEXT" but I do not know how to fill this table.
Can anybody help me?
Best regards,
pb974

Hi,
yes, you have to fill the order_text table. The following fields you have to fill:
DOC_NUMBER   
-> not to fill, let it blank
ITM_NUMBER     
-> if you want to create a header-text then fill ITM_NUMBER with '000000'
-> if you want to create a position-text then fill the related position-number '000010' or '000020'....
TEXT_ID
-> fill this field with the text-id for which you want to create the text.
-> The text-id must be defined in your customizing
LANGU
-> set the language for the text: 'E' or 'D' or......
LANGU_ISO
-> let it blank
FORMAT_COL
-> set a star (*) if you want to have the standard-format. If you have a special format defined in SapScript or in a Style you can set this one.
TEXT_LINE
-> fill in the text
FUNCTION
-> let it blank
see below:
data: i_text     LIKE bapisdtext  OCCURS 0 WITH HEADER LINE.
Texte...
        CLEAR i_text.
        i_text-itm_number  = '000010'.    "Text for Position 10
        i_text-text_id         = 'ZA10'.        "Defined Text-ID
        i_text-langu           = 'D'.             "Language German
        i_text-format_col    = '*'.              "Standardformat
        i_text-text_line       = 'This is text for Pos. 10 - line 2'.   "the text
        APPEND i_text.
...if your text has more then one row... the same one to do...
        i_text-itm_number  = '000010'.    "Text for Position 10
        i_text-text_id         = 'ZA10'.        "Defined Text-ID
        i_text-langu           = 'D'.             "Language German
        i_text-format_col    = '*'.              "Standardformat
        i_text-text_line       = 'This is text for Pos. 10 - line 2'.   "the text
        APPEND i_text.
...and so one...
and now text for position 20...
        CLEAR i_text.
        i_text-itm_number  = '000020'.    "Text for Position 20
        i_text-text_id         = 'ZA10'.        "Defined Text-ID
        i_text-langu           = 'D'.             "Language German
        i_text-format_col    = '*'.              "Standardformat
        i_text-text_line       = 'Text für Pos. 20 - Zeile 1'.   "the text
        APPEND i_text.
...and now the text for position in englisch
        i_text-itm_number  = '000020'.    "Text for Position 20
        i_text-text_id         = 'ZA10'.        "Defined Text-ID
        i_text-langu           = 'E'.             "Language German
        i_text-format_col    = '*'.              "Standardformat
        i_text-text_line       = 'This is text for Pos. 20 - line 1'.   "the text
        APPEND i_text.
I hope it's a help for you.
Erhard

Similar Messages

  • Can anyone recommend an alternative software programme to Pages? I have an OS X 10.7.5 macbook pro, so I am unable to get it. I want a programme that I can create docs with pictures and text on, invitations, posters etc. Many thanks in advance-..

    Can anyone recommend an alternative software programme to Pages? I have an OS X 10.7.5 macbook pro, so I am unable to get it. I want a programme that I can create docs with pictures and text on, invitations, posters etc. Many thanks in advance…..

    LibreOffice

  • Problem when dispalying Sales document header text.

    Hi All,
             I am facing problem when displaying header text of Sales document. my problem is that
    when we got to VA02 -> give sales document number  press enter
    once afer going inside that sales document -> Goto Header text  . In text tab, on left hand side we can find many text for whch corresponding text has written on Right hand side Text area.
    i want that text to be print on script.
    i tried even by pressing F1 but i could not find where that text stores in database.
    can any one please explain it how to dispaly the text that is written manually in  text area on Script.
    regards
    Prasadh.

    Hi,
    You must call function module 'READ_TEXT' with the following parameters:
    ID = The technical text id number (see table TTXID for OBJECT = 'VBBK' for a list of valid values)
    LANGUAGE = your local language
    NAME = sales document number (all 10 digits with any leading zeros)
    OBJECT = 'VBBK'
    You will need to call the function module once per text type id (the list on the left hand side in VA02, header texts screen).  The text from the right hand side will be in an internal table LINES after you call the 'READ_TEXT' function module.
    If you just want to print directly from VA02, then choose the details button which takes you to another screen with Print functionality.
    Regards,
    Jamie

  • Problems Creating Mappings with Collections with tools or workbench

    Hi -
    I am a new kodo user for my company. And am having a few problems in genereal with mapping objects with collections
    in them.
    I followed the tutorial on how to use the kodo workbench
    using the Passenger example. Build the java code and then
    tried to creat a new set of metadata. After going through
    this process I expected to see TWO tables. Something like
    'PAssenger' and something like 'Luggage' where luggage
    would be joined to passenger. However what I am getting
    is ONE table passenger with a BLOB field 'Luggage'. This
    has been a contant problem with me with any composite
    java class containing collection. Obviously I am configuring something wrong. Any help would be great.
    Thanks
    Matt

    Answered by one of my fellow and unknown colleagues that suddenly entered the room

  • Problem CREATE TABLE with PRIMARY KEY Still in Trouble ! Please Help!

    Hi there !
    I use the orcle 8i, and i don't know why i can't create table with any primary key EXample:
    SQL> CREATE TABLE O_caisses
    2 (No_caisse NUMBER(3) constraint caisses_pk PRIMARY KEY,
    3 NB_BILLETS NUMBER(5)
    4 )
    5 /
    CREATE TABLE O_caisses
    ERROR at line 1:
    ORA-18008: cannot find OUTLN schema
    ***********some Debuger show me this way: *********************
    Well there r certain point u got to notice when creating a table with constraints.
    1) U can create table with COLUMN level constraint.
    2) U can create table with TABLE level constraint.
    3) In COLUMN level constraint u can't give a constraint a name
    but only mention the type of constraint.
    4) In TABLE level constraint u can give a name to constraint.
    Following are the examples of both
    --COLUMN LEVEL
    CREATE TABLE O_caisses
    (No_caisse NUMBER(3) PRIMARY KEY,
    NB_BILLETS NUMBER(5));
    --TABLE LEVEL
    CREATE TABLE O_caisses
    (No_caisse NUMBER(3),
    NB_BILLETS NUMBER(5),
    constraint pk_caisse primary key (No_caisse));
    ********************And this is another one:*****************
    SQL>grant create any outline to username;
    BUT the problem is still present, i don't know what to do now !
    Please could some body help me !
    Thanks alot!
    Luong.

    The clue is in the error message: the OUTLN schema is missing.
    This is something Oracle 8i introduced to help manage the CBO (or soemthing equally geeky and internal). For some reason your database no longer has this user. It ought to be created automatically during installation (or upgrade) but catproct may not have completed probably or some over zealous admin type has dropped it.
    Solution is to re-install (or re-upgrade) as you cannot create this user on their own. Alas.
    HTH, APC

  • Multiple copies in Adobe form with different header text

    Hi All,
    I have created Adobe form for Invoice and now my requirement is when we create an invoice it should generate 4 copies with different texts like original copy, duplicate copy and triplicate copy.
    I know its possible in samrtforms using the copy window and maintaing text there.Is it possible in adobe form , if yes how can we achieve this.
    Regards
    Lalit

    Are you using a custom driver program?
    If yes, then loop the function module with the number of copies you have.
    the copy name should be a variable which should be passed to the form in the loop change the value of the copy control accordingly.
    Please let me know, if you see any issues.
    Thanks,
    Rakesh

  • Problem Creating PDF with Multiple Files in Pro. 7

    I'm using Adobe Acrobat Professional 7 on a computer with Windows XP.
    The problem is that when I try to create a PDF with multiple files everything just suddenly stops. There are 75 files involved and when it gets to around 41 or so (don't know the exact number because I turned away from my computer for just a moment), it just stops. There are no error messages; nothing. Just a blank Acrobat screen.
    Last week I had a different problem which was resolved by an uninstall/reinstall and I was able to create the PDF with those exact same 75 files, but after the PDF was created I realised that some changes needed to be made. I dumped the PDF, made the appropriate changes and left it for the weekend. Today I the new problem has arisen.
    Any ideas what the problem might be?

    I've read many discussions about Acrobat and problems with server files, with the general solution being what you are doing... copy the files to a local hard drive

  • Problem creating database with SAP Netweaver 7 sp 12

    Hello all,
    I have retrieved a new license from the website.
    The problem that I now have is that when I try to create a table, I am prompted for an access key. I input the developer access key (29671482393151224771) and it doesn't work.
    Please, does anybody know how I can remedy this?
    Thanks.

    hi henry,
    you cannot modify the standard sap tables and if the prefix does not start with Y or Z..it will ask for access key ...so while creating a table add Y or Z to the table name...
    not only for table name but also for classess,programs,screens etc..
    thanks
    jaideep
    <b><REMOVED BY MODERATOR></b>
    plz close the thread if it is answered..
    Message was edited by:
            Alvaro Tejada Galindo

  • EBS 11.5.1 - Problem creating user with NO APPS user

    Hi everybody.
    I am working on an EBS enviroment on demand that we are trying to set up for a Colombian customer. We are trying to set up the connector between Oracle IDentity Manager and EBS and it is not working.
    After some test cases we figured out that the main issues are related with the privileges that has the user that is going to interact with the EBS DB Procedures. In fact, we are trying to call this procedure:
    declare
    user1 varchar2(50);
    owner varchar2(50);
    begin
    user1 := 'USERNAME';
    owner := '-23432';
    fnd_user_pkg.CreateUser(user1,owner);
    end;
    IF WE RUN THIS SENTENCE OVER APPS USER (THE EBS ADMIN USER) IT WORKS. HOWEVER when we try to use the OIM user it throws the following error:
    Unable to create user USERNAME due to the following reason(s):
    Oracle error -1031: ORA-01031: insufficient privileges has been detected in FND_WEB_SEC.VALIDATE_PASSWORD..
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.FND_USER_PKG", line 869
    ORA-06512: at "APPS.FND_USER_PKG", line 915
    ORA-06512: at "APPS.FND_USER_PKG", line 1034
    ORA-06512: at line 1
    We already checked the FND_WEB_SEC Package (that has the VALIDATE_PASSWORD function) and it looks like the problem is when it calls the function VALIDATE_PASSWORD_JAVA wich tries to validate the password with a Java task. It looks like the OIM user doesn't have privileges to access this remote java function.
    Anyone knows wich is the real problem and how can i solve it??
    Many thanks for the help

    Hi everybody.
    I am working on an EBS enviroment on demand that we are trying to set up for a Colombian customer. We are trying to set up the connector between Oracle IDentity Manager and EBS and it is not working.
    After some test cases we figured out that the main issues are related with the privileges that has the user that is going to interact with the EBS DB Procedures. In fact, we are trying to call this procedure:
    declare
    user1 varchar2(50);
    owner varchar2(50);
    begin
    user1 := 'USERNAME';
    owner := '-23432';
    fnd_user_pkg.CreateUser(user1,owner);
    end;
    IF WE RUN THIS SENTENCE OVER APPS USER (THE EBS ADMIN USER) IT WORKS. HOWEVER when we try to use the OIM user it throws the following error:
    Unable to create user USERNAME due to the following reason(s):
    Oracle error -1031: ORA-01031: insufficient privileges has been detected in FND_WEB_SEC.VALIDATE_PASSWORD..
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.FND_USER_PKG", line 869
    ORA-06512: at "APPS.FND_USER_PKG", line 915
    ORA-06512: at "APPS.FND_USER_PKG", line 1034
    ORA-06512: at line 1
    We already checked the FND_WEB_SEC Package (that has the VALIDATE_PASSWORD function) and it looks like the problem is when it calls the function VALIDATE_PASSWORD_JAVA wich tries to validate the password with a Java task. It looks like the OIM user doesn't have privileges to access this remote java function.
    Anyone knows wich is the real problem and how can i solve it??
    Many thanks for the help

  • Box in a main window  with a header text in it

    Hi Abapers,
    I am new to sapscripts and have got an issue where a box  in the main window of the first page is not getting printed in the next page when the data is flowing to the next page .
    below is the code in the main window.
    BOX FRAME 10 TW HEIGHT 7 MM
    BOX YPOS 142 MM FRAME 10 TW HEIGHT 0 MM
    *BOX YPOS 26 MM FRAME 10 TW HEIGHT 10 MM
    *HEADING_TEXT
        Description                                              Value in &bkpf-waers&
    i have the same code in the main  window of the next page also
    what may be the problem here ?
    Thanks in advance .

    Hi Sai Ram,
    There is no condition palced before the box statement.
    The next page also has a main window designed similar to the first page and an additional address window and a footer .
    This page is printed as the last page and contains the page  as required , the problem is that all the other  pages which contain the data flowing from the first page donot contain the box header as desired .
    Please let me know if the requirement is not clear ,  i will try and put it in a better way .

  • Problem creating GIF with Photoshop CS6

    I am trying to create a simple banner as a GIF, however when running it in Chrome (or any other browser) it seems the different positions of the same layer in the anterior Frames, are visible.Here is the attached .gif. The psd has three frames and in each frame there is only one layer in different positions. Help pls !

    I don’t follow.
    Could you please post a screenshot with the pertinent Panels visible?

  • Problem creating table with foreign key in SQL Workshop

    Application Express version 2.2.1.00.04
    Get error message "Number of referencing columns/data types must match referenced columns"
    Master table SLS_SUPPLIERS has primary key SLS_ID NUMBER(8,0) and when creating table SLS_PRODUCTS with FK SLS_SLP_ID NUMBER(8,0) using the create table wizard I get the above error.
    The name of the FK is SLP_SLS_FK, key column is SLP_SLS_ID, referenced table is SLS_SUPPLIERS and referenced column is SLS_ID.
    Any help is much appreciated.
    James Edey
    I should add that if I create the table without the foreign key constraint and then create the constraint separately in SQL Workshop then it creates OK. It only fails in the create table wizard dialog.
    Message was edited by:
    edeyje
    Obviously no-one interested in this - just thought it may be a bug in v2.2 that the development team would find useful.
    James
    Message was edited by:
    edeyje

    I replied to the other thread on this too -
    there is a bug on that page when you click Next. If you define more than one fk but then navigate using the links on the process chart on the left (Constraints, Confirm, etc), the page works fine. We do have a bug on this now and I just added the notes I will need to get this fixed in 3.1 (I have already assigned it to me - must have some rogue validation that fires on next).
    Sorry it took so long for this to get noticed - I am glad I checked the forum this morning -
    -- Sharon

  • Problems creating program with Sneak Preview

    Hi
    I am a Java programmer who want to learn some ABAP and therefore I have downloaded the sneak preview ABAP. According to other people in here, the best way to start learning is "Teach yourself ABAP in 21 days" online in addition to help.sap.com.
    When I try to create a program from "Teach yourself ABAP in 21 days" I get a question if I want to "register the object". Anyone who knows what the "Access key" is for registering this object? Or am I way out of line when I try to combine this online book with the sneak preview??
    Feedback received with load greetings!

    Answered by one of my fellow and unknown colleagues that suddenly entered the room

  • Problem creating document with function ISH_N2_MEDICAL_DOCUMENT

    Hello,
    first of all, creating a document with correct data works. But our customer wants the documents also to be created if the name of the responsible employee is wrong or not existing.
    Can this be done in some way? Because when i try to use the function "ISH_N2_MEDICAL_DOCUMENT" i get the message "message employee NAME is not employee responsible" and the document is not created.
    regards
    Daniel

    Dear Daniel,
    basically you cannot create a medical document without an existing employee responsible (business partner). Depending on your system configuration the EmR may to be assigned to the documenting ou.
    So how you can deal with that restriction?
    a) use a dummy bp for these onces which doesn't exists. You can check BP by the IS-H BAPI for Business partners.
    b) create the BP on the fly before creating the document.
    Regards,
    Axel

  • 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

Maybe you are looking for

  • Should I be deinterlacing?

    Hello All, I've had some old 8mm movie film transferred.  It was transferred at 18fps and was shot (transferred) on SD digital video onto a miniDV tape.  When I'm editing this footage it has lots of jaggies on my iMac screen. I'm putting this footage

  • Processes in account stops or not?

    Hey all, just a quick question. Let's say I'm logged in to one account and doing some stuff there, like backing up or repairing the permissions. If I log into another account, will all those processes continue? Sounds simple, but I need to know. TIA!

  • IWeb not accepting changes

    I started a website a few weeks ago from scratch using iWeb 08. I had some pages set up with headings for future pages which were all linked to a little "under construction" Flash animation. As I make each new page I simply replace the hyperlink to t

  • Error in Primavera Analytics 3.1 (staretl issuing long data type error)

    Hi, While running ETL for Primavera Analytics 3.1 I am facing long data type error. Detailed session log can be found on below URL. http://pastebin.com/Ez0VihGN I have following environment. Primavera Analytics on Win2k8 64bit with 11g R2 DB. Primave

  • Lightroom 3.3 Performance Feedback

    Please use this discussion topic for your feedback on Lightroom 3.3 RC and the final Lightroom 3.3 release when it becomes available.  The Lightroom team has tried very hard to extract useful feedback from the following discussion topic but due to th