ICR Leading zero on field DOCREFNR in process 002

Hello,
Like some other people here on this forum, I've noticed that the process 002 behave a bit differently in terms of field mapping.
DOCNR cannot be used like in other processes, because it's filled with another number than BELNR. I need to use REFDOCNR instead.
But I need REFDOCNR to be formatted without leading zeros.
I read on this thread (ICR process for GL accounts.) that it's possible to do it by user exit in the field movement definition.
But my question is that in my field movement I don't have the mapping BELNR -> REFDOCNR, this mapping is built-in, so I don't know exactly where I should define the user exit.
Can you please advise?
Best regards,
Maxime

Hello Maxime,
When posting directly to a ledger the FI document number is not known at the time the SL document is posted. This is why SL creates its own document number. You have the information in the REF* fields which lead you back to the connected FI document. This is exactly what program FBICRC002_DOCNR_SELECT does. It finds the corresponding FI document and puts the FI document key information into the fields FAGL_* in FBICRC002A; the correct FI document number will be contained in FAGL_DOCNR.
If you collect the data for process 002 using the data selection program, FBICRC002_DOCNR_SELECT is executed automatically as part of the data selection process in the sender systems. For documents posted directly into the reconciliation ledger in the reconciliation system you need to run the program yourself - I suggest that you do this each time before you run automatic assignment.
If you want to manipulate any information as it is posted into the special purpose ledger you set up you should implement an exit called by the field movement.
If you want to manipulate FAGL_DOCNR as it is populated by FBICRC002_DOCNR_SELECT, you need to implement BADI method CHANGE_DATA_TABLE for event if_ex_fb_icrc_002=>gc_evt01_remote_select.
Best regards,
Ralph

