BAPI_ACC_DOCUMENT_POST problem in header text(bktxt)
Hi experts,
Am using bapi BAPI_ACC_DOCUMENT_POST for gl upload for t-code f-02. the problem is header text(bktxt) is not uploading in fb03. how to solve this problem??
Regards,
Sunita.
Because BAPI: BAPI_ACC_DOCUMENT_POST will Check BADI with Posting
1.BADI Information:
(1)Object Type Name(Interface) is IF_EX_AC_DOCUMENT (T-code: SE24)
(2)Method: CHANGE_INITIAL & CHANGE_AFTER_CHECK
2.Reason:
(1)Once This BADI has been created for any reason,
BAPI:BAPI_ACC_DOCUMENT_CHECK & BAPI_ACC_DOCUMENT_POST
will check it for Document Header Text
(2)If Method: CHANGE_INITIAL & CHANGE_AFTER_CHECK has been created for any reason,
but Creator return an null Document Header Text, then BAPI will clear Document Header Text
3.Solution:
(1)Add source code into Method: CHANGE_INITIAL & CHANGE_AFTER_CHECK,
please refer to (2) for detail source code below
(2)
DATA: wa_header TYPE acchd.
IF sy-xprog EQ 'SAPLBPFC'.
*---<SAPLBPFC> is for Posting with BAPI: BAPI_ACC_DOCUMENT_CHECK
*---<SAPMSSY1> is for Test(Check) with BAPI: BAPI_ACC_DOCUMENT_POST
CLEAR wa_header.
wa_header = im_document-header.
ex_document-header-bktxt = wa_header-bktxt.
CLEAR wa_header.
ENDIF.
Similar Messages
-
Doc. Header Text (BKTXT) in MB1C
Hello Experts,
Requirement is to copy 501 mvt type into a new mvt type & for the new one, the field Doc. Header Text (BKTXT) should be made mandatory in MB1C t-code.
1)Whether any configuration available to achieve the same?
2)If it can be done through some enhancements, then whats the BADI/BAPI/Field Exit/User Exit available?
Please suggest.
Regards
MaheshHi Mahesh,
There is an enhancement point in form OK-CODE_PRUEFEN in MM07MF00 which could be used.
ENHANCEMENT-POINT OK-CODE_PRUEFEN_01 SPOTS ES_SAPMM07M.
If you put your check in here you should be able to get the desired result.
For future use, if you debug from the point where you want the check to occur you can normally find the enhancement points, or, identify where you can create an enhancement using an implicit enhancement point.
Regards,
John -
Problem for Header text of Contracts
Hi guys,
a suggest:I have created in customizing a new header text and I want display and manage it on header of contract but when I create the contract see always the standard header texts 'release order text', 'header text','header note' 'pricing type' 'deadlines' but my own header text number 17 there is not.
i have simply entered in customizing Contract>Texts for Contracts>Define Text Types for Header Texts and I have created the text with sequence numeber 17...how can I display it in header of contract?
I have seeked for in this forum but in all messages on text I don't find this problem
Thanks in advance
ByeHi,
am adding up...........
Please refer the below link......
http://www.sap-advisor.com/abap-coding/sap-text-administration-and-info-records-for-purchase-orders/
Hope it may help you...
Venkat. -
WD ABAP: Problem with Header text wrapping in Table Column
Hi,
I am unable to achieve Header Text wrapping for the TABLE columns. I have set the property "HeaderTextWrapping" to TRUE for each column and the "Fixed table layout" property has been set to TRUE.
Is there some property of the table/column I have to set to achieve this? Or does selection of a specific property remove option of HeaderText Wrapping?
Thanks,
Adithyahi..
Try increasing the width of column keeping other thing as it is as you have done. And yes check whether cell editor property wrapping is set true. -
Populate document header text in SES by bapi BAPI_ENTRYSHEET_CREATE
Hi,
I am using BAPI BAPI_ENTRYSHEET_CREATE to create a service entry sheet. But I am not able to populate the document header text (bktxt) in acceptance tab in service entry sheet header in ML81N.
Can anybody help me what I need to pass to this BAPI in order to populate this field.
Thanks,
MainakHey Mainak,
I am aware that the question was posted by you long back, but I am replying so that other readers probably can benefit from the answer below -
I faced the similar issue recently in one of the projects. The solution that i have opted is as below -
1. I leveraged the changing parameter 'ESSR' work area of the user exit 'EXIT_SAPLMLSR_010'. This user exit is internally called via BAPI_ENTRYSHEET_CREATE.
2. You can export the value of 'ESSR-BKTXT' field to memory ID from the calling program and import it within this user exit and pass it to changing parameter ESSR.
Hope this helps to other readers!
- Thanks,
Urvi. -
hi,
may i know why there is no doc header text(bktxt) in selection screen or dynamic selection of FB03 or FBL3N?
which tcode that displays fi document with the doc header text field in the selection screen?
thanks
rgdsHi,
you can see in table level
TCode SE16
Table name BKPF :
FI Document header details stored in this table like document number, document date, posting date, entry date, reference, header text, exchange rate, document type, etc.,
For each document it will store only one entry in the table.
This may update if any changes made in the document header like change in the header text / reference field.
Other than the above fields, some other fields also get updated like document change date, document reversal details (document number, date reversed)etc.,
SKS -
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 -
Problem with small text in iview header
hi,
i got a little problem with iView header.
I've set 2 pages containing the same iViews. The 2 pages have layout (1 column full width -- standard) and the 2 pages have the same properties, themes.
The problem is that in the first page the header text is very small and in the second one the header text display correctly.
Have anyone had this problem and how did you solve it ?
Thanks in advance.Hi,
I don't have a straight answer but:
1. Have you tried creating a copy of the page which is working correctly?
2. Why do you need two pages with the same content? Personally, I can't see any reason for maintaining two identical objects.
Roy -
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,
pb974Hi,
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 -
Hi,
Im trying to display the header text of PO order in the last page of my form. But the text may be unlimited, so in that case i have kept the text-element printing that text in the main window of the last page instead of keeping it in a separate window.
Now, since its in main window the data is getting printed in other pages also (data is getting overlapped). I tried protect,endprotect but still the problem persists. I also tried to keep the other window as the main window. Its not printing the text.
Any suggestions?HI Sudharsana,
Call this text element in the driver program...
at last
call function 'WRITE_FORM'
exporting
element = 'PO_TEXT'
Regards,
Sravanthi -
Validate Header Text (MKPF-BKTXT) in Migo
Hi experts, I'm new in SAP OO.
I need to validate the header text in Migo. We put in this field the number of invoice of goods receipt. Users sometimes make mistakes and re-enter the same invoice number, making problems in the stock. I need don't duplicate the register of this invoice.
I tried to implement BADI MB_DOCUMENT_BADI Method MB_DOCUMENT_BEFORE_UPDATE but I don't know how to do it.
Or exist other way to do it?
Please give me, if possible, some example.
Thanks in advance.
HugoFor BADI Implementation, you use SE19 to create new implementation using classic BADI. You enter MB_DOCUMENT_BADI in BADI name and click create implementation. Then you enter your own implementation. Then you can double click on the method and enter your code there. Note that you will need to activate the implementation before able to use it.
-
Order header text problems when using transaction EC20 (front office)
Hello all,
I am to debug a problem. I use transaction EC20 to capture information about connection objects and devices followed by creation of a work order. At one point in time I am presented with a screen where I can enter order header text (looks like SAPscript lines of text). However, even if I enter 3, 4 or more lines, only the first line of the text is captured.
I then use transaction IW33 to look at the order and will see the first line only. Any idea if this is a SAP bug, or something else. If SAP bug, then any OSS note or remedy?
Your help is greatly appreciated.
AGHi,
the screen you said look like a script editor screen is actually for trext maintainence...you can find such screen in se 38 documentation tab.this screen still exists because 3.1 and the versions before were using this screen for editor.
now when you say it captures only 1 line just go and find out the length of that particular field.If.
Please let me know if the problem still exists
Thanks
vivekanand -
BKPF-BKTXT (Doc header text source) for RV doc
Does anyone know if the doc header text for RV doc can be maintained anywhere in the source SD doc, so that it can be transfered to the RV accounting doc?
ThanksDoes anyone know if the doc header text for RV doc can be maintained anywhere in the source SD doc, so that it can be transfered to the RV accounting doc?
Thanks -
Header text update problem for BAPI_CONTRACT_CREATE
Hi,
We are in the process of converting the BDC for Contract creation ME31 into BAPI.
For the purpose we had identified the BAPI,
BAPI_CONTRACT_CREATE.
The bapi works fine , except it doest not update the Header Text.
The parameters passed for header text are
Text ID : K01.
Text Form : *
Text line : ( Header text content).
We are working on ECC6.0.
Pls advice me how to proceed.
Regards
harishHi Harish,
Can you please give me a brief idea on how you are using this BAPI?
1) What would be the format of excel file?
2) Does the BAPI work for both create and update ?
3) Any know limitation ?
4) Any documentation you have or you can point me to on the web regarding this BAPI?
Thanks
AK -
FI document Header text formation using tcode F110 (Automatic payment )
After completion of tcode F110 i.e. completion of a cycle of automatic payment transaction
Then we can see header text of created FI document number by using tcode fb03.
But the header text created through F110 has a concatenation of Run Date and Identification.
There is problem that how it can happen?
I have gone through all program code; there is no such direct coding for concatenation of header text, rather concatenate happens at different level of coding.
We can create FI document using FB01 also and there is choice to enter Header text manually as well as we can select it using F4 help.
Any one has any IDEA regarding this?
Thanks,
SuyogHi
I'm not sure it's helpful answer. The code below shows the way to change FI document header text (BKPF-BKTXT).
tables: bkdf, bkpf, bsec, bsed, bseg, bset.
constants: c_bukrs type bkpf-bukrs value '11',
c_belnr type bkpf-belnr value '1900000001',
c_gjahr type bkpf-gjahr value '2011'.
data: t_bkdf type standard table of bkdf with header line,
t_bkpf type standard table of bkpf with header line,
t_bsec type standard table of bsec with header line,
t_bsed type standard table of bsed with header line,
t_bseg type standard table of bseg with header line,
t_bset type standard table of bset with header line.
start-of-selection.
* BKDF
select *
from bkdf
into table t_bkdf
where bukrs eq c_bukrs and
belnr eq c_belnr and
gjahr eq c_gjahr.
* BKPF
select *
from bkpf
into table t_bkpf
where bukrs eq c_bukrs and
belnr eq c_belnr and
gjahr eq c_gjahr.
loop at t_bkpf.
concatenate t_bkpf-bktxt '-R'
into t_bkpf-bktxt.
modify t_bkpf.
endloop.
* BSEC
select *
from bsec
into table t_bsec
where bukrs eq c_bukrs and
belnr eq c_belnr and
gjahr eq c_gjahr.
* BSED
select *
from bsed
into table t_bsed
where bukrs eq c_bukrs and
belnr eq c_belnr and
gjahr eq c_gjahr.
* BSEG
select *
from bseg
into table t_bseg
where bukrs eq c_bukrs and
belnr eq c_belnr and
gjahr eq c_gjahr.
* BSET
select *
from bset
into table t_bset
where bukrs eq c_bukrs and
belnr eq c_belnr and
gjahr eq c_gjahr.
end-of-selection.
call function 'CHANGE_DOCUMENT'
tables
t_bkdf = t_bkdf
t_bkpf = t_bkpf
t_bsec = t_bsec
t_bsed = t_bsed
t_bseg = t_bseg
t_bset = t_bset
* T_BSEG_ADD =
hope it's help.
Peerasit
Maybe you are looking for
-
Incipient hard disk failure; restore to OS 10.6?
My MBP, purchased new in mid-2008, has persevered through much. Unfortunately, it seems there are signs that my nearly 5 year old 250 GB internal HDD is on its last leg. When the drive wakes up, there will often be a clunking noise accompanying the
-
Acrobat Pro X Shared Review email issue
One of our agency users is having problems sending shared reviews. When she gets to the final step of sending the shared review the TO: field will not allow her to add e-mail addresses either manually or via the Outlook address book. This happens s
-
Problem with Scorecard and Numeric Format
Hi, I need some help with the Scorecard component. i'm using Xcelsius 2008 SP 3.3, and MS Office 2007. Everything is working great until i set the format of labels to numeric with negative value being red. Then, if the value is negative, my alert i
-
everytime i type in the code for my 25 dollar itunes card it just keeps telling me to enter in my password... over and over again. Please help!
-
Anyone know what this contraption is?
Hi I've just moved into a house and have seen this contraption in the cupboard under the stairs. Any ideas what it is? thanks R Solved! Go to Solution.