Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CALL FUNCTION 'NEXT_DYNPRO_SEARCH'

former_member206721
Participant
0 Kudos
506

Hello

Im using the FM TO POST FB01  transaction  but when i when i have an item line with newum  = 'U'  for example this function fails to

return the screen and the program etc...

when i have a normal  key  40, 50  EVEN   31 or 21   the osting went perfectly

  the line is

        p= 2

posting key  = 39

newum  = U

Thanks a lot for your help

Tahar

12 REPLIES 12

Former Member
0 Kudos
383

Hii Tahar,

which function module you are using and whats the parameter newum means?

Regards

Gaurav

0 Kudos
383

The FM  is

POSTING_DOCUMENT_INTERFACE  and the field neum is associated with the posting key.

if it is required  for posting key we enter it otherwise we leave it blank.

Actually the FM is not even posting, it fails with  return code 9.

Former Member
0 Kudos
383

Hii Tahar

It might be possible that after this posting key.. sap unable to get the next screen in posting sequence.

hence not able to post the document. Please try to get the screen seq by manual posting.

Regards

Gaurav

0 Kudos
383

Sytem is down now but to give you an example that i did in debugging

for posting key  21   and  31  this function is  returning

screen 302   program sapmp05a

for posting key 40  and 50  it is coming back with screen 300 
same program as above

for key 39  with field newum  it is coming back with nothing  and giving error 9.

Is it possible that  a posting key is  configured first before to be used

I mean attach it to a specefic screen  and program  when it is using  newum

because these are special accounts.  If yes than i would like to now how we config this so that functional people do it

Tahar

Former Member
0 Kudos
383

Hii Tahar,

SAP itself calls particular screen we cannot specify it.

there is fix sequence of screens to be called after each posting key.. it might be possible that configuration might be wrong somewhere.

please check with your FI consultant regarding this...

as sap is not getting any screen seq to call it is giving you error.

Regards

Gaurav

0 Kudos
383

hELLO

When i enter it manually  i get as next screen  is 303  and it asks for  field  bseg-zfbdt

this with posting key 29, glaccount and U inthe field special gl indicator for next line item

Tahar

0 Kudos
383

Hii Tahar

I think problem is with zfbdt field which is key date field...

Try to pass value for that..

Hope it will solve your problem.

Regards

Gaurav

0 Kudos
383

In fact this fuction is calling another one    fi_posting_key_data  and this function doesnt know field  NEUM   but  UMSKZ    and if you go to BBSEG  and search for this field it will point to  NEUM

so if i call this function    fi_posting_key_data  with umskz =  newum value that it will bring the next screen

so i dont know how i can pass this field to the posting  as bbseg has only neum not umskz ?

Former Member
0 Kudos
383

hii Tahar

which sap system you are working on? as your function module does not exits in my sap system

Regards

Gaurav

0 Kudos
383

Hello

I found the problem   the special gl indicator   BBSEG-NEWUM   has to be entered as    BSEG-UMSKZ

Then in the FM it will replace it by  rfxx  newum  see attched code

and you have to be careful it is only one  B   not BBSEG    it is BSEG-UMSKZ

0 Kudos
383

Hii Tahar

R u able to solve your req then?

Regards

Gaurav

0 Kudos
383

yes