Command: TransferBack

Previous  Next |  Direct link to this topic

Go to list of all Commands

Syntax: TransferBack(<source>|<target>);

 

This command works like the transfer command but transfer the value in the opposite direction (Example if you are on a Sales Order, Open a Product Order and do a Transfer the value will be transfered from the Sales order to The Production Order. In a TransferBack you instead transfer the value from the Production Order and back to the Sales Order)

For this you need 2 arguments:

Argument

Description

<source>

 

The ItemUid of the item/column located on the current window you want to copy data back from

TIP: You can make the value to set come from an SQL-sentence if you start it with SQL:<SQL-statement>.

TIP: You can make the value to set come from an SQL-sentence if you start it with SQL_INVARIANT:<SQL-statement>. SQL invariant is used to ensure that decimal numbers are returned in the correct format depending on your system

TIP: STORE values persist between macro's so you can set a store value in one Macro and then use it in another.

<target>

The item/column of the item located on the previous window you want to copy to

Alternative you can send the data to a store using the keyword STORE1 à STORE10. This is useful if you wish to transfer data to screens that are more 2 windows always from the original screen

Sample 1: TransferBack($[$4.0.0]|$[$5.0.0]); will (if activated on a Business Partner window and macro opened an A/R invoice) take the CardCode on the Invoice and place it on the BP Code in the BPO Master Data

Sample 2: TransferBack($[$5.0.0]|$[$38.1.0]); will (if activated on an Item Master Data window and macro opened an A/R invoice and transferred the vendor) take the item code on the Invoice matrix and place it in the Item Code Field on the Item Master Data

Tip: You can in the dynamic syntax use the 4th .row syntax

In addition to a numbered row you can use the following keywords to refer to special rows:

 

Keyword

Description

.FIRST

Refer to the First row in the Matrix (does essentially the same a ".1")

.LAST

Refer to the Last row in the Matrix

LAST-1

Refer to the Second to Last row in the matrix (this is in many cases handy as SAP normally have an new empty line for new row entries)

.SELECTED

Refer to the Row that have a Selection (aka highlighted in Yellow). If no selection this will fall back to working with the first row

.FOCUSED

Refer to the Tow that have cell focus (the row where the "yellow" cell is). If no cell focus this will fall back to working with the first row

NB: You cannot set fields that are read-only in the UI. You can try and unlock the field using the "Enable" function but B1UP cannot break the SAP UI logic.

Known limitation: It is not possible to set/transfer custom values to fields SAP can overwrite with CTRL+Tab. This is due to a SAP SDK UI-API Limitation. Please go vote for the option to do this on SAP idea Place: https://influence.sap.com/sap/ino/#/idea/131306 so we can offer it in the future.

Video: Click here to learn more about using transfer commands

FAQ: When it is possible to read and write data using the dynamic syntax

 


Similar/Related Commands:
- Blank
- BlankUdfSideBar
- MultiSetFromSQL
- Set
- SetCaption
- SetUdfSidebar
- Transfer
- TransferBackUdfSidebar
- TransferUdfSidebar