You are on page 1of 29

DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

RFF110S – PROCESSAMENTO AUTOMATICO DE PROPOSTAS DE PAGAMENTO

MEIOS DE PAGAMENTOS ENVOLVIDOS – FGU

PROGRAMA ENVOLVIDO ZRFFOBR_U

CONVENSÕES

1 – Processamento Diário

Necessidades

1 – Criar variante para processamento

2 – Programa job via SM36 para processamento do programa RFF110S e suas variantes

3 – Gravação do arquivo gerado em diretório especifico para integração com ferramenta


desenvolvida pela empresa OPORTUNA, na qual os gerentes visualizam e liberam o
pagamento.

RFF110S
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

ZRFFOBR_U

4 – Variante de execução

Using Variables for Date Calculations 


Prerequisites
To use a selection variable for date calculation, you must have defined a date field as a
selection criterion or parameter in the relevant program.

PARAMETERS DATE LIKE SY-DATUM.

Procedure
To assign a date calculation variable to an existing variant:
       1.      In the initial screen for maintaining variants, choose the appropriate variant.

       2.      Select the Attributes field.

       3.      Choose Change.
The attributes screen for the selected variant is displayed.
       4.      In the Selection Variable column, press F4 and choose a type of selection variable. The display
window shows the possible types for the selected field.  
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

       5.      

       6.      Select type D for dynamic date calculation.


       7.      In the Variable Name column, choose the F4 help. All possible date calculations are displayed.

       8.      

       9.      Select an entry and choose Choose.

If necessary, enter the required values. To subtract days, you must enter them in
the format of a number with a minus sign in the last position (for example 10-).
Note that you cannot change the proposals in the list, nor can you add new
proposals.
Here you can also specify the selection options for the date calculation.
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

   10.      Save your entries.


You return to the attributes screen.
   11.      Save the attributes.

Result
You have assigned a variable to a variant for date calculation and saved it. Note that after
choosing the selection variable, you must save the attributes again on the attributes screen.
You can choose Selection Options on the selection variable screen to make further
specifications for date calculations

 User-specific Selection Variables 


Use
You can use user-specific selection variables to make input values in a variant user-dependent.
The values are saved in tables for all authorized users, and retrieved when the user starts a
program using the corresponding variable.

This means that you can create variants in which users do not constantly have to enter static
values such as their personnel number or company code whenever they run the program.
Instead, they only have to fill out the fields whose values change each time they run the
program. As a result, several users can benefit from a single variant.

Prerequisites
To place user-specific values in a field, the master record of the relevant user must contain the
corresponding user parameter with a parameter ID <pid>.

In an executable program (report), you must create a parameter or selection option using the
addition...MEMORY ID <pid> with the correct parameter ID (see   Using default values from
SAP memory).

DATA: CCODE(6).
...
SELECT-OPTIONS: CC FOR CCODE MEMORY ID BUK.
...

Features

Creating User Values


See Creating user-specific variables.

Changing User Values


You can change the values of an existing user variable in two ways:

 Using the function module VARI_USER_VARS_*. See Changing values from the


program)
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

 From the selection screen (changed by the user him- or herself). See Changing values
interactively).

 Creating User-Specific Variables 


Prerequisites
See the prerequisites listed under User-Specific Selection Variables.

Procedure
To create a user-specific variable for a variant that already exists:
       1.      In the initial screen for maintaining variants, choose the appropriate variant.
       2.      Select the Attributes field.

       3.      Choose Change.
The attributes screen for the selected variant is displayed.
       4.      In the Selection Variable column, press F4 and choose a type of selection variable. The display
window shows the possible types for the selected field.
       5.      Choose Type B for user-specific variables.The Variable Name column is filled automatically.
You return to the attributes screen.
       6.      Save the attributes.

 Changing Values Interactively 


Users can change the values of their user-specific variables on the selection screen.

Prerequisites
The selection screen of the program must be displayed.

Procedure
1. Choose Goto → User variables. A dialog box appears, containing the user-specific
selection criteria and parameters. From here, you can display or change the values.
2. If you choose Change, a further dialog box appears, in which you can decide whether to
accept the values proposed in the variables or use the entries on the selection screen.
3. In either case, another dialog box appears, in which you can enter and save the
required values.

