Skip to main content

Set Default Payment Terms

Comments

3 comments

  • Keshava Best

    There is an SAP setting for this in General Settings > BP Tab > Default Payment Term for Customer & Default Payment Term for Vendor

    Using B1UP, you need to use the SET command. SET($[$75.0.NUMBER]|1)

    Keshava

  • Anthony Zaccaria

    Hi Keshava,
    Thanks for this, it's not working but not sure if the 75. you were using was just an example, plus I probably need extra steps to set the specific the row.
    To clarify what I'm hoping to achieve (and this is only on certain BPs) which is why I need a validation. On the Payment Run Tab, the table for Payment Methods, I need to set row 4 as the default when the customer starts with ZZ and if possible set which rows to Include (tick boxes to the right).

    The Row number is: $[$217.1.NUMBER], the Code is: $[$217.2.0] and the Include column is: $[$217.5.0]

    Thanks again for any assistance.

  • Keshava Best

    Hi Anthony,

    See below. You had originally said you were working with the payment terms which are field 75. Payment Methods are in grid 217.

    To set the 4th Payment Method as the default:

    Click($[$217.1.0.4]); //Select Payment Method 4
    Click($[$327.0.0]); //Set as Default

    To set a certain Payment Method code as the default no matter the position:

    @STORE81 = 1
    @STORE82 = $[LINE_COUNT(217)]

    WHILE @STORE81 <= @STORE82
    BEGIN
      IF $[$217.2.0.@STORE81] = 'IN £ CC'
      BEGIN
        Click($[$217.1.0.@STORE81]); //Select Payment Method 
        Click($[$327.0.0]); //Set as Default
      END
      @STORE81 = @STORE81 + 1
    END

    Keshava

Please sign in to leave a comment.