Coding Error in Exit substitution

Hi Experts,
I've assigned an Exit for MIRO-Substitution as 'UPCT'  in Form routine under report program 'ZRGGBS000'.
In that I've to update the field of PRCTR for particular GL Account. The details of invoices available in bseg table parameter. I've to write a coding part where Im facing problem while looping.
When I do loop at bseg ,it's saying an error as 'Version' expected after BSEG.
Pls check below and reply me with example code .
  data: v_prctr type prctr.
select single prctr into v_prctr from marc where matnr eq bseg-matnr.
  if sy-subrc eq 0.
    loop at bseg where hkont = '0000300016'.
      if bseg-prctr ne v_prctr.
        bseg-prctr = v_prctr.
      endif.
    endloop. 
    endif.
My requirement is Thru material I'll get a Profit center value where the same I've to update in line item of particular GL account.
Pls advise.
Thanks & Regards
sankar.

Hi KPN,
Sorry for the delay in reply.
the table what u've written is right but it no way help me in this Form routine exit.
I want to update the value to Profit center field for  Price difference GL Account which will be derived only at the time of posting MIRO.
FYI: Pls go thru the std report,I've copied it into Z report and assigned a Form routine and inside to that I've to declare my coding part.
Report : RGGBS000.
Regards
Sankar.
Edited by: sankar babu on Aug 31, 2008 7:48 AM