Note that these changes affect all variants that use the same user-specific
variables.

 Changing Values from a Program 


There is a range of function modules that allow you to work with user variables in your program:
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

Function module Function


VARI_USER_VARS_GET Reads existing variable values

VARI_USER_VARS_SET Changes existing variable values

VARI_USER_VARS_COPY Copies variable values

VARI_USER_VARS_DELETE Deletes variable values

VARI_USER_VARS_RENAME Renames variable values

VARI_USER_VARS_DIALOG Dialog for entering variable values

To include these function modules in your program,


choose Edit → Insert statement → CALL FUNCTION from the ABAP Editor.

 Fixed Values from Table TVARVC 


Use
Using values from Table TVARVC is especially useful in background processing. You do not
have to create a new variant for each minor change of values or repeatedly change an existing
variant, since you only have to change the values stored in TVARVC.

However, note that every change of a value in Table TVARVC affects all variants
using this particular variable.
 

Creating Table Variables from TVARVC 


As a rule, it is possible to choose from existing entries in Table TVARVC and then assign the
entries to the selection variant.

Procedure
To assign a variable from Table TVARVC to a selection variant:
       1.      In the initial screen for maintaining variants, choose the appropriate variant.
       2.      Select the Attributes field.

       3.      Choose Change.
The attributes screen for the selected variant is displayed.
       4.      In the Selection Variable column, press F4 and choose a type of selection variable. The display
window shows the possible types for the selected field.
       5.      Choose type T for table variables.

       6.      In the Variable Name column, choose the F4 help. Now all the possible table variables are
displayed.
       7.      Select the required entry and choose Choose. You return to the attributes screen.

       8.      Save the attributes.

Result
You have assigned a table variable from TVARVC to a variant and saved it.
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

 Maintaining Entries in Table TVARVC 

Note that changes to the values of table TVARVC affect all variants that use these
particular variables.
The transactions STVARV and STVARVC are available for maintaining the table variants. With
transaction STVARV you can maintain the entries in table TAVRVC for the current client
(display/change/add). Transaction STVARVC only allows you to maintain the entries in client 000.
 
 

Executing Programs with Variants 


Prerequisites
The program that you want to execute may be any type except S, and must have one or more
selection screens. You must have defined variants for the program.

Procedure
To execute a program with a variant, proceed as follows:
       1.      On the initial screen of the ABAP Editor, enter the name of the program that you want to
run.
       2.      Choose Execute with Variant. 
A dialog box appears, in which you can enter a variant.

       3.      

 
       4.      Choose the F4 key.
A list of all variants defined for the program is displayed.
       5.      Select a variant.

    6.      Confirm your selection by choosing Select or ENTER.


The selection screen of the program is displayed. Those fields that
were filled via the variant, already contain values.
       7.      Choose Execute to run the program.

1 – NECESSIDADES
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

a. Criar variante para programa de pagamento

Programa de pagamento - ZRFFOBR_U

Criar Variante – Tcode SE38

Clicar em Executar
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

SALVAR
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

ENTÃO PARA O PROGRAMA EM QUESTÃO FOI CRIADA A VARIANTE DE NOME F110-GERAL

B. Criação da variante para o programa RFF110S – Pagamento automático F110

Tcode SE38

Executar
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

Partida a pagar – Fornecedor


DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

Programar job para processamento

Tcode SM36
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

Clicar em Job Wizard


DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

Erro de formulário de pagamento no spool


DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

Testes DEV500 – P014 – Fornecedor 608924

Teste efetuado no dia 07.04.2014

Após as variantes anteriores atualizadas para o dia 07.04.2014, os programas geram uma
nova F110 com os dados passados na variantes
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

Agora falta resolver a gravação do file ISD gerado num diretório da rede
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

Na transação OBPM4, define o local para a gravação do arquivo gerado pela F110
DOCUMENTAÇÃO DO PROCESSO – F110 - AUTOMATIZAÇÃO

1500000269 A 1500000322

You might also like