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

BSEG-EBELN and EBELP not populated at BTE 1120 structure

Cnv88
Explorer
0 Kudos
1,055

Hi!!

I have implemented a process function module for BTE 1120 to make some substitutions at MIRO after post document, but as a condition for substitution I need to check the PO we are processing in  MIRO...

I need: EKKO for PO type, and EKPO for Account Assignment Category (KNTTP)

t_BSEG structure has EBELN and EBELP attributes, but both are empty.

Do you know how to get EBELN and EBELP from BTE 1120 ?

Thanks!!

View Entire Topic
RaymondGiuseppi
Active Contributor
0 Kudos

Some hints

 

Cnv88
Explorer
0 Kudos
Thanks! Maybe I did not explain the problem correclty: I mean, at MIRO, you select a PO to be invoiced, that is already there, enabled, working as per expected. But at BTE is not showing this BTE structures ( but info is already there, at screen), specifically EBELN and EBELP data ( but with EBELN I would be already happy). Thanks!
RaymondGiuseppi
Active Contributor

Are the fields displayed on screen part of RSEG (invoice item) structure/table and not always copied to BSEG (Fi document item) - check with F1 and technical info icon

  • In this case, check that the invoice number and item number are filled in BSEG, so you could check in Abap Stack for the PO numbers associated with those Invoice numbers. For test, put a break-point at start of OPEN_FI_PERFORM_00001120_P or your own FM
  • In case invoice not available in the stack (e.g. BTE in update task or other LUW or local data) consider saving this information in some MIRO BAdI 
Cnv88
Explorer
0 Kudos
Thanks Raymond, do you know if it is possible to retrieve this RSEG info at BTE code?
RaymondGiuseppi
Active Contributor
0 Kudos
BSEG-REBZG, REBZJ, REBZZ to link to RSEG