Invoice script changes
Hi all,
I am changing invoice script. My requirement is to select message depends on payment type.
I did check vbdkr structure, but couldn't find payment method type field ZLSCH.
I have to read this from table T052.
SELECT SINGLE FROM T052 WHERE ZTERM = VBDKR-ZTERM.
How can i use this statement in script?
Thanks
Sha
Hi
You cannot use the select statment directly in sapscrpit. You need to do the changes in the driver program .If the driver program is standard program then create a subproutine pool as below.
In the layout set use the code
/: DEFINE &V_TEXT& = ' '
/: perform payment_terms in program z_subroutine
/: using &VBDKR-ZTERM&
/: CHANGING &V_TEXT&
THEN DISPLAYE THE &V_TEXT&
In the subroutine pool wirte the below code.
Form payment_terms using it_input structure itcsy
changing it_output structure itcsy.
DATA : ZTERM TYPE ZTERM,
V_VALUE TYPE "DEFINE THE LENTH REQUIRED.
READ TABLE IT_INPUT INDEX 1.
ZTERM = IT_INPUT-VALUE.
SELECT SINGLE <FIELDNAME> FROM T052
INTO V_VLAUE.
WHERE ZTERM = VBDKR-ZTERM.
IF SY-SUBRC EQ 0.
READ TABLE IT_OUTPUT INDEX 1.
IT_OUTPUT-VALUE = V_VALUE.
MODIFY IT_OUTPUT.
ENDIF.
endform.
Hope the above pseudo code help you to resolve the issue.
Cheers
Joginder
Similar Messages
-
Acrobat 9 (or 9.1) -- Script changes prevent signing -- any workarounds?
I was having problems understanding the behavior of my form until I came across the document at http://www.adobe.com/devnet/reader/articles/reader_compatibility/readercomp_digitalsignatu res.pdf .
My use case, which is a little convoluted, so could probably be streamlined, is that my application server presents a PDF to the user in a browser for them to review / sign.
In some cases, I was getting the message "The document could not be signed." with no other explanation (unlike many other threads which cite more detailed messages with a similar feel).
After reading the section of that doc titled "Script changes prevent signing", I understand why since my form was making script changes
So, now that I understand the situation, I have some options to work around it but presently none are great.
The issue in a nut shell:
1. The form is delivered to the browser, so the notion of save/close/re-open/sign doesn't make sense
2. A button is on the form, with form submit on MouseUp. This is the part that causes problems ... the application server is generating the (same) MouseUp action for ANY button and, at this point, I don't have a way to prevent that.
3. My "illegal" script change was a Page Open script that replaced the MouseUp action to what it "should" be.
4. The problem button is one that I want MouseUp to fire a launchURL instead of a submit.
The workarounds I've considered:
1. Replace the button with a link or non-button fields that has the correct actions. Workable but not a great UI metaphor.
2. Putting the "right" action on the MouseDown. Also workable, but since this doesn't actually prevent the MouseUp from firing, it creates confusing user experience if I there are problems that prevent form submission (and I am not clear if the launchURL in fact prevents the form submission or not).
Are there any other workarounds? Is there any wiggle room on the restriction about no script changes? The script that changes the MouseUp action is defined in an application level javascript file, so I tried making it trusted but that did not seem to make a difference. I feel like
I have a similar, but less import case for a true submit button. I want to also send email on form submission, but since I cannot the form submission on MouseUp, there is no way for me to only send mail when the form is submitted (i.e. all required fields filled in). So, I am presently always sending the mail in MouseDown.It sounds to me like the same option. Perhaps it also applies to non-PostScript printers now. If the printer is capable of good colour management (many are not); and if the PDF is properly tagged with source profiles, no reason why results shouldn't be good.
-
Print preview issue with invoice script
Hi folks
i am working on preparing UTP for a invoice script(modification of standard one).
here when i am running the billing document number in VF02 i am not able to see the print preview.
i would like to know what should i do on this as i need a printpreview to prepare UTP on this layout.
when i select the message type(output type) of that layout and press the option print preview nothing is happening.
when i say print in the status bar it is giving success message and when i saw in the spool the status is in waiting.
can anyone let me know what i need to do ?
thanks in advanceHi
Do u know the o/p type of the script ?
if not ist see the out put type by going to Tcode NACE
after thatjust go through the steps...
1 vf02 > give a doc no-> enter
2
from menue bar chose GOTO> Header> output
3.
now give the output type . medium -> printout press enter
4
save and go bck to 1st screen of vf02
from menue bar chose billing document--> issueoutput type
chose select the printout and select print preview.
rewards if useful
Regards
Sachhi -
Script changes in After Effects CC
Hey guys, does anyone know ahout the script changes in the next version of After Effects?
Any details?I can only give you some new additions:
app.activeViewer.views[0].options.fastPreview == FastPreviewType.FP_ADAPTIVE_RESOLUTION
app.activeViewer.views[0].options.fastPreview == FastPreviewType.FP_DRAFT
app.activeViewer.views[0].options.fastPreview == FastPreviewType.FP_FAST_DRAFT
app.activeViewer.views[0].options.fastPreview == FastPreviewType.FP_OFF
app.activeViewer.views[0].options.fastPreview == FastPreviewType.FP_WIREFRAME
app.language == Language.CHINESE
app.language == Language.KOREAN
app.project.activeItem.layer("Layer Name").samplingQuality == LayerSamplingQuality.BICUBIC
app.project.activeItem.layer("Layer Name").samplingQuality == LayerSamplingQuality.BILINEAR
app.project.activeItem.layer("Text 1").sourceText.value.justification == ParagraphJustification.MULTIPLE_JUSTIFICATIONS
Since preferences are all in different text files now:
app.preferences.getPrefAsLong("Auto Save", "Auto Save Max Project Vers", PREFType.PREF_Type_MACHINE_INDEPENDENT)
You get the point...
PREFType.PREF_Type_MACHINE_INDEPENDENT_COMPOSITION
PREFType.PREF_Type_MACHINE_INDEPENDENT_OUTPUT
PREFType.PREF_Type_MACHINE_INDEPENDENT_RENDER
PREFType.PREF_Type_MACHINE_SPECIFIC
...and using a savePref put the value in the 3rd parameter as usual:
app.preferences.savePrefAsLong("Clone Settings - General", "Active Preset", 1, PREFType.PREF_Type_MACHINE_SPECIFIC_PAINT)
app.preferences.getPrefAsBool("Text and Fonts", "Smart Quotes", PREFType.PREF_Type_MACHINE_SPECIFIC_TEXT)
Hopefully nobody has been scripting using enum numeric values because many have changed (ie. BlendingMode.ADD in CS6 was 4420 and in CC it is 4620). -
How do i see the invoice plan change log ? what are the tables used for change log?
HI,
Unfortunately I can only confirm that there is missing functionality
for change management in area of MM invoicing plan. No change documents
are created in CDHDR and CDPOS tables for any change for invoicing
plan.
Best Regards,
Arminda Jack -
Outline of After Effects CS4 scripting changes
Here's a link to a blog post that provides information about the new and changed features in a sparse outline format:
"After Effects CS4 scripting changes"> We use no compression because the LED signs will not take any file that is compressed. I assumed that meant there was no codec involved. Is there a codec applied in CS6, even though it is uncompressed?
What Rick and I are getting at is: when you render from AE, in the Export Settings dialog there is a codec field; what do you set that to?
Quick terminology lesson. Codec and compression are not the same thing. When you encode video, you are always using a codec. Most codecs use compression, but some do not. "None" or "Uncompressed" codecs do not use compression.
After Effects does not add any compression other than what you specifiy in the Export Settings dialog. There should not be a significant difference between the files produced from AE CS4 and AE CS6. AVI, as a format, has not changed in many years. In other words, we know of no difference that would specifically cause this problem.
If the LED sign software has a problem with an AVI from AE CS6, we need to know the requirements of the LED sign software and how that AVI is failing it. So far all you have told us is "other people say it doesn't work". -
LiveCycle Designer ES2 some scripted changes not preserved after Save
Hi,
I have some Text Field names that are changed by Javascript in certain Click Events. These renamed fields are used for navigation purposes in conjunction with xfa.form.resolveNode, and all works flawlessly until the form is saved, and re-opened.
After opening the saved form, all data entered is preserved, but the new Field names have not been preserved and resolveNode returns a null value.
The "Preserve scripting changes to form when saved" is set to "Automatically" in the Form Properties.
Any ideas/comments?
Thanks,
RonHi Ron,
I don't think that you will get this to work. I suspect that when the form is reopened the Template DOM contains the original name of the text field and that this is used when the form is rendered.
You could test this with a temporary button with this is the click event:
console.println("Textfield name BEFORE remerge: " + TextField.name);
xfa.form.remerge();
console.println("Textfield name AFTER remerge: " + TextField.name);
You would click this AFTER your other script has changed the name of the text field. Also you will need to open the JavaScript Console (Control+J) in order to see the results.
Good luck,
Niall -
HI all
When changing on a PO the delivery address then the invoice to: address gets also changed automatically. This is wrong. Only the delivery address should change. Invoice to address should stay unchanged.
Where can i set right the invoce adress?
Regards,
Hareesha kIf you looking the Invoice address in PO print out then correction required at PO Script.
If somthing else then elobrate your query -
Badi or Enhancement for Purchase order invoice plan change for ME22N
Hi ,
I have a req to have a custom tab at the header level with the push button in ME22N , By clicking the push button i need to update the invoice plan detail to all item level by using the 1st line item invoice paln entered while creating PO . I have done with adding the custom tab using MM06E005 enhancement. The problem i am facing is need to change the PO invoice plan detail for all line item. Please let me know the BADI or Enhancement to change the PO detail in the Tcode ME22N . Any Badi before save or after save with invoice plan details.
<offer removed by moderator>. Many thanks for you help!
Regards,
Vinoth.v
Edited by: Thomas Zloch on Oct 14, 2011 11:59 AMHi Eduardo
ME_PROCESS_PO_CUST is don'tt have the Invoice plan and ME_GUI_PO_CUST is for screen but i need the badi to get the invoice plan details and change the remaining item with the invoice plan .
Regards -
Adobe form script changes not reflected when PDF created by ADS.
Hello Experts,
We have done some modifications (UI elements java script) in PDF form in the Development system and tested... everything fine and as expected everything working.
When we move the same changes to Quality system, the expected functionality is not working. For error analysis we followed below things.
--1. I have checked the PDF form in SFP TCode is newly added script code is available or not.... Is available in Quality system.
--2. I have run the application In SAP Portal, where we show this adobe form and saved locally generated PDF form by application. Then we imported same saved PDF form into ALD and checked... is newly written java script is available or not....strange is not available...... but in ECC under SFP TCode i am able to see the newly written script code.
--3. o.k. we feel that some issue with ADS server so avoid that we restarted the server even though same.... the newly written script PDF form is not picked by ADS server while generating the PDF in the portal application.
Can some one throw some torch on this issue?
Regards
Malli
Edited by: mallikarjuna pasupulati on Apr 7, 2011 9:03 AMSteve,
Might M. Kazlow's announcement be relevant?
Announcement: Mac OS X.7 Lion Compatibility and Acrobat X
Mac OS X.7 is not fully compatible with Acrobat X.
Please see http://kb2.adobe.com/cps/905/cpsid_90508.html for more details.
by MichaelKazlow at Jul 20, 2011 1:17 PM
Be well... -
PS Script - Change Layer Color
This Is My First Post Here, So Hello Everyone,
Hope I Am Posting In The Right Section,
I Have A Photoshop File Which Looks Like Shown Above..
The Text 1 2 3 ...15 Are Different Layers..
And The Boxes Are Different Layers, Named i1 i2 i3 ...... i15
I Want To Write A Script That Will Change The Color Of Boxes (Actually This Is Legend Section For A Pie Chart)
I Want To Write Very Hard-Coded Script, Nothing Dynamic,
Like
layer[i1].color = #9f13a8
layer[i2].color = #520457
layer[i3].color = #cc626c
layer[i4].color = #aa5705
I Tried Searching Around, But Very Less Help Available On ps-script And Complicated Examples....
I Just Want Some Simple Lines, How To Easily Reference A Layer By Name And Change The Color (Forecolor, I Guess)
I Wrote This But It Does Not Works
var myDocument = app.activeDocument;
var myLayer;
myLayer=myDocument.artLayers.getByName("i1");
myLayer.color="#9f13a8";
I Don't Know If .artLayers Is Only For Text Layers Or Something.. I Found It In An Example...
ThanksIf you want to apply a pattern you can use scriptlistener to generate the code. It might be best to create the shape first by either drawing it or by using scriptlistener to generate the code, then use scriptlistener to generate code to change the fill pattern. This way you can use that code for any type of shape layer: oval, rectangle, etc. If you don't want a dialog box, you will have to find both the name and id number for the pattern used - again, this will show up using scriptlistener. If you want have a dialog box come up and be able to select which pattern you want to use, change the last line of the scriptlistener code to:
executeAction( idsetd, desc10, DialogModes.ALL );
But be sure to reset the dialog mode to No after that line. Here's an example of the code for changing a pattern:
#target photoshop
var idsetd = charIDToTypeID( "setd" );
var desc10 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref2 = new ActionReference();
var idcontentLayer = stringIDToTypeID( "contentLayer" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref2.putEnumerated( idcontentLayer, idOrdn, idTrgt );
desc10.putReference( idnull, ref2 );
var idT = charIDToTypeID( "T " );
var desc11 = new ActionDescriptor();
var idPtrn = charIDToTypeID( "Ptrn" );
var desc12 = new ActionDescriptor();
var idNm = charIDToTypeID( "Nm " );
desc12.putString( idNm, """$$$/Presets/Patterns/Patterns_pat/TieDye=Tie Dye""" );//pattern name
var idIdnt = charIDToTypeID( "Idnt" );
desc12.putString( idIdnt, """1b29876b-58b7-11d4-b895-a898787104c1""" );//pattern ID number
var idPtrn = charIDToTypeID( "Ptrn" );
desc11.putObject( idPtrn, idPtrn, desc12 );
var idpatternLayer = stringIDToTypeID( "patternLayer" );
desc10.putObject( idT, idpatternLayer, desc11 );
executeAction( idsetd, desc10, DialogModes.ALL );//Change the NO to ALL
app.displayDialogs = DialogModes.NO;//Make sure you reset!!! -
Prevent Invoice Status Change in SUS Portal
Dear SUS experts,
We are on SRM 7.0, ECC 6.0 EPH4 and implementing the service Procurement scenario in SUS where ECC is the system of record for POs.
On the SUS Portal, we have a requirement for a vendor Display role, where the user is not allowed to modify or change the status of any of the purchasing documents in the SUS Portal.
For the Vendor Display only role, we removed the create and change access from the SUS roles. However, the issue we are facing is when displaying the invoice sent to the purchaser, the user is able to click on the 'Set Status' push button and change the status of the invoice to 'Payment Made'. We want to prevent this user action.
We reached out to SAP and they asked to look at OSS note 1261825. This was not of much help.
Please let me know if any of you faced this issue.
Thanks,
RajUse the function module CRM_ORDER_MAINTAIN to save the status to the order.
after that use CRM_ORDER_SAVE. to save the order
Regards,
Shiva Kumar -
Dear All,
Is it possible to change the Invoice Amount after making the Commercial Invoice and Excise Invoice.
Thanks
SaroHi,
You cannot change the invoice amount once you have posted the Comm invoice nad excise invoice which reverse the accounting enteries
You need to cancel the excise invoice ( J1iin) and cancel the billing document ( vf11).
Now create a new billing document with correct price and post excise invoice.
Regards,
Krishna O -
Hi all,
My problem is like this:
I have received the GR from XYZ Vendor. The entries was posted correctly with GR/IR Clearing.
and made the PO for the same with no 1234.
Now my user using the PO 1234 and changed the invoicing party in MIRO as ABC. The system allowed and passed the entries though i didnt maintain the partner function in the vendor masters. this ABC was another Vendor in this company. The entries passed the changed vendor (ABC).
Here i need to stop passing entries like this. I want a error message to prevent, this means system should not allow to use the PO for other vendors.
what customization i need to do this?
Best Regards,
SomaHi!
You can tried to Disply in Invoice party in greay area (Diplay mode), you can tried to make validation in MIRO.
thanks
Rup -
SAP Script, Change form , SE71
Hi all,
I am totally new to SE71, I need to change content in one of the Window in the form, i opened <a href="http://www.geocities.com/cocwaye/screen.jpg">this</a> in SE71 , is this the way to change the content of a form?
Everything goes fine, but one of the window cant be access, it read some kind of 'error in codes' everytime i click on <a href="http://www.geocities.com/cocwaye/screen.jpg">this</a> button, the program SE71 shutdown.
I am trying to access that code in another way... Is there any other way to access the script ?
Thanks anyone who helps...Hi kokwei
to enter the content in the window in sapscript you have to use the text elements. for text elements
goto
PAGE WINDOWS->select the window->EDIT->TEXT ELEMENTS
then
click GOTO->CHANGE EDITOR.
in the editor you can enter the content. to write a text just write the text in the lines with required paragraph format in the left. to include any standart text wirte the INCLUDE statement
to write any parameter from internal table write the parameter name like
&itab-vbeln&
reply for any problem
regards
kishore
Maybe you are looking for
-
Open hyperlinks in new window/tab/pop-up ?
Now that my hyperlinks are working again.... I have a section with "directions" to lots of locations, each location has a google map link and a link to a pdf , when the user clicks on a link for a PDF or google map etc, it comes up fine but when you
-
Yes, i can configure and use icloud on a PC, but how do i initially set up an icloud account without an apple device?
-
Trying to parse a Soap Message
I'm working on creating webservices that will be consumed by Director and working with the client programmer, we've come to recognize the problem, but we don't know how to resolve it. Problem: the XMLParser doesn't follow href parameters in tags that
-
How to determine the database size corresponding to the nber records in DSO
Hi Colleagues, I would like to determine the database size corresponding to my new BI project. I know the number of records uploaded in the DSO from the source system for the intialization phase. How can I deduct the database size / disk size corresp
-
Hi - I am trying to batch re-size JPGs in CS3. I go: file-scripts-image processor and select a batch of JPGs but these are greyed out and can't be highlighted, therefore can't be re-sized. This function worked in the past and suddenly does not. Read