cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Abap rap unmanaged using custom buttons without draft only.

0 Kudos
868

Dear Experts,

@Andre_Fischer, @Sandra_Rossi.

Could u pls help us on below reqr.

Q: In Abap RAP Fiori list reporting using custom buttons only for posting of GL items. (No draft)

  • 1. Once bapi posted, update items of gl status field.
  • 2. To extend additional line items in same entities, without refresh of UI screen.

In BD implement code.

Unmanaged implementation zbp_journel item as unique:

{ create;update // dummy

fields { read only } company code,period,-----profitcenter ; //Amount, Status;

Fields {readonly; update} Amount, document, status.

Action <post> results [1] $self;

}

  • 1. Final Changes to results (status of items) didnt reflect in Fiori.
  • 2. Suggestion on achieve with side effects in same root entity (extend dynamically with new item without reload.

Method Post.

Read entities of zbp_i_glitem in local mode Entity <entity> All fields with corresponding #(Keys) Result lt_results failed lt_failed.

<Processing logic> Fi posting.

Modify entities of zbp_i_glitem\ in local mode entity zbp_i_glitem Update fields ( document, status) With values #(( for <ln> in lt_result ( " %tky = ln-%tky Companycode = key-value Period = key-value  Document = ln-value Status = ln-value )).

"" Read entities

Results = value #( for ln in lt_results( %tky = ln-%tky %pky = ln-%pky company code= ln-value1, period = ln-value, document = ln-value, status field = ln-value).

Accepted Solutions (0)

Answers (0)