Skip to Content
author's profile photo Former Member
Former Member

substitution obbh direct copy from assignment (BSEG ZUONR) to BSEG KIDNO

Hi Experts

I created substitution through T code OBBH for CC 1234 and activated line item 2.

I added a step to the existing codes and prerequisities BSEG-ZUONR<>0

substituion Payment reference I chose 'field to field copy'

I did above because I simply want to copy of the contents of BSEG ZUONR to BSEG KIDNO.

When I tried my FI line item, system did not copy any value to payment reference from assignment.

Pl let me know if I am making a mistake

Kumar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2013 at 07:48 PM

    Hi Kumar,

    Would like to understand why would you like to substitute value to the Payment Reference Field?

    Standard SAP updates Payment Reference field with the Billing Document No./ Invoice No. respectively for Customer & Vendor Document in case of Payment transactions.

    In case of Substitution Rule,

    Pre-Requisites - BKPF - BUKRS = ABCD

    Subsitute: BSEG - SGTXT by Field BSEG-ZUONR

    Regards,

    Jaymin R. Bhatt

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hey Jaymin

      Thanks for your response.

      Like Walmart there are outlet stores for this client. The customer buys a product and gives a check and check is entered in the sales order created in the stores. Then the customer's check is scanned and collected by an agency who inturn gives credit to clients account the same night. For example 100$ check is colleted in a stores, the agency gives bank transfer of 100$ to the clients bank account. The agency then collects the money from the customer. For this process they charge a fee.

      The agency sends list to the client stating amount, check number and transaction ref number (this is generated for each time a payment is made. Like credit card generates an approval number)

      In the assignment field of the sales order the customer check number is entered and copy control finally accounting doc created of billing is populated with assignment number.

      Once the statement is received from agency they try to clear the AR line item. But assignment field

      is just not clearing without customer number. Where as Paymt reference is cleared without even customer number.

      Since pmt ref is not part of sales order I just need to copy the values from assignment to pmt ref.

      So that I can clear the AR line items with pamt ref

      Kumar

  • author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2013 at 11:55 AM

    Hi,

    I tried to create the same subtituion in testing system and got the below message.

    Please refer the reason for the substituion is not working. And also in the prerequisite change it as does not equal to blank not as zero. Take abap team help they will fix the issue. Activate trace for the substituion while testing FI document.


    Possible problems in field-field substitution.

    Message no. GB045

    Diagnosis

    You want to substitute a value of data type CHAR and an internal length
    000036 with the value of a field of data type CHAR and an internal
    length 000060. In certain circumstances this could cause problems:

    o With varying data types this can lead to termination if the
    corresponding ABAP types are not compatible.

    o If the receiver field is shorter than the sender field, information
    could be lost.
    System Response

    ABAP representation of external data types:

    Procedure

    If the two data types CHAR and CHAR are different, check the MOVE ABAP
    command with help of the documentation, to see if the corresponding ABAP
    types are compatible.

    Note that the sender field can only be transferred in the length 000036
    of the reciever field when the data types are equivalent.

    ABAP data types


    External ABAP representation Restrictions
    type

    ACCP N(6)
    CHAR n C(n) n<=30k
    CLNT N(3)
    CUKY C(5)
    CURR n,m,s P((n+2)/2) DECIMAL m (NO-SIGN) n<=31
    DEC n,m,s P((n+2)/2) DECIMAL m (NO-SIGN) n<=31
    DATE D(8)
    DATS D(8)
    FLTP F(8)
    INT1 X(1)
    INT2 X(2)
    INT4 X(4)
    LANG C(1)
    NUMC n N(n) n<=30k
    PREC X(2)
    QUAN n,m,s P((n+2)/2) DECIMAL m (NO-SIGN) n<=31


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2013 at 12:13 PM

    hi,

    in substitution there is option of activating trace. Once activated try FI line item posting, its easy to trace back the issue.

    thnx.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.