Skip to Content
author's profile photo Former Member
Former Member

Idoc segname to long ....

Hi,

I'm trying to build an idoc inside a FM.

I have problem with the i_edi_dd-segnam. It has only a length of 10.

Any pointers?

Problem med att i_edi_dd-segnam bara har en längd på char(10).

Hur löser vi enklast detta tro ?

data:

l_e1bpmeposchedule like e1bpmeposchedule,

i_edi_dd type table of edi_dd with header line.

........

  • E1BPMEPOSCHEDULE - Fields for Purchase Order Delivery Schedule Lines

l_e1bpmeposchedule-po_item = i_eket-ebelp.

l_e1bpmeposchedule-sched_line = i_eket-etenr.

l_e1bpmeposchedule-delivery_date = i_eket-eindt.

i_edi_dd-segnam = 'E1BPMEPOSCHEDULE'. " PROBLEM !

i_edi_dd-sdata = l_e1bpmeposchedule.

append i_edi_dd.

clear i_edi_dd.

......

//Martin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Feb 22, 2005 at 12:57 PM

    Hi Martin,

    Swedish? Nice!

    Use newer definitions with structures edi_dc40, edi_dd40 and FM IDOC_INBOUND_SINGLE.

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 22, 2005 at 01:05 PM

    Hi Martin,

    You've to define your struc as follows :

    E.g. exit EXIT_SAPLF050_006

    With IDOC_DATA STRUCTURE <b>EDIDD</b>

    And idoc_data-SEGNAM = length 27

    Regards Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 22, 2005 at 01:24 PM

    Hi,

    -> look with se11 struc. <b>EDIDD</b> field SEGNAM

    component EDILSEGTYP -> lgth is 27

    in 4.6 and 4.7

    regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 02:23 PM

    Hi,

    I have a question regarding date conversion as well.

    When I TEST my new FM with Idoc process stuff.

    I enter date as the format DD.MM.YYYY

    When I later on look at my posted idoc... ther is an error. The date is now YYYYMMDD.

    I need to convert the deliverydate ...

    Any pointers ?

    //Martin

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Martin,

      you are mixing up exporting and importing: you export your parameters to function module (which are defined under importing).

      So empty new_date overwrites filled my_date.

      And external format has to be a char10...

      And write will do the job much easier...

      Spend some time as consultant before coming back? 😊

      Regards,

      Christian

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.