Substituting BSEG-ZUONR value in MIRO with PO details.

Hi All,
I need to substitute the value of the assignment field (BSEG-ZUONR) with ebeln and ebelp details. I have coded a substitution exit
at call point 2 in FI at item level. When i debug and check my code BSEG document no has no values(actually it is $       1) and ebelp and ebeln values are blank. Does any have an idea how to get the values for PO order no and item no.
I am using transaction MIRO. The sort key 010 and this requrement is for document type RE.
Regards,
Vanita.

Hi,
maybe this can help:
( FI Enhancement Technique - How-To-Guide on the Usage of Business Transaction Events (BTE) )
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
Best regards.
Edited by: Pablo Casamayor on May 10, 2010 11:38 AM

Similar Messages

  • How to fetch the Business area field value from MIRo into report

    Hi,
    I want to create a report for MIRO with payment details.
    How to fetch the business area field value in to report.
    What is the table name. I verified it is storing in structure. Which is the right table for fetching that value with reference to MIRO.
    After that, how to find the accounting document for payment and check details.
    What are the table names and field names. What we can get from PAYR table.
    With regards
    Lakki

    Dear,
    For Bussiness area
    RKPF-GSBER

  • Update BSEG-ZUONR with VBRK-BSTKD

    Hi experts,
    This enhancement will kick in in real time when ever a billing document is generated and it involves posting into accounting.
    Update BSEG-ZUONR with VBRK-BSTKD .
    I need the substitution rule exit details.
    Plz can u tell me that whether I can get BSEG-BELNR value into this substitution rule exit or I should go for something else.
    <removed by moderator>
    Thanks
    Edited by: Thomas Zloch on May 3, 2011 3:17 PM - urgency reduced

    Hi
    In my opinion, it will be easier with an enhancement. See Note 301077 - User exits for the interface to accounting. Depending of what kind of item you want update, you can write this code:
       xaccit-zuonr = vbrk-bstkd.
    In the corresponding ZX* include.
    I hope this helps you
    Regards
    Eduardo

  • BSEG-ZUONR to Update COPA

    Hi All, We are trying to update COPA-KNDNR with the value posted into BSEG-ZUONR. The scneario is from the F104 transaction, posting of doubtful debt provisions where customer number is updated into BSEG-ZUONR and we wish to update COPA with this value so that the provision appears at customer level. Can anyone help?
    Thanks

    Hi Richard
    I have not done this with an automatic transaction like F104, but you can post through Fi to PA directly.  If it is the expense account, not the provision acc.
    In transaction OKB9, tick the PSG (profit segment) on the relevant account.  Create a field status variant for the account to post to the profitability segment mandatory and assign to account master data in FI
    Then create a derivation rule in PA.  Select new rule, select table lookup. Table BSEG enter
    In the assignment section fill in ZUONR = CO-PA - KNDNR
    If this doesn't work, you can create a characteristic group in PA  and assign the transaction for FI and select the relative fields that can be filled by the FI entry without intervention from the user.
    Hope this helps.  Please assign rewards if it does.
    Kind regards
    Dawn

  • Change BSEG-ZUONR  during the Post Goods issue.

    Hi
    We wanted to Update the BSEG-ZUONR with sales Order no( traverse back to the Original SO during reversal)  ( Basically Assignment field (ZUONR) in the Accounting side) after performing the Post Goods issue  USING TRANSACTION VL02N.
    Is there any user exit which can allow us to update the accounting field ( ZUONR) during the post goods issue ( Tcode VL02N)?
    Thanks a lot.

    Hi,
    you can achieve this using the concept of validation and substitution rules in FI (Check transaction OB28) or below help
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/27/06e23954d9035de10000000a114084/content.htm
    Hope this helps
    Regards
    Shiva

  • Populating BSEG-ZUONR for GL Line item

    Hi experts,
    I need the system to copy field VBRK-ZUONR to BSEG-ZUONR when posting a billing document.  The situation is as follows:
    - When I post the billing document to accounting BSEG-ZUONR is populated for the customer open item but
    - BSEG-ZUONR is BLANK for the Sales Revenue line item
    This only seems to occur when I define SORT KEY 000 against the G/L Account Master (SKB1-ZUAWA).  Sort Key 000 is for Allocation number (which points back to ZUONR).  If I use a different SORT key (such as posting date) it works perfectly (copies the posting date to BSEG-ZUONR).
    Is there something I am missing in configuration/user exits that need to be switched on?
    There was a mention somewhere about using function module EXIT_SAPLV60B_004 but i cannot find this program in program SAPLV60B.
    Other information:
    - I am in SAP 7.0
    - There is no FI consultant on site to help
    - I have search through WIKI to find a suitable answer for this problem but do not seem to get the exact information.
    Your help is very much appreciated.
    Thanks,
    Rubi

    Hi,
    Lakshmipathi and Shiva are right. The easier manner to solve it is with OB16.
    If you want know more about the exit that you try to use, see Note 301077 - User exits for the interface to accounting. Use the table MODSAP to find the link between enhancement and components (function modules EXIT_*).
    Regards
    Eduardo

  • WCF-WebHttp Adapter Substituting Nonstandard Characters In Address URI With Web Encoded Equivalent

    I’m using the WCF-WebHttp adapter to send an HTTP Get request to a REST API. The request has to be formatted as shown…
    http://xxx.xxx.xxx.xxx/HPRMServiceAPI/Record?q=title:test*&format=json
    Essentially this is searching for any records with “test” in their title and returning a JSON formatted response containing information on any records that match the search criteria. I don’t have any flexibility in how this request is formatted. It has to
    confirm to the syntax above.
    If I hardcode the above uri in the Address URI field in the WCF-WebHttp adapter configuration and put a request through my BizTalk application, BizTalk correctly sends that request and I get my expected response.
    So far so good.
    The problem is the query portion of the request string (“?q=title:test*” in the example above) needs to be created dynamically based on what is specified in an incoming request to my BizTalk application. It may contain many search criteria and is not limited
    to just record titles as in my example.
    This, I thought would be straight forward: I construct the query portion of the request string in a custom send pipeline and insert that value into a promoted property which is then used by the URL mapping mechanic of the WCF-WebHttp adapter.
    So now the uri in the Address URI field in the WCF-WebHttp adapter configuration simply contains…
    http://xxx.xxx.xxx.xxx/HPRMServiceAPI
    And the remaining part of the request is defined using a URL mapping…
    <BtsHttpUrlMapping>
    <Operation Name="DocumentSearchRequest" Method="GET" Url="/Record{searchquery}" />
    </BtsHttpUrlMapping>
    Where the {searchquery} variable is mapped to a promoted property.
    I can see that my custom send pipeline is correctly promoting the property and that it contains the correct value (e.g “?q=title:test*&format=json”). The problem is that the WCF-WebHttp adapter is now substituting the “?” with its web encoded equivalent
    (%3F). When I view the outgoing HTTP request in Fiddler it looks like this…
    http://xxx.xxx.xxx.xxx/HPRMServiceAPI/Record%3Fq=title:test*&format=json
    I have tried numerous ways of constructing the HTTP request, including hardcoding the offending “?q=” section into the URL mapping rather than having it in the promoted property…
    <Operation Name="DocumentSearchRequest" Method="GET" Url="/Record?q={searchquery}" />
    But this results in other characters (“:”, “&”, “=”) being web encoded in the outgoing HTTP request. Fiddler shows this…
    /HPRMServiceAPI/Record/?q=title%3atest*%26format%3djson
    Similarly, hardcoding the “/Record?q=” section in the Address URI field in the WCF-WebHttp adapter configuration like this…
    http://xxx.xxx.xxx.xxx/HPRMServiceAPI/Record?q=
    …and having the URL mapping contain just…
    <Operation Name="DocumentSearchRequest" Method="GET" Url="{searchquery}" />
    …results in the following outgoing HTTP request (Fiddler shows “?q=” portion now being placed at the end of the request string)…
    http://xxx.xxx.xxx.xxx/HPRMServiceAPI/Record/title:test*&format=json?q=
    So in summary it seems the WCF-WebHttp adapter is struggling to correctly assemble the HTTP request string when a portion of it is supplied in a promoted property and used by the URL mapping mechanic. Specifically when that portion contains nonstandard characters
    (“?”, “:”, “&”, “=” etc), the WCF-WebHttp adapter substitutes them for their web encoded equivalent.
    Any suggestions?

    Thanks Ravindar,
    Unfortunately, I don’t have control of the ‘receive side’. I can’t write a custom pipeline component at the receive side as it is not a BizTalk application, it’s a 3rd party web site exposing REST-like behaviour.
    I have however made progress. It occurred to me the WCF-WebHttp adapter isn't the problem. It's doing exactly what it should by URL encoding any potentially 'unsafe' characters that have been 'injected' into the URL via a promoted property. Potentially the
    promoted property could contain malicious content, especially if that content has been sourced directly from text in an incoming message to BizTalk.
    So the WCF-WebHttp adapter is URL encoding ‘?’ to ‘%3F’ which is probably good behaviour from a security point of view.
    http://xxx.xxx.xxx.xxx/HPRMServiceAPI/Record%3Fq=title:test*&format=json is a perfectly valid address.
    So I looked again at the actual error I was receiving from the 3rd party site. It was…
    HTTP/1.1 400 Bad Request
    System.Web.HttpException: A potentially dangerous Request.Path value was detected from the client (?).
    So, after some research, I edited the web.config of the 3rd party site so it no longer excludes any specific characters from the request.
      <system.web>
        <httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" />
      </system.web>
    The 400 Bad Request has gone away and the 3rd party site is processing my request now. Unfortunately it still seems to have an issue with ‘%3F’ being used in place of ‘?’, but I think that will have to be resolved in IIS/web config on the receive side (maybe
    by using request filtering
    http://www.iis.net/configreference/system.webserver/security/requestfiltering) or by discussing with the sites developers.
    In summary, I now believe the WCF-WebHttp adapter is behaving correctly by substituting URL encoded values in place of potentially unsafe characters.
    Thanks for your help.

  • BSEG-ZUONR can't change by BTE 1120

    Hi, gurus,
            I want to change the field BSEG-ZUONR with the DN number,  I use BTE 1120  to implement it, but it doesn't work. I refer https://www.sdn.sap.com/irj/sdn/nw-development?rid=/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7  and follow it step to step, but the demo aslo doesn't change the field. Is there any customizing issue I need to revised?
    Thanks advance

    Hi,
    I wouldn't have used BTE for that, but rather substitution program RGGBS000.
    You need to make a Z_ copy of that program, affect it (GCX2 and OBBH), do some customizing steps (SM30 on VWTYGB01)in order to open the fields for substitution.
    Then create your own subroutines in ZRGGBS000 and set them in customizing (GGB1 for Financial Accounting).
    NB: read carefully F1 helps provided, since amonst the 3 substitutions (document header, line item and complete document), 'Complete document' has now some severe restrictions.
    Regards,
    N H

  • Delta on BSEG-ZUONR

    Hi All,
    SAP offers the field BSEG-ZUONR in the extractor 0FI_GL_4. However the delta-mechanism does not work for this field. Am I doing something wroin? Is this a bug and has anyone experience with this? Or a workaround?
    Any help is appreciated.
    Regards, Guus

    Hi Guus,
    Please check the reason for the same in the below oss note :
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bct/~form/handler
    -Vikram

  • Updating exist FI document BSEG-ZUONR data element.

    Hi there,
    We're trying to update ZUONR field on an FI document  (BSEG) after it has been posted.   I looked for a "change  fi document" BAPI and have not been able to do so.  Is a BDC for FB02 the only choice for such a requirement or is there a FM suitable for this task?

    First, thanks for the replies, second my apologies for not being more specific.
    Here is the scenario: I have new custom data element added to MIRO, which is eventually stored in the RBCO table (at the line item level.)   Our requirement is have this data element moved into the BSEG-ZUONR field.
    I am aware of BTEs and have attemped to do so using the 1120 process, but the problem is I don't have access to the original data as entered in MIRO in the tables available in that BTE.  It appears that the RBCO table is not even update until after 1120 process is executed.
    Once again, thanks for responses.

  • BSEG - ZUONR not filled

    Hello!
    I have a problem with ZUONR field.
    When VF44 transaction is used Assignment field is filled, but when VF01 transaction is used Assignment field is empty for the same account.
    Which could be the problem?
    Thanks

    Hi:
           BSEG-ZUONR filed is filled when an accounting doucment gets posted. However if we talk about automatic filling of this field from SD then please note that it will be filled as per copy control rules define in VTFA. Please check it ...
    Regards

  • Assignmnt num population(BSEG-ZUONR) in all line of Acc doc for Cr Memo(G2)

    Hi,
    Our business process is we create Credit memo request with reference to Returns Sales order and create Credit memo with reference to Credit memo request.
    When creating Accounting document from Invoice Assignment number(VBRK-ZUONR) is copied to BSEG-ZUONR of customer line item as well as GL Account line items in the Accounting document.
    When creating Acc Doc from Credit memo Assignment number(VBRK-ZUONR) is copied to BSEG-ZUONR of Customer line item only but not GL Account line items in the Accounting document.
    The same Customer & GL Account is used in both cases.
    Please hlep us to resolve the issue.
    Thanks in advance.
    Regards,
    Rahul

    Dear Rahul,
    I think It's SAP standard behaviour that field BSEG-ZUONR is not filled in     
    accounting item lines when you transfer a billing document to          
    accounting. Please have a look at program LV60BF00,                    
    form accounting_item:                                                  
    Felder, die nur in den Steuerzeilen vorkommen                        
      clear xaccit-kbetr.                                                  
      if vbrk-vbtyp ca vbtyp_reli.                              "WIA       
        clear xaccit-stceg.                                                
      endif.                                                    "WIA       
      clear xaccit-vbeln.                                                  
      clear xaccit-xblnr.                                                  
      clear xaccit-zuonr.                               ' <    here !!!    
      clear xaccit-gjahr.                                                  
    If you want to have this field filled for all item lines in accounting,
    then you have to use userexits to fill XACCIT-ZUONR. E.g. you can use  
    FUNCTION EXIT_SAPLV60B_004 to set XACCIT-ZUONR = VBRK-ZUONR in the     
    line items.                                                            
    I hope this helps.
    Balazs

  • Null values v IOT with primary constraint

    Hi gurus.
    I've overheard boss' conversation with client, who complaints that one of the columns in a system IOT table with NOT NULL and PRIMARY KEY returns nulls.
    Do you have any ideas? I do not have access to this DB, I just wonder, how it could be and what are these points, that we should start with.
    Thank you in advance,
    Maria.

    ou, sorry if I was not so clear, but I'm absolutely calm and even more: it's not my responsibility at all to fix that problem :-))
    all that I wanted is just to find some weak places where the reason of the problem could exists and give it my boss while he is busy with his time consuming project (in short, i just wanted to help him to resolve it, not waiting while he will ask me to do that). nobody is in panic, everything is ok in a world.
    clear description:
    client has a system table (IOT) that sometimes returns null values from column with NOT NULL and PRIMARY KEY constraint. as I remember from school, it's impossible. client wonders if it's an Oracle 9i bug and upgrade to 10g will fix it, or it's a block corruption. I do't know the answer, that's why I'm asking you, Oracle's gurus.
    Thank you all,
    M.

  • How to get real value from selectOneChoice with javascript?

    Hi,
    How to get real value from selectOneChoice with javascript? The event.getNewValue() only gets me the index of the selected item, not the value/title.
    JSF page:
    <af:resource type="javascript">
    function parseAddress(event)
    alert("new value: " + event.getNewValue());
    </af:resource>
    <af:selectOneChoice label="Location:" value="" id="soc4">
    <af:clientListener type="valueChange" method="parseAddress" />
    <f:selectItems value="#{Person.locations}" id="si7"/>
    </af:selectOneChoice>
    HTML :
    <option title="225 Broadway, New York, NY-10007" selected="" value="0">225 Broadway (Central Office)</option>
    <option title="90 Mark St., New York, NY-10007" value="1">90 Mark St. (Central Office)</option>
    Thanks a lot.

    Something I was missing ,
    You need to add valuePassThru="true" in your <af:selectOneChoice component. I have personally tested it and got the actual value in alert box. I hope this time you got the real solution. You can also test the following code by your end.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelBox text="PanelBox1" id="pb1">
    <af:selectOneChoice label="Set Log Level" id="soc1"
    value="#{SelectManagedBean.loggerDefault}"
    valuePassThru="true">
    <af:selectItem label="select one" value="First" id="s6"/>
    <af:selectItem label="select two" value="Second" id="s56"/>
    <af:clientListener method="setLogLevel" type="valueChange"/>
    </af:selectOneChoice>
    <af:resource type="javascript">
    function setLogLevel(evt) {
    var selectOneChoice = evt.getSource();
    var logLevel = selectOneChoice.getSubmittedValue();
    // var logLevelObject = AdfLogger.NONE;
    alert("new value is : " + logLevel);
    //alert(evt.getSelection);
    //alert(logLevelObject);
    evt.cancel();
    </af:resource>
    </af:panelBox>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Save the selected value from listbox with its respective tab control dropdown selcted values in another listbox

    Hi all,
    I am making a vi where I have to save the selected value from listbox with its respective tab control dropdown selcted values in another listbox.Whenever I select Item1 then the heading change and respective tab will open for that item.But Now I just want to save the selection and put it in another ListBox.SO that I can renmove or add according to my wish. Plz help me.
    Solved!
    Go to Solution.
    Attachments:
    my_vi.png ‏83 KB

    Hi, I successfully make the vi to insert itmes from listbox1 to listbox2.Whenever I select itmes 1 in listbox 1 it display same elected item in listbox2 , but it not appending the items in listbox2.Like If 1 is selected in listbox1 then 1 will display , next time after saving when I selct next item like 3 then in listbox 2, 1 is replaced by 3,it dont come in second row of listbox2.Hope I am able to explain.\
    Plz help me to resolve this.
    Attachments:
    listbox_update.vi ‏11 KB

Maybe you are looking for

  • Video out not using full widescreen on a 23.5" monitor

    I have an Asus 23.5" LCD which I use for TV and my Xbox. Both use the widescreen how it should. But when I plug my Macbook into it, I get 2" bars on the left and right. However, if I uncheck "mirror display," my desktop background fills the entire sc

  • Using a pdf to support classroom learning in Flash

    I am teaching a high school course on Design and am using Flash CS6.   We have a pdf version of the "Classroom in a Book, Flash Professional CS5" and would like to make that pdf available to all our students. The pdf is found on the internet so I am

  • Package size

    hi experts, please help in  usage of package size in select query  with where  clouses without for all enteries regards prashant

  • [Stage3D] Flash Player 11 Performance Issue

    Hey people! I'm currently writing my dissertation for my Bachelor of Arts or Science. For this dissertation I compare Flash with Unity with a performance test. I used Away3D for the Flash applications and draw graphs. Now I have results which are ver

  • Installation problems WIFI adapter Intel 6200

    Hello HP Support, I recently tried to instal a new WIFI adapter in my laptop. But after starting up again I got an error message 702: Network device disabled. My laptop is a Probook 4530s and the adapter I'm trying to install is an Intel Wifi link 62