SAP VB script for updating texts in purchase orders
Hello,
I am trying to create a SAP script for updating texts in purchase orders. It is in the last third - Item Detail, Texts tab.
The script is ok apart from the fact that it always deletes whatever text is in there and than add a new one.
I would like to keep history in the texts tab and always just add one line to existing texts. Is there any way (command) how
to keep existing texts and only add a new line to the top?
Thanks a lot!
Jan
Yes, you are exactly right. I have already figured it out as well. I did not expect it would be that easy. But thanks a lot anyway for replying on this!
Now I am struggeling with changing SAPLMEGUI in vb scripts for ME22n. Sometimes, there is SAPLMEGUI:0010 and sometimes SAPLMEGUI:0015. Even when the users have the same screens in the beginning the SAPLMEGUI number differs. They also do one item by hand and than it changes. It keeps changing between SAPLMEGUI:0010 and SAPLMEGUI:0015
Is there a way how to have the same number of SAPLMEGUI or how to eliminate this issue?
Thanks a lot
Jan
Similar Messages
-
BADI/Userexit for header text in Purchase order
Hi Experts,
i had a scenario , in that when i create a sales order , a purhcase requisiona and purchase order will also generate automatically.
in this case how to copy the header text of sales order to PR and PO.
is there any BADI or User Exit for this..
Pls help me.
Thanks ,
ChandraHello Chandra
Assuming that you are working on ERP 6.0 (Do we know???) then the BAdIs are:
ME_PROCESS_REQ_CUST
ME_PROCESS_PO_CUST
Regards
Uwe -
TEXT_ID for Item Text of Purchase Order
Hi,
i want to fill a item text of a purchase order via BAdI BBP_PO_INBOUND_BADI. The BAdI is called, that's tested.
Transaction ME23, Item / Texts / Text overview.
I tried with
data:
lw_TEXT type BBPS_IF_BAPIMEPOTEXT.
lw_TEXT-PO_NUMBER = '4400001659'.
lw_TEXT-PO_ITEM = '00001'.
lw_TEXT-TEXT_ID = '0001'.
lw_TEXT-TEXT_FORM = '* '.
lw_TEXT-TEXT_LINE = 'strike'.
append lw_text to BBP_POTEXTITEM.
and hoped to see "strike" as text - no success. Of course the values should be found later dynamicly.
In my point of view the parameter TEXT_ID is the problem. I tried 01, 0001, L01, K01, A01 and F01 but without success.
How can i find out the right TEXT_ID?Hello Udo,
I have exactly the same requirement, I need to fill the item text via (BBP_PO_INBOUND_BADI, method: BP_MAP_BEFORE_BAPI).
In my case I have to write some values in BAPI_POTEXTITEM. However, it seems that the badi is not saving the data. At least I cannot see the text values in ME23N, Item / Texts.
Would you give me an advice ?
Thank you !
best regards,
Diego -
Transaction to Mass Update Header and Item text in Purchase Order
Dear All
Whether any Transaction in SAP to mass update the Header and Item text in Purchase Order.
One Single Text For Ex :" This is a Dummy PO" .
This text needs to be updated in large number of POs.
Please let me know your views
Reg
ShyamHi Shyam,
You can make use of BAPI_PO_CHANGE for this. See the documentation of this BAPI in SE37 for more information.
"You can transfer header and item texts in the PoTextHeader and PoTextItem tables. You import texts
for services in the PoServicesText table. Texts can only be replaced complete."
Regards,
Purnima. -
Item text in Purchase Order getting updated with info. record Purchase Order Text
Hello All,
I am working in a roll out project and facing issue in text repeating twice for the line item in the Purchase Order for the new company code for which rollout is happening
Issue:
Item text in Purchase Order getting updated with info. record Purchase Order Text
01) PO Text is maintained in the material master under "Purchase Order Text" tab
02) The PO text that is maintained in material master is getting updated in the Purchase Info. Record
03) When Purchase Order is created, the "Item Text" gets updated in the Purchase Order automatically only for the new company code for which rollout is happening. when printed, this results in the text getting duplicated twice
03.1) this behavior is not observed in the Plants/ Company code that is already Live
Configurations in the system:
The copying rules for the "Texts for Purchase Orders" is
Source Object = "Info Record", Source Text="Purchase Order Text", Fix="*"
We have modified the Purchase Order form to print one of the condition types maintained for calculating the tax. Other than this there is no change to the plants that are already live.
I could not locate any "Purchase Organization" / "Company Code" / "Plant specific configuration.
Am I missing any configuration or where can I look in what is causing this error.
Request help from the experts in the forum.
with Regards,
Dhandapani RThere is no company/purchasing/plant specific customizing for purchase order text.
The customizing copying rules for the "Texts for Purchase Orders" affects all equally .
If the text in the purchase order in ME23N is already filled different to other plants, then you either have a modification in place, or the texts are differently maintained in the referenced data (vendor, material, info record, contract) -
Uploading sales text and Purchase order text for material master
Hi,
I have created, material master with LSMW byt not updated SALES TEXT and Purchase order text with LSMW now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text when i have done the recording with SHDB i have not found filed in recording.
regards,
zafarHi,
I have made the code in se38
as below but still it is not working
REPORT ZTEST_TEXT.
data: headerl like thead occurs 0 with header line.
data itab3 like tline occurs 0 with header line.
headerl-tdobject = 'MATERIAL'.
headerl-tdname = '00000000000LSMW123'. "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
headerl-tdid = 'BEST'.
headerl-tdspras = 'E'.
append headerl.
move '*' to itab3-tdformat.
move 'Testing PO text' to itab3-tdline.
append itab3.
call function 'SAVE_TEXT'
exporting
header = headerl
insert = ' '
savemode_direct = ' '
tables
lines = itab3
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5.
IF SY-SUBRC = 0.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = headerl-tdobject
NAME = headerl-tdname.
ENDIF.
break-point.
regards,
zafar -
I am in need of ai script for arcing text
i am in need of ai script for arcing text
A little vague aren't we… Is this the kind of arcing you mean? Text along a curve or do you mean distorting into an arch like some plug-in can?
#target illustrator
var doc = app.activeDocument;
doc.defaultFilled = false, doc.defaultStroked = true;
var textPath = doc.pathItems.ellipse( 0, 0, doc.width, doc.height );
textPath.pathPoints[3].selected = PathPointSelection.ANCHORPOINT;
app.cut();
doc.selection = null;
app.redraw();
var tp = doc.textFrames.pathText( doc.pathItems[0], 0, 0, TextOrientation.HORIZONTAL );
tp.textRange.paragraphAttributes.justification = Justification.CENTER;
tp.textRange.characterAttributes.size = 60;
tp.contents = 'I am in need of ai script…';
var tpd = tp.duplicate();
tpd.translate( 0, -150 );
tpd.textRange.characterAttributes.size = 90;
tpd.contents = '…for arcing text?'; -
Ola script for update stats only
I want ola scripts for update stats only but on internet they are rebuilding index as well.
http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
ThanksBy default index rebuild will gather index stats.
If you just need a script update index and column statistics you can refer the below link
http://www.sqlusa.com/bestpractices2005/administration/updatestatistics/
You can refer same ola script to update the stats
http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
C. Update statistics on all user databases
EXECUTE dbo.IndexOptimize
@Databases = 'USER_DATABASES',
@FragmentationLow = NULL,
@FragmentationMedium = NULL,
@FragmentationHigh = NULL,
@UpdateStatistics = 'ALL'
D. Update modified statistics on all user databases
EXECUTE dbo.IndexOptimize
@Databases = 'USER_DATABASES',
@FragmentationLow = NULL,
@FragmentationMedium = NULL,
@FragmentationHigh = NULL,
@UpdateStatistics = 'ALL',
@OnlyModifiedStatistics = 'Y'
--Prashanth -
Terms of Payment for Local and Import Purchase Order
Hello Experts,
I am SAP FICO Consultant, I am given a task of maintaining payment terms for local and import purchase order, I would highly appreciate your help in this regard. I know I can maintain payment terms via OBB8 but I am not sure that how to cover the following scenarios.
1. 100% Advance
2. 50% Advance, Balance in 07 Days (usually balance immediate with delivery is accepted but it is paid in 07 days for the record)
3. 25% Advance, Balance in 07 Days
4. 10% Advance, Balance in 07 Days
5. 30 Days Credit
6. 15 Days Credit
7. 07 Days Credit
IMPORTS
1. 100% Irrevocable LC in advance
2. 100% TT in Advance
3. 50% TT in advance & 50% before shipment.
Looking forward to hear from you.
Regards
Muhammad Yousuf AliHi
<b>All the Local as well as the R/3 data gets stored in the SRM tables ->
BBP_PAYTERM (Terms of Payment, Backend-Dependent)
BBP_PAYTERM_TEXT ( Texts for Terms of Payment, Backend-Dependent)
BBP_TQ02B ( QM System)
BBP_TQ02U (Description QM system)
Also refer to Transaction SLG1 for the log created in this case.</b>
Hope this will help.
Please reward suitable points.
Regards
- Atul -
We are trying to create Invoices using the SDK tool for a clients interface. Everything goes ok, except at the point where we add the document, we get the following message:
Error -5002, Update quantities in purchase order? (INV1.Quantity) Line[2]
Any ideas? We have searched the SAP notes, but nothing is available. Are we missing anything?
We are running on Version 6.50.098
Thanks
MariosHello Marios,
This error occurs because the last line you are trying to add to the Marketing Document is an empty line. It is a new functionality in Version 6.5 that the document object automatically comes with one document line so if you are adding just one line you do not need to use oDocument.Lines.Add,
It is only for the second and subsequent lines of marketing documents that you require the method oDocument.Lines.Add. Note 722693 describes the issue.
Regards,
Lisa -
Long text in PURCHASE order text view in program RMDATIND
hi all,
ive to upload data for material master iam doing this using lsmw & standard object 0020 program RMDATIND.purchase order text.In this iam unable to upload purchase order text in Purchase order text view can anyone plz tell me how to do tht??? its a bit urgent
points will be awarded!
rgds
Message was edited by:
abbaper
Message was edited by:
abbaperHi
In LSMW
for Long texts Upload
Please take a look at this..
http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
Regards
Anji -
Default Header text in Purchase Order
Dear All,
I want to have a default PO header text.I.e whenever I create a PO the header text say "This PO is for XYX" should come as default in Header Text. How this can be achived.Through Config OR using some Function module..
what are the config.steps.?
Thanks in advance .
Regards
AmarTry below steps this may help you
Adopt Purchase Order Header Text
To default the Header Text into the Purchase Order
Step 1 :- Maintain text in Vendor Master
MK02 - Change Vendor
Choose Extras -> Texts - Input the text in Purchasing memo
Step 2 :- Link Text types to Header text in Purchase Order
OMFV - Define rules for copying (adoption of) text
Choose Header Text
Choose Goto -> Linkage: text types -> To vendor
Filled in the field No. (e.g. 01 - Header Text), next tick whether you want the text to be adopted or for displayed only
Choose Update to save -
Suppress PO output in case a PO is updated by a purchase order response
Experts,
we are in SRM 5.0. We are trying to suppress any PO output when a PO is updated by purchase order response. We are experimenting with PO output start conditions (Customizing). No succes until now. We tried to check whether the object status table has status 'Variance in PO response' (I1352). No effect.
Does anybody have a clue or even better, an example, how to achieve this without the use of BADI's or defining any customer fields?
Apparantly when a purchase order is updated via the purchase order response the BBP_DOC_CHANGE_BADI is not triggered, or at least we were not able to debug it, so it looks like this is no option either.
Any suggestions?
Thanks for your help, Maurice de FeijterHello Jay, thanks for your suggestion. We are currently implementing SP 14 to 17 in which the note you mentioned is included. Unfortunately PO output is still not suppressed automatically when a PO response is accepted and copied to the PO, even if no content is changed (price, quantity, delivery date ....) .
That is the reason why we were looking for the possibility to use start conditions in customizing. The main problem there it that we do not know how to recognize that a PO change is triggered by the PO response, and how to configure that in a condition. SAP docu does not give any clue.
So, any other suggestion is welcome -
HEADER TEXT in purchase orders using BAPI_PO_CREATE
How to update HEADER TEXT in purchase orders using BAPI_PO_CREATE or BAPI_PO_CREATE1?Please advice for both types.
Hi Srini ,
IF you are using the BAPI_PO_CREATE , we are not having the parameter to pass Header Text.
If you want to get Header Text directly then Use BAPI_PO_CREATE1 wiht a parameter POTEXTHEADER (I am not sure it is there in 4.7).
If BAPI_PO_CREATE1 does not exist in 4.7 then use create_text function module to update the the Header text
Hope it helps
Rgds
Sree M
Edited by: Sree Merugu on Jun 13, 2008 5:10 PM -
BAdI or USEREXIT for changing data of purchase order header - ME21N
hello all,
I would like to ask you any way to change the field "reason for change" of the Purchase Order header.
I tried implementing the method PROCESS_HEADER of IF_EX_ME_PROCESS_PO_CUST
or changing reason_code of structure ekko in user exits EXIT_SAPMM06E_006 and EXIT_SAPMM06E_006
but it seems not to work.
How can i do?..
sap. v. ecc 6.0>
Shiva Kumar wrote:
> Use the user exit : EXIT_SAPMM06E_012: This is triggered on saving of a PO...and user can add validations etc in the exit...
> Cheers
It doesn't work...
>
Martin Voros wrote:
> you get reference to object IM_HEADER in method PROCESS_HEADER of BADI ME_PROCESS_PO_CUST. On this object you can call two methods - GET_DATA and SET_DATA. GET_DATA returns structure with type MEPOHEADER. You can change your field here and then call method SET_DATA with your modified structure. This should work.
> Cheers
..same thing for this solution...
the field that i want to change is RSCOD inside structure EREVGRID...it seems to have also get_data and set_data methods ( IF_REVISION_ITEM_DCM ),
but I don't know which BAdI to implement that has a object type ref to EREVGRID...
Edited by: E_M on May 13, 2008 11:08 AM
Maybe you are looking for
-
How to Move my mobile Applications Folder?
I am running our of space on my C drive and at the moment all my media (music & movies) except for my applications are on my D drive. How do I move my default applications folder to my D Drive? iTunes 9 by the way. thanks in advance.
-
Is it possible to encrypt a single mail account?
Hi, apologies to regulars if this topic has been addressed. I looked for posts about encrypting mail, and mostly found stuff about encrypting messages as they were sent/received (PGP type problems). I have a very specific question that doesn't seem t
-
Message to update DE on Mac each time I open it
If I shut down DIgitial Editions and then re-open it. I alway get the black box with the message "There is a new version of Adobe Digital Editions available. To continue using Adobe Digital Editions you must download the update." I then follow the in
-
Hi , we create plan for the forecast by mass uploading program under the version 001, but some times they will change the forecast manually using MC94 Is there any report which gives values of changes(forecast ) i mean forecast values before and fo
-
When I make a video call to someone and they accept it the call stops and I get this message "Problem with Recording Device". If they call me and I accept it there's no problem. How to fix this ? Thanks.