Similar Messages

  • ** Please help urgently  ** Budget upload field with leading zeros

    We need to load a characteristic that has leading zeros.  For example 0000350.  When saving down to CSV, we lose the leading zeros (0000) so that only 350 is loaded into BW.  Saving the codes as 'text' in excel does not seem to help.
    We cannot therefore see the name for any of these codes when refreshing the workbook in BW.
    Could some please urgently tell us the correct method to save the file for loading into the BW infopackage, with all zeros intact ?
    Regards, Frederick

    Hi Frederick,
    Just some additional thoughts,
    assuming field A1 in Ecel contains 350 and you want to create a string with 8 digits, you could use formula '=text(A1;"00000000")' in an empty column and copy it back to column A. Then 00000350 should be provided in A1. This can be saved in a normal .csv file and be opened with a text editor (e.g. notepad) in order to check content.
    If you don't want to manipulate Excel data, transformation to a field with leading zeros can be easily be processed with a routine in transfer rules.
    Regards
    Joe

  • Web Services  from ABAP function modules return values- leading zeros

    I am using several web services from SAP CRM (5.0) that were created from Function modules ( I am assuming that that they are in ABAP).
    I can call the web services fine and they work as expected, but I am seeing a lot of leading zeros in the return values of fields in tables from the Web service.
    The ABAP er’s are telling me that they cannot see the leading zero’s.
    So my question is where these are appended to the values in the whole process. When I execute the Function Module in SAP CRM from transaction SE37 I can see the leading zeros. So I think that this is something that has to be handled by the ABAP er’s and not in the client consuming the web service.
    Are the functions in SAP CRM that can remove leading zeros for fields in a table (that is an export parameter?)
    Jawahar

    Hello Jawahar
    If you run your (RFC-enabled) function modules using the SAP-GUI (i.e. in dialog) then the GUI automatically replaces leading zero when the function module returns any data. However, calling the same function module remotely you will always see these leading zeros.
    These so-called conversion exits are defined as attribute of domains in the ABAP dictionary. If the function module used for the WebService is a standard fm then you have little chances to get rid of the leading zero. Perhaps the WebService has some attribute to suppress conversion exits or activate them when retrieving the data.
    Regards, 
       Uwe

  • Padding with leading zeroes

    Hi All,
    I am using XSLT mapping.I want to get the field in the receiver side with the leading zeros.Source field: XSD:decimal and length is 10.If input is 12345, i have to get 0000012345.
    Can anybody please solve the problem and guide me if u know .

    Hi,
    you can use format-number function in this case...
    <xsl:template match="/">
    <number>
    <xsl:value-of select="format-number('5465','0000000000')"/>
    </number>
    </xsl:template>
    in this function first parameter is value which u want to format and second parameter is the format(in your case lenghth of ur string)
    Regards,
    Abhijeet

  • How to delimit leading zero in vendor number in OO ABAP ALV without using conversion routine

    Hi,
    How to delimit leading zero in OO ABAP ALV without using conversion routine, because I have many fields like vendor, customer, material number etc..
    How to address this leading zero.
    I appreciate your quick response.
    Regards,
    Nalini S.

    Hi Nalini,
    Delimiting leading zeros in fields has to be done via conversion routines, as suggested by Vadamalai you need to pass on the conversion routine name in you field catalog variable.
    Now as to which object oriented approach are you using to have your table contents display in ALV as it matters  -
    Using FACTORY method of CL_SALV_TABLE class, or
    Using SET_TABLE_FOR_FIRST_DISPLAY method of CL_GUI_ALV_GRID class.
    Using FACTORY method of CL_SALV_TABLE will do your own work, no need to apply any conversion routines or set long/medium/short text for columns as we do in field catalogs!
    Cheers,
    Varun

  • Leading zeros remove from FB05 for assignment field in process open items b

    Dear expert
    At present i am using the electronic bank statement completed OT83 & OT51configuration, when i am running FF-5 the EBS soft copy has been uploaded and created batch input session.
    I executed  batch input session and the transactions has been posting through FB05 for outgoing payment clearing  with assignment field ( where check number is laying correctly and matching EBS soft copy cheque number and SAP outgoing clearing account line item assignment cheque number ) in case of outgoing clearing is happening correctly.
    but where as i have a problem incoming clrg cheque number which is displaying in assignment field and updated when client using FF68(check deposit / collections).
    the user is punching all collections from customers using t.code FF68 and cheque number is updated with 6 digit number in the variant. it is like a JV.
    after posting batch input session the cheque is number displaying in assignment field. the cheque number is updated with 6 digit number. but in the variant cheque number width 6 digit only  but after posting FF68 & SM35 the system automatically taking leading zeros for the remaining length. Cheque number standard length in SAP 13 in table .
    total 13 digit length but user punched only 6 digit only, because the cheque number 6 digit numberonly. so the remaining 7 digits it is occupaying 0000000.
    while executing FF_5 and SM35  (thr FB05) the assignment field cheque number (0000000586585) and soft copy cheque number 6 digit (586585) is not matching , because of that i am unable to clear the incoming collections or incoming payments clrg.
    so how  can i remove the leading zeros after cheque number ( actually displaying 0000000586585 , but i want without zeros only cheque number 586585) in assignment field in FB05 using FF-5 & SM35).
    is there any enhancement or user exit to remove leading zeros or any other way of work around .
    Regards

    Hi Amareswar,
    In your case, request your bank to provide cheque number with leading zeros in electronic bank statement as the leading zeros in the assignment field is SAP system behaviour.
    Alternatively, use 'Define Search String for Electronic Bank Statement' (refer http://help.sap.com/erp2005_ehp_05/helpdata/EN/6d/0cdf4b142e11d3963800a0c9426c73/frameset.htm for details) in the IMG, customize it to search for the cheque number provided in the note to payee field > then append leading zeros.
    The first method is the solution we are using and it is the most cost effective.
    Hope the above helps.
    Kind regards,
    John Chin

  • Delete leading zeros for a field on the pdf form

    Hi,
    i know it is possible to delete leading zeros via abap coding in the interface.
    But is it also possible to this directly on the pdf form - scripting or a setting?
    Thank you
    Kind regards
    Manfred

    I believe you can set this up as a field display pattern (if you use LCD 8.1 or something like that).
    Or you can script that out. In formcalc you can easily process characater by character, test if that is zero and remove it.
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    Otto

  • Remove leading zeros for invoice lists to allow auto lockbox processing

    I have a change request for the following document at my job. but i am very new into it and do not know how to start and what to do exactly? can anyone please help me what to do in this matter.
    SAP auto posting process for lockbox checks was created to post cash with minimal manual intervention.
    Transaction FLB2 is used to import a lockbox file from Bank of America containing customer payment detail to auto match and clear invoices in the AR subledger. The auto post program tries to match an invoice number from the Reference field to the invoice # in the lockbox file which does not have any leading zeroes. In order to allow this match to happen a user exit was developed to remove any leading zeros from the Reference field in the invoices It works fine for regular invoices but not for the invoice lists u2013 invoice numbers in the 76xxxxxx range. The leading zeros are not removed there, so these invoices fall out of the auto posting process. It has been expressed that we need to improve our automated check posting hit rate for better efficiencies, and to do so we need to have these invoice list invoices fixed in the same way as the regular invoices are.
    please advise
    Vishal

    can anybody please answer it?

  • Leading zeros are coming in assignment field

    Hi,
    We have posted customer advance document through F-29 and we are giving cheque number in assignment field which is of six digits. But after running transaction FF68 system creates one session and when we execute that session system creates one accounting document but changes the cheque number with 13 digits value(seven leading zeros with cheque number). If we follow the above  process in (development server)system is only showing cheque number without any leading zeros but the settings of both the servers are same.
    Request immediate help.
    Thanks in advance.

    Hi,
    Check the notes notes 106971 and 10714 which explains about leading zeros.
    Regards
    Ravinagh Boni

  • Adding leading zeros in a field mapping

    Hi,
    I am getting account as a 5 char field in the input file. I need to map this to a 10 char field in XI and add leading zeros in case the value is all numeric. Is there any standard data type/ mapping that can achieve this or I need to write a UDF.
    Thanks,

    formatNum field will cause an exception if your input isnt all numeric...
    I'd go for UDF id your input isnt always numeric.
    Regards,
    Henrique.

  • SQ01 ABAP Query - input field contains leading zeros

    Hi,
    I have a ABAP query where some of the values are stored with leading zeros in the table. This means that the user have to enter the leading zeros as well in the selection screen in SQ01 in order to get any output.
    What I would like to do is to restrict the input in the selection screen to allow only the digits without any leading zeros. For example, the user should not enter 000000000602590, but 602590. Also, the output should be without the leading zeros.
    Does anyone know how to do this in the InfoSet?
    Thanks in advance
    Br,
    Lars

    Hi Lars,
    The leading zeroes are appearing because your field is either a Numeric or Packed decimal.
    The leading zeroes can be suppressed if you  assign the packed to a Character field.
    You have option to change the datatype of the field in Infoset.
    Try converting it to equivalent character type.
    Let me know your findings.
    Thanks
    Ajay

  • To remove leading zeroes and take directly from IDOC(Segment field) to file

    Hi SapAll.
    i have got a simple requirement in a idoc to file Interface.
    here in a sender Idoc there will be one segment with one field,the requirement is to remove leading zeroes and take directly the data from this field and map to one of the field in  reciever  file structure.
    i had used the formatnumber (under arithmatic functions)in PI 3.0 but now when iam using it in PI7.1 it was raising some jave exception error.
    it would be preferable if any body can give me the solution without user defined functions.
    regards.
    Varma.

    from your first post:
    i had used the formatnumber (under arithmatic functions)in PI 3.0 but now when iam using it in PI7.1 it was raising some jave exception error.
    use the same formatting that you used in 3.0 .... try with just a # in the FormatNum function.
    Regards,
    Abhishek.

  • No leading zeros in the assignment field on a billing doc header

    Can someone tell me how I can get the assigment field in a billing doc not to show any leading zero's so when the assigment field is populated in the accounting doc it will not show the zeros either .
    At the moment I have the sales order PO set in copy control to show in the reference field and the assigment field of the billing doc header but need it to show no leading zeros in the accounting doc even if there is some in the SO.
    I.E
    sales orde PO no              Assignment field in billing doc             accounting doc
    0000012345                      0000012345                                        0000012345
    i need it to show NO zeros
                                               12345                                                  12345
    any ideas

    check this thread
    VBRK-XBLNR not copied to BKPF-XBLNR in transaction VF11.
    Note: Pls Text Removed
    Edited by: Lakshmipathi on Nov 1, 2011 10:42 AM
    Please dont ask for points in each of your suggestion and deviate the forum rules

  • Leading zeros in dynamic text fields

    I have a dynamic text field that indicates the degree of
    rotation of a knob. I need the display to have three digits showing
    at all times. This means I need leading zeros from 0 to 99. ie,
    000, 001, 002, etc.
    Is there a way to do this numerically or do I have to change
    the numbers to strings and concatenate??
    Thanks,

    Yes, for the most part only strings can start with leading
    zeros.
    You might run into some troubles because Flash treats a
    leading zero as a sign that a number is octal, base-8.
    So if you were planning on using Number() to cast your values
    into numbers, don't! Instead use parseInt(someString,10).

  • Leading zeroes in a Numeric Field, Don't want.

    I have a Numeric Field set up to hold 9 numbers for a zip code using  Display Pattern 999999999.
    When I only put in 5 numbers I get leading zeroes.
    I only want to display the numbers I put in.
    Sometimes I will have zip code of 9 numbers and other times only 5.
    What am i missing?
    Thank you.

    Thank you, it worked.  I used the TextField and set up the Display Pattern of all z's.
    This way I'm able to enter the hyphen and the last 4 digits of the zip and if there is no extra 4 digits then the 5 zip code will appear without zeros.
    Thanks again.

Maybe you are looking for

  • Video card problems, monitor distortion

    Hi, I have a 17 inch Apple Studio Display (ADC Connector). It's about three years old now. Just recently after I woke up my computer, the monitor suddenly had this crazy distortion that's a kind of banding that goes down the screen. I took a picture

  • Synchronous RFC -- SOAP Scenario: problem with SOAP Response/Fault Mapping

    Hi, I've a synchronous RFC --> PI --> SOAP Scenario. The problem is that the message structure of the sending RFC doesn't match the Webservice Structure. The (SAP standard) RFC has just a Request / Response message structure. Part of the Response Mes

  • How can I hide constant variable value in class file?

    hi,everybody. I am having a problem with constant variable which define connectted with database(URL,username,password). when I used UltraEdit to open class file, I can see constant variable value. Thanks!

  • Can an iMac G4 be upgraded to an Intel processor?

    I was wondering can an iMac G4 be upgraded to an Intel processor? This stems from the whole PPC no longer being supported by Adobe Flash etc.

  • Accessing content-server content in pluggable navigation

    Does anybody know of a way to access content from the content server in a pluggable navigation element? Through the API I have access to the activity space, and I know the item I want to retrieve from the content server. Thanks in advance!