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: 
Read only

Creating TEXT using GN_DELIVERY_CREATE

Former Member
0 Likes
2,686

Hi all,

i use function GN_DELIVERY_CREATE to create an outbound delivery.

I am passing the values in structures IT_GN_TEXTH (Header text), IT_GN_TEXTL (Item text) but texts

are not created in delivery.

Does anybody know THE MINIMUM FIELDS TO PASS TO THOSE STRUCTURES.

Same problem without a solution is described in post

thx in advance

Markus

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
1,939

Hi,

you can see how these tables are processed in routine gn_match_texts_wms in include LV50SFWM. SO you can put a break point here and call your FM to see what is going on and what you need to set up.

Cheers

9 REPLIES 9
Read only

birendra_chatterjee
Active Participant
0 Likes
1,939

In 'IT_GN_TEXTH' you have to pass RFBEL, RFPOS, TDOBJECT, TDNAME, TDID, TDSPRAS. And in 'IT_GN_TEXTL', you have to pass RFBEL, RFPOS, TDID, TDSPRAS, TDFORMAT, TDLINE.

Remember for header texts, leave value of RFPOS as blank.

Read only

Former Member
0 Likes
1,939

Hi Birendra Chatte,

thx for your answer.

Concerning the parameters RFBEL and RFPOS: I dont know which values I have to pass. When calling the

function i dont have the delivery number (RFBEL??) and the position (RFPOS??)...

Could you give an example?

Markus

Read only

mvoros
Active Contributor
0 Likes
1,940

Hi,

you can see how these tables are processed in routine gn_match_texts_wms in include LV50SFWM. SO you can put a break point here and call your FM to see what is going on and what you need to set up.

Cheers

Read only

Former Member
0 Likes
1,939

Hi Martin,

thx for this hint, but debugger does not stopp in this FORM you posted.

Any other ideas?

Read only

birendra_chatterjee
Active Participant
0 Likes
1,939

Hi Markus,

In 'IT_GN_TEXTH' you have to pass RFPOS, TDOBJECT, TDNAME, TDID, TDSPRAS. And in 'IT_GN_TEXTL', you have to pass RFPOS, TDID, TDSPRAS, TDFORMAT, TDLINE.

Remember for header texts, leave value of RFPOS as blank.

Regards,

Birendra

Read only

Former Member
0 Likes
1,939

any examples?

Read only

0 Likes
1,939

Hi Markus, oje, all diese Leute, die nur labern, es aber nie probiert haben... )

So your lucky as I had the same issue today Here's the my solution (Inbound delivery for purchase order):

First, you have to fill the parameter IS_BORGR_CONTROL-SAVE_TEXTS = 'X'. Now you will see the mentioned break-point is reached.

Surprisingly for a PO reference you have to use these:

RFBEL=EKKO-EBELN and RFPOS=EKPO-EBELP

If you have no reference try RFBEL='$ 1' (8 spaces!) and RFPOS='000010' counting. I did not try this! Maybe you can give some feedback here.

Gruß Uwe.

Edited by: Uwe Beyer on Jun 11, 2010 5:16 PM

Read only

0 Likes
1,939

Hello Uwe,

leider ist im SDN die Methodik frage->googeln->irgendwas_antworten weit verbreitet... das kann einem ganz schön auf den Zeiger gehen....danke für Deine Mühe...

thx for you answer. Unfortunately it didn't work out for me, texts are not created even if I fill the parameters like you proposed.

I have to find another solution.

Regards,

Markus

Read only

0 Likes
1,939

Hi Markus,

now I had the problem to create a header text for an inbound delivery without reference. The point is - leave RFBEL and RFPOS initial!!! See Form gn_match_texts_wms(saplv50s) called in kopieren_endrunde.

And take care the text control customizing is set up properly!

Gruß Uwe.

Edited by: Uwe Beyer on Sep 24, 2010 1:52 PM