Similar Messages

  • How to raise error message in substitution exits?

    Hello Experts,
    How to raise error message in substitution exits. I have tried with normal statement,
    Message 'Welcome!!' type E.
    But its inot stopped at that error message, Its goes next standard code and picked other messag and shown as error message.
    Th exit seems U100, I that I want to stop by using error message based on some condition. Please throw the answer quickly

    HI Sanjana,
    In the Substitution exits you can create the message in the configuration it self.
    You dont't need raise message explicitly.
    Thanks,

  • Error message KI089: Substitution of settlement senders is not allowed

    Hi ALL,
    To meet the demand of the company, was created a substitution (OKC9) to replace the field value COBL-AUFNR through a user-exit. However, when performing the process that calls the exit in question (transaction KO88) is shows the error message KI089 (Substitution of settlement is not allowed senders).
    Searching the SAP Support Portal could see that there is a note to resolve this problem (SAP Note 317894), but this note would not be valid for SAP ECC 6.0.
    Does anyone know whether it applies to SAP ECC 6.0? I think it's the only solution to solve the reported problem.
    Regards
    Kelson Marcos

    Hi
    I believe the sender should never be substituted. If you posted values to an Order, the same should receive a credit upon settlement. Else, it negates the whole concept of settlement
    I referred to the note you mentioned. What I perceived is you cant substitute a sender during settlement and thats right as per my knowledge
    Ajay M

  • Error in Variable Substitution

    Dear All,
    Result Payload:
    <ns1:MT_Level1 xmlns:ns1="http://test.com">
    <Header>
      <Separator>,</Separator>
    </Header>
      <Detail>
      <FileNumber>30</FileNumber>
      <LinkToNextLevel />
      <Expansion1>0</Expansion1>
      <Expansion2>0</Expansion2>
      <Expansion3>0</Expansion3>
      <Expansion4>0</Expansion4>
      </Detail>
    <Detail>
      <FileNumber>30</FileNumber>
      <LinkToNextLevel />
      <Expansion1>0</Expansion1>
      <Expansion2>0</Expansion2>
      <Expansion3>0</Expansion3>
      <Expansion4>0</Expansion4>
      </Detail>
      <FileNode>
      <FileName>test.txt</FileName>
      </FileNode>
      </ns1:MT_Level1>
    I want to use "File Name" in the "File Node" node for my variable substitution.
    In the configuration:
    File Name Scheme = %filename%
    Variable = filename
    reference = payload: Messages, 1, Message, 1, MT_Level1, 1, FileNode, 1, FileName, 1
    Note: I'm using multimapping (1 to N).
    File Name path is /ns0:Messages/ns0:Message2/ns1:MT_Level1/FileNode/FileName ( from right click in the file name --> copy path).
    I got following error:
    "Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: filename"
    Please advise!
    Best Regards,
    Victor.

    Dear All,
    My problem is solved!
    The issue is because I don't put the interface mappings sequence as the same sequence as the message mappings sequence. Hence the structure name that i put in the variable substitution all are not match with the structure name in the payload even though all have the file name element.
    So what i did is i have to reorder the sequence of my message mappings to be the same sequence as the interface mappings sequence.
    Thanks for all that trying to help!
    Appreciated it guys.
    BTW, for the variable reference it's correct that i no need to put message and message2 as the reference.
    payload:MT_Level1,1,FileNode,1,FileName,1 will do.
    Best Regards,
    Victor.

  • Error with variable substitution..

    Hi
    I am getting following error message for variable substitution
    *Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: date_stamp: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: date_stamp
      <?xml version="1.0" encoding="UTF-8" ?>
    - <I813_EModMCS_IB_MT>
    - <Records>
      <ModMod>111</ModMod>
      <DesModdcr>222</DesModdcr>
    - <Date_Stamp>
      <Date_Stamp>20080338</Date_Stamp>
      </Date_Stamp>
      </Records>
      </I813_EModMCS_IB_MT>
    date_stamp             payload:I813_EModMCS_IB_MT,1,Records,2,Date_Stamp,3,Date_Stamp,1
    Would appriciate if you can correct the variable substitution...
    Regards

    To reference the element that is in bold in the example, the following expression is used: payload:root,1,e1,1,e2,2
    The parser searches for the first occurrence of the root element at the first level. It then searches for the first occurrence of e1 at the second level and for the second occurrence of e2 at the third level. The content of the last element (u201CExample Valueu201D) is set as the value for a specified variable.
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <dummy>
         <e1>
            <e2>Data_1</e2>
            <f/>
            <g attr="abc">text</g>
            <e2>Data_2</e2>
         </e1>
      </dummy>
      <e1>
         <e2>illegal/value</e2>
         <f/>
         <g attr="abc">text</g>
         <e2 attr="fghij">Example Value</e2>
      </e1>
    </root>
    Edited by: Progirl Progirl on Jul 17, 2008 8:04 AM

  • LV 8.5 DLL - Windows error on exit

    I created a DLL in a LabVIEW 8.5 project, and found that if I used the 'Call Library Function Node' in a subsequent LabVIEW 8.5 VI, the DLL functions worked perfectly, but after I exited LabVIEW I would get the attached error from Windows.
    I then created a very simple DLL VI, and built separate DLLs from it in LabVIEW versions 6.1, 8.2.1, and 8.5. I created a set of simple VIs to call these DLLs using LabVIEW versions 6.1, 8.2.1, and 8.5.
    The DLL calls worked perfectly in all combinations of VI & DLL versions (for example, calling the 8.5 DLL from a 6.1 VI, or calling the 8.2.1 DLL from an 8.5 VI, etc.). I repeatably get the error message after exiting LabVIEW ONLY after opening an 8.5 VI that called the 8.5 DLL. I have also tried calling DLLs written by others in LabVIEW version 7 from an 8.5 VI, which worked perfectly and there was no error after exit.
    Does anybody know why I might be getting this error message?
    Attachments:
    Error.png ‏68 KB

    BEHajder wrote:
    Hello Yi Y,
    Thank you (and Rolf) for your replies.
    I have not been able to configure the DLL build or Call parameters to avoid the error popup from occurring.
    I have attached a zip file which contains 4 sub-folders:
    The "LV 8.2.1 DLL" folder contains a project to build a simple DLL in LabVIEW version 8.2.1.
    The "LV 8.5 DLL" folder contains a project to build the same simple DLL in LabVIEW version 8.5.
    The "LV 8.2.1 DLL Test VIs" folder contains 2 LabVIEW version 8.2.1 VIs, one calls the version 8.2.1 DLL, the other calls the version 8.5 DLL.
    The "LV 8.5 DLL Test VIs" folder contains 2 LabVIEW version 8.5 VIs, one calls the version 8.2.1 DLL, the other calls the version 8.5 DLL.
    My test procedure consists of opening one of the Test VIs using it's version of LabVIEW, and then exiting LabVIEW.
    If I open the "Test 8.5 call 8.5 DLL.vi", I always get the error after exiting LabVIEW. Opening the other test VIs do not result in an error after exiting LabVIEW. It does not make any difference if the test VI was actually executed or not.
    The projects and VIs are very simple, please let me know if you think there is a configuration somewhere responsible for producing the error. I guess I am very interested to know if the error is reproducible for you, I have tested this on two Windows XP PCs here and both get the error. Also let me know if there is a problem with the attached zip file.
    I can't find any configuration error in these VIs, HOWEVER:
    I've run the 8.2 DLL with 8.2 Test in 8.2 and everything was fine.
    And I've run the 8.5 DLL with the 8.5 Test VI in 8.5 and everything is fine too!! No error dialog independant if I just open the VI and close LabVIEW or if I run the VI before closing.
    So I guess it is more of an environmental problem than a pure LabVIEW problem.
    As to my computer all I can say it is a Sony VAIO, Pentium Mobile 1.5GHz, Windows XP Professional SP2, with latest fixes, Englisch OS version, just about any NI software starting from LabVIEW 5.1 up to and including LabVIEW 8.5, LabVIEW 7.1 and 8.2 with DSC, IMAQ, FPGA and RT software, NI-DAQ 7.4, DAQmx 8.6, MAX 4.3, NI-488, NI-VISA 4.2 and a few other drivers like CAN etc.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I cannot install Creative Suite 5.5 on my Windows 7 Professional. I keep getting error message: "Exit Code: 15 - Media DB sync failed". I have disabled UAC and Startup items and Services with no luck. Can you please help?

    I cannot install Creative Suite 5.5 on my Windows 7 Professional. I keep getting error message: "Exit Code: 15 - Media DB sync failed". I have disabled UAC and Startup items and Services with no luck. Can you please help?

    I am sorry Erickkasner but there is no longer direct support provided for Creative Suite 5.5 installation issues.
    You are welcome to post any specific errors you are able to discover within your installation log to this discussion.  Since you are using Windows then Exit Code 15 could mean one of the following:
    Installer database is corrupted
    Update pending to your operating system
    Improper permissions set for the Media.db
    The installation log file should provide additional insight into the exact error you are experiencing.  Please make sure to use the find command to look for the words 'ERROR' and 'FATAL' to locate the relevant error messages.

  • Error during Variable Substitution

    Hi Experts,
    Pls go through the errors
    I am getting the following error in RWB>Messages Monitoring->Adapter Engine
    It is in Production,
    Many messages are successful but 40% messages are failed with this Error
    The following is the Error log
    Attempt to process file failed with
    com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution:
    com.sap.aii.adapter.file.varsubst.VariableDataSourceException: Caught SAXException while parsing XML payload:Fatal Error:com.sap.engine.lib.xml.parser.parserException: XMLparser: No data allowed here(:main:,row:,col:75)"
    main:,row:,75 will be changing for every failure message
    I have checked the XML payload also there is no problem.
    if it has a problem, after rescending also it should not be processed
    please find the different errors carefully and give me the Solution.
    Getting different Errors for different messages like below
    1.com.sap.engine.lib.xml.parser.parserException:XMLParser:N o data allowed here:(hex) 76,65,72 (:main:,row:1,col:9)
    for the same message when the sys tried to resend
    parserException:start-tag 'EIT' is different from the end-tag'E1EDP03(:main:,row:1,col:16)
    2.com.sap.engine.lib.xml.parser.parserException:XMLParser:Declaration not allowed here:(:main:,row:1,col:6)
    for the same message when the sys tried to resend
    (:main:,row:1,col:89)
    3.com.sap.engine.lib.xml.parser.parserException:XMLParser:Name Expected:0x0.(:main:,row:1,col:0)
    for the same message when the sys tried to resend
    :No data allowed:(hex)0(:main:,row:1,col:1)
    4.com.sap.engine.lib.xml.parser.parserException:XMLParser:start-tag= 'EDI_DC40' is different from the end-tag= 'DOCNUM'(:main:,row:2,col:125)
    for the same message when the sys tried to resend
    parserException:</expected(:main:,row:1,col:0)
    5.com.sap.engine.lib.xml.parser.parserException:XMLParser:</expected(:main:,row:2,col:1788)
    when ever the sys tried to rescend the following errors are getting
    XMLParser:</expected(:main:,row:2,col:17)
    XMLParser:No data allowed here(:main:,row:2,col:96)
    XMLParser:No data allowed here(hex)76, 65, 72(:main:,row:1,col:9)
    XMLParser:Document is not well-formed:start-tag 'EDI_DC40' is different from end-tag 'DOCREL'(:main:,row:1,col:9)
    For all these errors if we resend, the messages are processed successfully, if i select more messages then it won't be processed.
    I have checked SMQ1 and even Javaengine also re-started but same problem.
    I have checked payload message with above errors but there is no problem.
    can any body give me the solution
    Regards
    Rajan

    Avoid posting duplicate thread,
    Exception during Variable Substitution
    Regards

  • Error during variable substitution: idoc to file

    Hi Friends,
    I have a got a issue which is Idoc to file scenario.
    Iam getting the following error.
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: date_processing
    Could you please tell me waht could be the reason for the same?
    as per my analysis, I observed that the field date_processing has been declared

    Hi Sandeep ,
    If the variable ’date_processing’ refers to an element in XML schema, Please check  if you have added  the prefix payload: to the information under Reference.
    The reference then comprises a pseudo path description in the form of a comma-separated list with the schema namea,na,nameb,nb,....
                Where namea,nameb,... corresponds to the element name and na,nb,... corresponds to the occurrence of the element name at the respective level in the document.
    The description begins at the root of the document and ends at the respective element.
    Also please check
    Re: Variable substitution
    Regards,
    Jyoti

  • Error in Manage Substitution Rules - MSS

    Hello Team,
    I am working on new Implementation for ESS MSS in ECC6.0 and the country grouping is 99. I am getting error in 'Manage Substitution Rules' in MSS.
    When I create the substitution rule, I am getting 'problems Reported' in the 'Rule activation' field.
    The detailed message is 'System does not support Substitution methods'.
    I tried different options in the rule creation. All gave same error.
    I have activated the standard workflow TS12300097 and changed the task to 'General Task'.
    Is there anything else I need to do?
    How can I solve this issue?
    Thanks for your help.
    Regards,
    Preethi

    Hi,
    Check the below link :
    https://cw.sdn.sap.com/cw/docs/DOC-106384
    Hope this helps.
    Cheers-
    Pramod

  • I have an issue installing photoshop CC trial, I currently have elements and wanted to see the differences before buying, when installing through the creative cloud app I get the error message  Exit Code: 7 Please see specific errors below for troubleshoo

    I have an issue installing photoshop CC trial, I currently have elements and wanted to see the differences before buying, when installing through the creative cloud app I get the error message  Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR: DW041 ...   -------------------------------------- Summary --------------------------------------   - 0 fatal error(s), 1 error(s)
    ERROR: DW041: INSTALLDIR Volume D:\ doesn't exist.  -------------------------------------------------------------------------------------  System Requirements  and it will not install, It says cant find the path D: im not sure why because as far as I can see its set to install on drive C: which is where I want it!

    Exit Code: 6, Exit Code: 7 Installation Errors - http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for information on how to review your installation logs

  • Ssis execute process task error: process exit code was 1 while the expected was 0

    Hi Sir,
    in my SSIS Package(2012) i am using Execute Process Task which will call bat file.  bat file is located on UNC Path.i am having  the below script in the batch file.
     del \\servername\foldername\name.txt
     rcmd \\servername D:\name1.bat
     del \\servername\foldername\name2.txt
    xcopy \\servername\foldername\file.txt   \\server\foldername\outfilefolder
    i am getting the below error message:
    ssis execute process task error:  process exit code was 1 while the expected was 0
    i want know at what cases error exit code was 1?
    Thanks for your time.

    Hi prasad.alm,
    The error is generic and can be caused by various factors. Here are some suggestions for your reference:
    Manually run the executable to execute the batch file so that we can check whether the command lines in the batch file are correct or not.
    Check there are no duplicate/existing files in the destination folder.
    Try to run the package in 32-bit or 64-bit runtime mode.
    If the issue occurs when running a job, try to create a CmdExec type job step to call the excutable. If this job also fails, it might be an issue between executable and SQL Server Agent rather than the SSIS package itself.
    If the issue persists, enable logging for the package, and check if we can obtain more detailed error message for further analysis.
    Regards,
    Mike Yin
    TechNet Community Support

  • Installation Issue with Dreamweaver. (Error 1935, Exit code 7)

    Hey there,
    So I've been googling my little heart away for 8 hours now and I haven't found any results.
    I'm installing on a x64 Win 7 system. From my googling I found out that the relevant part of the installation log is:
    Feature: Microsoft_VC80_ATL_x86_
    Action 19:23:42: PublishProduct. Publishing product information
    [     808] Tue May 15 19:23:43 2012  INFO
    Error 1935.An error occurred during the installation of assembly component {97F81AF1-0E47-DC99-A01F-C8B3B9A1E18E}. HRESULT: 0x800736CC.
    Action ended 19:23:43: InstallFinalize. Return value 3.
    Here is the in-installer error logs
    Exit Code: 7
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 19 error(s), 19 warning(s)
    WARNING: OS requirements not met for {694213D7-1E0E-4C8F-B822-E2E3680C0FCE}
    WARNING: OS requirements not met for {A1BC7068-C1BA-410F-8B9A-DB807C803DE2}
    WARNING: OS requirements not met for {C79312BD-3E76-4474-A10C-1435D1856A4B}
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    ERROR: MsiConfigureProductEx failed with error: 1603
    ERROR: The following payload errors were found during install:
    ERROR:  - Adobe Media Player: Install failed
    ERROR:  - SiteCatalyst NetAverages: Install failed
    ERROR:  - Microsoft_VC80_ATL_x86: Install failed
    ERROR:  - DeviceCentral_DeviceCentral3LP-en_US: Install failed
    ERROR:  - AdobeHelp: Install failed
    ERROR:  - Adobe ReviewPanel CS5: Install failed
    ERROR:  - CSXS Story Extension: Install failed
    ERROR:  - Adobe Linguistics CS5: Install failed
    ERROR:  - DeviceCentral: Failed due to Language Pack installation failure
    ERROR:  - Adobe CSXS Extensions CS5: Install failed
    ERROR:  - Creative Suite 5 Design Premium: Install failed
    ERROR:  - HIL Help Search: Install failed
    ERROR:  - Adobe Dreamweaver CS5: Failed due to Language Pack installation failure
    ERROR:  - Adobe Dreamweaver CS5_AdobeDreamweaver11en_USLanguagePack: Install failed
    ERROR:  - Adobe Extension Manager CS5: Install failed
    ERROR:  - Adobe ExtendScript Toolkit CS5: Install failed
    ERROR:  - Adobe AIR: Install failed
    I've already tried installing it while in safe mode, repairing my .NET Framework, and sfc / scannow.
    Anybody have any ideas?
    Edit: added in-install log

    Hi Vikas... can you help me with this error... i was trying to install dreamweaver w no success..
    ERROR: Failed to install Microsoft Visual C++ 2010 Redistributable Package (x86). Please try installing it by double clicking on the executable at "C:\Archivos de programa\Adobe Dreamweaver CS6\Adobe Dreamweaver CS6\payloads\Microsoft VC 2010 Redist (x86)\vcredist_x86.exe", or download and install the latest Microsoft Visual C++ 2010 Redistributable Package (x86) from Microsoft website - www.microsoft.com
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Microsoft Visual C++ 2010 Redistributable Package (x86): Install failed

  • How do I find a coding error easily and quickly on a page?

    A page does not look like my other ones, so I assume there is a coding error.
    How do I find it easily?

    See these -
    https://support.mozilla.org/en-US/kb/where-go-developer-support
    https://developer.mozilla.org/en-US/docs/Tools

  • Content Coding Error in Firefox/Internet Explorer cannot display webpage

    I can log into Beehive without any issues. I used to be able to go to Workspaces > All My Workspaces and see all the workspaces I had access to. From this list, I could get to any of these workspaces. Now when I go to the same navigation, I get in 'Content Coding Error' in Firefox 9 and 'Internet Explorer cannot display webpage' in Internet Explorer 7.
    If I find an email that invited me to a specific workspace, I can access that workspace only. I cannot find a way to access all workspaces I have access to within Beehive.
    Please let me know what other information I need to provide for assistance.
    Thanks!

    Hi,
    https://beehiveonline.oracle.com/index.html is a public page with no obvious protection so anyone should be able to see it without any difficulty. If this is the page causing the issue then it suggests a local browser issue.
    If you are getting this after logging into https://beehiveonline.oracle.com/teamcollab then it means your account is not provisioned correctly. Contact us out of the forum with your details and we can check out if we have a provisioning issue. I would need your email address and any group you have been invited to be a member of - send it to [email protected]
    Phil

