Substitute item line text (BSEG-SGTXT)
Dear all,
I have some questions here. For example, in tcode FB60, we enter the vendor code, invoice date, amount, tax, etc. When click on simulate, there will be another line item for Tax Input(if we select the tax). One of my requirement is, if user enter any text at the basic data tab (SGTXT), i would like to copy the text (BSEG-SGTXT) to the TAX INPUT text (BSEG-SGTXT), means different line item. When i click save for park documents, the tax input text needs to be saved too. So when i view in tcode FB03, the Tax input text will also have the same value as the vendor line item text. As well as after i post the documents, the Tax Input text should also be there.
I have tried to use Substitution. When i click Simulate, the value did copy from vendor line item to Tax Input line item text. But after i click save, i check the document, the text at the Tax Input line item is not there.
In my Prerequisite, i put tcode = FB60. Substitution, i am using BSEG-SGTXT substitute by exit. I have copy the program RGGBS000 to a new program and assign the exit. May i know how can i pass the whole item table instead of checking in structure BSEG in the exit? Because the main point is, the vendor line item and the Tax input line item are different. I want to copy different line item text into different line item text.
Can anyone guide me into this?
Thanks a lot. Appreciate it!
Hi Starry,
Use PROCESS BTE not INTERFACE BTE. Process BTE has the following Parameters :
FUNCTION ZSAMPLE_PROCESS_00001120.
*"*"Local Interface:
*" IMPORTING
*" VALUE(I_BKDF) TYPE BKDF OPTIONAL
*" TABLES
*" T_BKPF STRUCTURE BKPF
*" T_BSEG STRUCTURE BSEG
*" T_BKPFSUB STRUCTURE BKPF_SUBST
*" T_BSEGSUB STRUCTURE BSEG_SUBST
*" T_BSEC STRUCTURE BSEC OPTIONAL
*" CHANGING
*" REFERENCE(I_BKDFSUB) TYPE BKDF_SUBST OPTIONAL
Follow the instruction which I had posted earlier. Also check the documentation of the FM. Some important part am pasting here :
The current document headers (there will be more than one for cross-company code transactions, for example), the corresponding line items and the recurring entry data for the document header and the one-time account data are transferred to the additional component, for information purposes only. You must not edit this data. Instead, two additional tables (T_BKPFSUB and T_BSEGSUB) and the structure BKDF_SUBST are also transferred. The contents of the fields that can be substituted are entered in these tables. Field TABIX contains a line number which shows from which line in T_BSEG or T_BKPF the field contents originate.
Thanks & Regards,
Faheem.
Similar Messages
-
Item text (BSEG-SGTXT) is not getting updated in Payment document generated
Hi All,
Item text (BSEG-SGTXT) is not getting updated in Payment document generated through F110.
After generating the payment document via Transaction Code u2013 F110, system is not updating the
Text field (BSEG-SGTXT) in the payment document with the text that we have entered in the Invoice (MIRO or FI Invoice).
In case of manual payment (F-53) we can input the text manually hence that will get updated in
payment document but this thing is not possible with F110.
How can I update it?
Is there any configuration for that?
Thanks
Daniel DortaHi All,
I've applied the two notes as recommended. However, when I run FBL3N for payment run items, the Text field is update with wrong data, i.e. not from the Text field in FB60
Thus, I'll like someone to help me with what should exactly be done on the 'Step', 'Pre-requisite' and 'Substitution' side of the Substitution rule (TCode GGB1), I did not fill anything in the Pre-requisite box - is this right?
Thanx in advance. -
Enhancement for VL02N to update the item text(BSEG-SGTXT) during PGI
Hello all,
Actually, I need your help experts. I am trying to update the item text(BSEG-SGTXT) for accounting documents with the sales order number during their creation(post goods issue) from transaction VL02N, VL01N, VL09.
I have checked the 17 exits available for these transactions and non of these 17 exits allow me to modify the item text(BSEG-SGTXT). I am currently investigating on the two badi's available for these transactions.
I am not sure if it possible to make these modifications via Badi's.
Does anyone have any idea or technique that can help me to find a way to modify/update the item text(BSEG-SGTXT) for any accounting document generated during post goods issue using transaction VL02N, VL01N, VL09?
Thanks a lot in advance for your help experts.
Kind Regards,
BryanHello Ankur Agrawal,
Thanks a lot for your help.
I got the item text from the mentioned BADI. I will get back to this post if it works.
Thank again for your quick reply.
Kind Regards,
Bryan -
Hi,
The standard program RFBIBL00 does FAE(FI) posting in our custom program.
For doing so, we are passing a file with all the revenue G/L account details based on the structure BSEG.
The standard program creates a document for the FI posting.
When we view the document in transaction FB03, posting has been made for all the revenue G/L accounts and
also the corresponding VAT G/L accounts and the exact Tax amount has been determined by the standard program and posting has been made for the same.
But the Text field (BSEG-SGTXT) is empty for the VAT G/L accounts, since those account details has been determined in run-time by the standard program.
NOTE: Text fields have the constant value only for the revenue G/L accounts, since we pass to the file to the standard program only for the revenue G/L accounts.
Our requirement is to add the value in the text field for a particular VAT G/L account.
Kindly suggest few methods to add the constant value in the text field for a particular G/L account of the document through our custom program.
Thanks in Advance.
Yogesh.Thanks for your quick answer,
I have checked the table BSAS as well, it also has no entries corresponding the above G/Laccount.
I can find the entries in BSEG for that G/L, but since it does not have the G/L account as primary key
my program will take very long processing time as the user will give range of G/L accounts.
When I Check the Report FS10N with the same G/L account, and double click to see the lineitems
it also gives me the message 'no line items found' eventhough it shows some amount in the first screen.
Salman Zahir -
Unable to print BSEG-SGTXT in Main window - SAP Script
Hi
I have an issue in Scripts.
I want to print BSEG-SGTXT in my Main Window and below is my code but i am unable to print the text. while debugging, i am getting value in zsgtxt field, but i am unable to get/print in script.
can any one help me why it's not printing? and plese suggest where it's wrong.
In Main window:
/: PERFORM TEXT IN PROGRAM ZFIGS_CHECK_PRINTING
/: USING ®UP-BELNR&
/: CHANGING &ZSGTXT&
/: ENDPERFORM
CH &ZSGTXT&
In Subroutine pool:
FORM text TABLES intab STRUCTURE itcsy
outtab STRUCTURE itcsy.
DATA: zbelnr(10),
zsgtxt LIKE bseg-sgtxt.
READ TABLE intab WITH KEY name = 'REGUP-BELNR' .
IF sy-subrc = 0.
MOVE intab-value TO zbelnr.
SELECT SINGLE sgtxt INTO zsgtxt FROM bseg
WHERE bukrs = '8140' AND
belnr = zbelnr.
IF sy-subrc = 0.
MOVE zsgtxt TO outtab-value.
MODIFY outtab INDEX sy-tabix.
ENDIF.
ENDIF.
ENDFORM.
Thanks,
SivaHi,
Can any one tell how to write loop statement in Main window to display BSEG-SGTXT. As i am getting text (BSEG-SGTXT) from subroutine pool and calling into Main window using Perform statement and printing duplicate text in multiple times insted of different text.
Thanks,
Siva -
Changing the length of BSEG-SGTXT (Accounting document line item text)
Hi ,
I came across a requirement where my business user wants to add more information (greater than 50 char) to BSEG-SGTXT field. It is uncommon and not recommended to change SAP provided data definitions (BSEG-SGTXT) but my business user badly needed this enhancement. I was wondering any of you come across this kind of situation? I need your suggestions & valuable input to enhance this field BSEG-SGTXT.
Thank you for reading this post and I appreciate all your inputs.
Kumar.Hi
I recommend not to do this. This BSEG table could have impact on lot of things, even in future uprade too.
regards
Srinivas -
Substitute in Line Item Test (BSEG-GSBER)
Dear all,
I have some questions here. For example, in tcode MIRO, we entered the required information. When click on simulate, there will be another line item for Tax Input lines.
One of my requirement is, PICK the Business Area field (GSBER) data for the Vendor line item and update in the Taxes lines with this data in GSBER field, I would like to copy the Vendor line item text (BSEG-GSBER) to the TAX INPUT(BSEG-GSBER), means different line item.
I will copy the value of the field BSEG-GSBER on the condition WHERE BSEG-KOART = 'K'.
Now i got the business area but my QUESTION is HOW to paste this business area on the line items based on the condition WHERE BSEG-BUZID = 'T' in the structure i.e. before saving the table BSEG.
When i click save for park documents, the tax input text needs to be saved too. So when i view in tcode FB03, the Tax input text will also have the same value as the vendor line item text. As well as after i post the documents, the Tax Input text should also be there.
The main point is, the vendor line item and the Tax input line item are different. I want to copy vendor line item business area into tax input line business area i.e. different line item text into different line item text.
Can anyone guide me into this?
Thanks a lot. Appreciate it!Hello Sir,
As you said I changed EXIT-PARAM to C_EXIT_PARAM_CLASS, but after changing this debugger is not triggering. When I'm using CLASS my EXIT name is not coming in GGB1. Please suggest me where I've to make changes.
Below is my code....
exits-name = 'U197'.
exits-param = c_exit_param_class.
exits-title = 'Enhancement For Business Area In Miro'.
append exits.
form u197 using bool_data type gb002_015
changing b_result.
lt_data-bseg[] = bool_data-bseg[].
read table lt_data-bseg[] into ls_bseg with key koart = 'K'.
if sy-subrc eq 0.
v_gsber = ls_bseg-gsber.
endif.
if sy-tcode = 'MIRO'.
loop at lt_data-bseg[] into ls_bseg where koart ne 'K'.
if ls_bseg-gsber = v_gsber.
else.
b_result = b_false.
endif.
endloop.
clear ls_bseg.
endif.
Thanks in Advance.
Regards,
Hardik B -
Hi Friends,
I have a requirement that, whenever we created the PO that has PIR in line item, the text is getting stored in EINA or EINE table.
so here the businees need to move the text which storing in EINA / EINE to ekpo text id up on saving.
please suggest how i need to proceed with this issue.
Thanks in Advance,
kasi.Hi Madan,
Thank you for your reply.
As per your suggestions I found BADI ME_PROCESS_PO_CUST.
Could you please help me how to read the "Info record PO text" for each line item in the purchase order and i want to save the readed text into EKPO-txz01.
Thanks in Advance,
kasi. -
New lines created in excel when displaying multi-line text item value
Hi all,
I put the value of a multi-line text-item into a csv file :
DECLARE
file_filter VARCHAR2(256) := 'Export Files (*.csv)/*.csv/All Files (*.*)/*.*/';
fExp VARCHAR2(256);
in_file Text_IO.File_Type;
linebuf VARCHAR2(4000);
BEGIN
fExp := get_file_name ( directory_name, file_name, file_filter, NULL, SAVE_FILE, TRUE);
IF fExp IS NOT NULL
THEN
set_application_property(cursor_style,'BUSY');
in_file := Text_IO.Fopen( fExp, 'W');
linebuf := NVL(:com_bnc_possibles.LIBEL_TRAITE,'') || ';' ||
NVL(:com_bnc_possibles.NUM_ANFR_ID,'') || ';' ||
NVL(:com_bnc_possibles.ver_fiche,'') || ';' ||
NVL(:com_bnc_possibles.titre,'') || ';' ||
NVL(to_char(:com_bnc_possibles.date_creat, 'dd/mm/yyyy'),'') || ';' ||
NVL(to_char(:com_bnc_possibles.date_valide, 'dd/mm/yyyy'),'') || ';' ||
NVL(:com_bnc_possibles.LIBEL_STATUT,'') || ';' ||
NVL(:com_bnc_possibles.label_reg,'') || ';' ||
NVL(:com_bnc_possibles.nom,'') || ';' ||
NVL(:com_bnc_possibles.prenom,'') || ';' ||
NVL(:com_bnc_possibles.nom_societe,'') || ';' ||
NVL(:com_bnc_possibles.comp_bnc,'') || ';' ||
NVL(:com_bnc_possibles.motifs,'') || ';' ;
Text_IO.Put_Line( in_file, linebuf);
Text_IO.Fclose( in_file);
set_application_property(cursor_style,'DEFAULT');
END IF;
END;
And when I opened the csv file then the remaining lines , that is from the second line , of the column "motifs" are displayed through the column A of excel. The "motifs" multi-line text-item has 500 as its Maximum Length property value, and has a Char Data Type property value.
So how to display all the motifs' lines through the same column M without displaying the remaining lines in column A ?
Or are there tips to remove CHR(13) characters from a multi-line text-item ?
Thank you very much indeed.
Message was edited by:
andrianiainaHi,
I tried to do it in different way. What i did is I have created a item of type formattted text and set its text like:--
<html>User authentication failed. <br*> Cause: Invalid password.</html> --remove *
So I am able to see the prompt like :-
User authentication failed.
Cause: Invalid password.
Hope this helps you...
Thanks
--Anil -
Text not found for item line in PO
Hi,
When creating an item line in ME23N, I get the error message:
TEXT ID Z155 language EN not found.
When are these texts maintained ?Hi,
use READ_TEXT FM.
goto se37 READ_TEXT keep brk-pt in source code...
run ur transaction ME23N ull come to know whats happ........
Cheers,
Will. -
Item Message text LTxt 2A Message(s) when structuring line items for
Hi ,
Please can any body help on this below errror message.
At the time of executing depreciation (AFAB) we are getting below error message.
Item Message text LTxt
2A Message(s) when structuring line items for document number ERROR00001
2A Account 'Accumulated dep. account unpl. deprec.' could not be found for area 01
END Error messages after processing of assets
END Posting run ended with errors
Please can any body help on this issue.
Thanks in advance for your help.
Edited by: seshu_sapfico on Nov 2, 2009 5:12 PMHi Seshu
Please go to T-code AO90 and assign an accumulated depreciation account .
To find the correct place , check your asset class and check which account determination you have in it.
Once you know your account determination go to T-code AO90
enter chart of depreciation
double click on account determination on left hand side of screen
click on correct account determination on right hand side
double click on depreciation a/c on left hand side
and enter your g/l for Acc.dep. accnt.for ordinary depreciation
hope this should solve your problem
Thanks and regards
Sanjeev -
Regarding Forms Look & Fell 1.3.8 (Hyperlink in sigle line text item PJC)
I am using single line text item PJC in my form. I have a tabular block in which one text item implementation calss property is set to "oracle.forms.fd.LAF_XP_TextField".
Following code is written on when-timer-expire code
If lower(Get_Application_Property( TIMER_NAME )) = 'laf_timer' Then
Set_Custom_Property( 'CTRL.BEAN', 1, 'SEARCH_TEXT_ITEMS','') ;
Set_Custom_Property( 'FIN_ORD.ORD', 1, 'ENABLE_EVENTS', 'fin_ord.ord,true' ) ;
Set_Custom_Property( 'FIN_ORD.ORD' , 1, 'SET_HYPER_LINK', 'ORD');
End If;
When form run & after data execution only first record textbox show the hyperlink but no other textbox shows hyperlink except then first record.
Please guide.Hello,
Please, ask questions concerning the LAF on the dedicated email : [email protected]
In you case, it is a generic issue using the Set_Custom_Property() built-in. If you want to set the property on every record, use the ALL_ROWS keyword in place of second argument.
Regards,
Francois
Edited by: Francois Degrelle on Jun 29, 2009 3:02 PM -
Print line number only on item lines (not text lines)
Hi everyone,
I need to print the line number on a document only for the item lines, not the text lines.
I also want the line number serie to be in a straight ascending serie, not just to skip the numbering on the text lines.
Like this
Item Description Price
1 123 Item 123 100 EUR
This is a special offer for you!
2 456 Item 456 275 EUR
3 678 Item 678 300 EUR
This item is not on stock.
4 888 Item 888 350 EUR
Any hints?
Thank you!
//SusannaHi Susanna,
You probably need an UDF to achieve your goal. There is no formula supporting your requirement.
Thanks,
Gordon -
F110 - Payment document Text field SGTXT ?
Hi
Experts,
The requirement is that Payment Document needs to have the same Text (field SGTXT) as the invoice document.
If someone knows how to do this I will also appreciate your answer.
Anil
Edited by: Anil Kumar on Oct 14, 2011 8:45 AMThe field BSEG-SGTXT is not filled into the payment/clearing document by F110 because a payment document can be used to pay a lot of invoices and in this situation the payment program will not know from which of the many invoices the BSEG-SGTXT should be taken from.
If you want to have SGTXT from the invoice in the payment transfer medium you have to write a "*" in front of the SGTXT from the invoice. In this case the value from SGTXT is taken into REGUP-SGTXT and can be used for the payment medium.
However, the same text will not appear in the line item text of the payment document. If you want to see the same text in the payment document:
One solution would be to create a substitution. You can create a substitution in accounting documents at callup point 2 to fill SGTXT with the vendor code LIFNR for example.
If you want to have the SGTXT copied from the invoice you could create a clearing rule for SGTXT.
Also you can make use of BTE 00001120. You can find documentation for the usage of this event in transaction BERP, enter process interface 00001120 > execute > Keep cursor on the event 00001120 and then click documentation. -
With FB02 changes in BSEG-SGTXT not transferred to COEP-SGTXT
Hi guys
In ECC 6.0 when you change a doc. with FB02, BSEG-SGTXT is not transferred to COEP-SGTXT. In fact if you parked an invoice with FV60 and leave item text "SGTXT" field blank , and afterwards you fill the item text with something and save the doc. as definitve the field bseg-sgtxt is not transferred to controlling doc and field COEP-sgtxt is not updated.
Transactions KOB1 or KSB1 don't show you the changes made in the finance document in line item text.
I have searched in the sap notes but all of them relates to version up to 500.
I Do not Know how to resolve the issue. I tried also with 1KE8 but only reverse and create a new Profit center doc and the field GLPCA-SGTXT is blank
Does someone Know how to reflect or transfer the changes made in FB02 in Bseg-sgtxt to Coel-SGTX ?
Kind RegardsHi Abhisek
When I searched in sap help portal this note: 1003756, I get next error message: "The requested SAP Note is either in reworking or is released internally only"
By the way I do not get also this note implemented in my system, but I can not find it also in https://websmp203.sap-ag.de/notes
Do you Know Why ?
Kind Regards
Maybe you are looking for
-
Back button does not go to the previous page
Hi all, first post. As an imac user I also have a laptop running Win7 O/S and of course Safari 5.1 (7534.50). I go to the tabbed browsing bar, click on a bookmark and open all in tabs. The problem occurs when I use the back button to go to the previo
-
EQUAL condition on WHERE clause not working
Hi, Can someone please tell me why the following WHERE clause (marked with ***** below) is not finding any EQUAL conditions? I know that table i_cust_mast is populated with several thousand rows and that there ARE matching rows in KNVP. Here is the
-
Potential Versioning Differences Between Storage Server and Grid Infrastructure/DB
Hello. While awaiting my MOS CSI access to be approved For Exadata HW issues so I can open an SR, I have a question. We are about to apply QFSDP for BP 22 on one of our full RACK X3 Exadta servers. Currently, the Grid Infrastructure (GI)/DB SW is a
-
Hi, I would like to set up Apache FOP for basic pdf generation in Apex reports. Does anyone know how much it cost for standalone OC4J - per CPU? Also, has anyone tried to use OC4J/FOP for basic PDF in Apex reports? Is the result stable? Finally, is t
-
Hi, When I open Photoshop CS4 on Windows XP using a limited account, I see the error attached. Photoshop CS4 will work normally, however if I run as administrator.