Maybe you are looking for

  • GPRM Button scripts work in Simulate, but not after burning

    Hello everyone: I have a question regarding GPRM-based buttons and scripting menu navigation. My scripts work perfectly in DVD Studio Pro's simulate mode, but after building and formatting a DVD, the scripts do not function properly on a set top box,

  • Question about burning my DVD

    Hi I was hoping for a bit of advice before I burned my DVD. I have an iMovie project that lasts about 1hr 40 mins that I want to burn using iDVD. I realise this is long - much longer than any movies I've done before, so I was just wondering if there

  • HT4623 My iPhone 4s (16GB Verizon model) began to update from IOS 7.0.4 to 7.0.6 but now is hung at the beginning and does nothing.

    I have tried re-starting the process, including downloading the photos on the phone to my computer (which seems to have worked) but restoring it does not because there is a four digit code I cannot manage to get to a screen to enter.  The screen rema

  • Confusion on BIOS (resolved)

    Here's the information on the newest BIOS for the K8T Neo-FIS2R motherboard, as listed on http://www.msi.com.tw/program/support/bios/bos/spt_bos_detail.php?UID=496&kind=1 Check out the Special Note line - what does it mean? This appears contradictory

  • Transction data loading with master data as key?

    Expert's, I am trying to load the transction data with master data as a key.ZEMPID is my masterdata which having attributes ZEMPNAM and ZEMPDES .My transction data contains ZEMPID.ZEMPSAL and ZEMPAGE.I could create the master data and also load it su